cannot compile svn splitter in mac

my-macbook-pro-6:splitter my$ svn update At revision 25. mymacbook-pro-6:splitter my$ ant Buildfile: build.xml prepare: compile: [javac] Compiling 16 source files to /Users/my/svn/splitter/build/classes [javac] /Users/mysvn/splitter/src/uk/me/parabola/splitter/AreaList.java:73: cannot find symbol [javac] symbol : variable ROOT [javac] location: class java.util.Locale [javac] pw.format(Locale.ROOT, "%d: %d,%d to %d,%d\n", [javac] ^ [javac] /Users/my/svn/splitter/src/uk/me/parabola/splitter/AreaList.java:77: cannot find symbol [javac] symbol : variable ROOT [javac] location: class java.util.Locale [javac] pw.format(Locale.ROOT, "# : %f,%f to %f,%f\n", [javac] ^ [javac] /Users/my/svn/splitter/src/uk/me/parabola/splitter/AreaList.java:110: cannot find symbol [javac] symbol : method isEmpty() [javac] location: class java.lang.String [javac] if (line.isEmpty() || line.charAt(0) == '#') [javac] ^ [javac] /Users/my/svn/splitter/src/uk/me/parabola/splitter/SubArea.java:93: cannot find symbol [javac] symbol : variable ROOT [javac] location: class java.util.Locale [javac] String filename = new Formatter().format(Locale.ROOT, "%08d.osm.gz", mapid).toString(); [javac] ^ [javac] 4 errors BUILD FAILED /Users/my/svn/splitter/build.xml:49: Compile failed; see the compiler error output for details. Total time: 1 second my-macbook-pro-6: java -version java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode) Where is the bug ? Why cant i compile from svn ? Running Mac OS X 10.5.6 Dirk -- Wikipedia -- http://tools.wikimedia.de/~flacus/IWLC/ OSM -- http://osm.flacus.de/

On Fri, Feb 27, 2009 at 8:37 AM, FlaBot <flabot@googlemail.com> wrote:
java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
Where is the bug ? Why cant i compile from svn ? Running Mac OS X 10.5.6
I get this error when I use the Java 1.5 compiler. Could it be that you have only symlinked the java binary to the 1.6 version, and not javac? I would suspect you get something like this when you enter javac -version: $ javac -version javac 1.5.0_16 Try the following in a Terminal window: export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/home/bin:$PATH export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/home You should be able to then get the following: $ javac -version javac 1.6.0_07 When I do this, and then build with ant on my macbook, I can properly build splitter. Cheers!
participants (2)
-
Clinton Gladstone
-
FlaBot