File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need some Guidance in using Java 1.6 with ANT

 
Harish Tam
Ranch Hand
Posts: 71
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am using JDK 1.5 version on my machine, installed JRE is of java 1.5, using ant build.xml file
and Need to use java 1.6 to compile some files using the same ant build.xml (via ant build method)
I have not installed java 1.6 jre on my machine but just have a copied folder which has JDK 1.6.0_25, can we specify the java compiler and the jar files related to 1.6 , so that the files
can be compiled using java 1.6


Thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you should be able to. Carefully read the javac task docs (http://ant.apache.org/manual/Tasks/javac.html), paying attention to the fork (set it to "yes") and executable (set it to the javac.exe within the java1.6.0_25/bin directory) properties.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic