Closed GoogleCodeExporter closed 9 years ago
This is fixed by making sure Mac uses the right Java 6 version. Thanks.
Original comment by hitesh.p...@gmail.com
on 22 Jul 2009 at 12:59
Yes. See the Installation documentation - you need to use Java 6. I'll ask for
the
docs to mention this error.
Original comment by anthonybaxter@gmail.com
on 22 Jul 2009 at 5:33
There are a few
target="1.5"
attributes in the ant build targets in build.xml. I don't know much about ant -
should
these be changed if we require Java 6?
Original comment by tobias.t...@gmail.com
on 26 Jul 2009 at 4:23
I tried to change all "1.5" instances to "1.6" in build.xml. This time when I
build,
I receive an error on line 68, which is where the second "1.6" exists. Any
suggestions?
Original comment by bwood...@gmail.com
on 29 Jul 2009 at 6:30
What does 'javac -version' report? Did you follow the instructions in the
Install docs?
Original comment by anthonybaxter@gmail.com
on 29 Jul 2009 at 7:33
OK, I see one of my problems. I went to Applications/Utilites/Java Preferences
to
change to 6. Unfortunately, now I'm getting this:
javac: invalid target release: 1.6
I'll try a few more things and see what happens.
Original comment by bwood...@gmail.com
on 29 Jul 2009 at 10:53
A little more digging ...
I changed all "1.5" instances to "1.6" in build.xml.
When I run "javac -version" I get the following:
javac 1.6.0_13
When I run "ant dist -verbose" I see this at the beginning:
Apache Ant version 1.7.0 compiled on May 21 2009
Buildfile: build.xml
Detected Java version: 1.5 in:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Detected OS: Mac OS X
parsing buildfile /Users/ben/wave-protocol/build.xml with URI =
file:/Users/ben/wave-protocol/build.xml
Project base dir set to: /Users/ben/wave-protocol
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
[property] Loading /Users/ben/wave-protocol/build.properties
Any ideas why javac would report 6 and Detected Java version as 5?
Original comment by bwood...@gmail.com
on 29 Jul 2009 at 11:12
That utility doesn't set the version used by ant, as far as I can tell. Please
try the environment variables that are
mentioned in the install doc.
Original comment by anthonybaxter@gmail.com
on 29 Jul 2009 at 11:16
That worked.
I figured out now what I did wrong. I initially set the environment variables,
then
realized I had to download the newest version of Java. I must have wiped the
environment variables by mistake.
Thanks for your assistance!
Original comment by bwood...@gmail.com
on 30 Jul 2009 at 3:32
For those that come after, I ran into this same problem on Debian and solved it
the
same way.
Original comment by bobzi...@gmail.com
on 16 Oct 2009 at 12:19
Original comment by ano...@google.com
on 22 Dec 2010 at 4:38
Original issue reported on code.google.com by
hitesh.p...@gmail.com
on 21 Jul 2009 at 11:55