Me n My Programming

If Only I Have TIme

Ant 101 ~ Error! The first argument to the non-static Java function ‘replace’ is not a valid object reference

Having problem to report my junit execution report as there is an error mentioning about Error! The first argument to the non-static Java function ‘replace’ is not a valid object reference. I’ve google through stackoverflow and found out that there are other peoples who’s having the same issues (here and here). Mainly it is regarding java 7.

The possible solution given in both Surprisingly are switching back to java 6. For me, i just run the ant file in command line. Surprisingly, it works. So, if you don’t have the time to and want a quick result, just use the command line 😀

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on November 20, 2012 by in Uncategorized and tagged .
%d bloggers like this: