• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with ant warning during build

 
David Garratt
Ranch Hand
Posts: 213
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a OSX Mountain Lion Machine. I have exported the ant build.xml file from my Eclipse project. I have both java 1.6 (apple) and java 1.7 (oracle) installed however from the command prompt java 1.7 is the default. I need to keep my project compatible with Java 1.6 for now.

When I run the build I get the warning message :-

[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6




My attempts at googling this message or fragments of it have not proved very helpful - I'm assuming that it's (maybe) something to do with me running the java 1.7 compiler on a project flagged for 1.6 - but that just a guess.

If someone could give me some idea of what I need (if anything) to do in order to correct this it would be most helpful.

My java 1.7 is installed in this location :- /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk
My java 1.6 is installed in this location :- /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home


Dave
 
David Garratt
Ranch Hand
Posts: 213
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Further research has found this which seems to confirm my suspicions https://blogs.oracle.com/darcy/entry/how_to_cross_compile_for

However I am a little unsure about the syntax (path) I need to use.

I have the path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents to my Apple 1.6 JDK - but it has a number of directories under it and I'm unsure which of these I need to reference.

I've also stumbled across /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes which maybe an alternative as well.

Dave
 
David Garratt
Ranch Hand
Posts: 213
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case it helps anyone I think I have the solution as follows:-

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic