aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes change in class path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "change in class path" Watch "change in class path" New topic
Author

change in class path

saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 51
Hi,

i am preparing automatic build for our java code.for this we are using SVN server.

for this the subversion will work on jdk1.5, and my code has to run on jdk1.4.

is there any provition to shift the class path from jdk1.5 to jdk1.4? beacause we need to checkout the code and we have to prepare the jars. for that to check out the code we need jdk1.5 & to run prepare jar we need jdk1.4.

thanking you in advance.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

You could set the compiler "source" and "target" to 1.4, this way even though compiling with 1.5 you will get 1.4-compliant class files.

I'd give you more details on how to do this but you never said what tool you were using to do the build.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change in class path
 
Similar Threads
c:\>javac -target 1.3 hello.java
javac -target 1.3 hello.java
can we using syntax of jdk1.4 in jdk1.5 ?
JDK backward compaitability in WebSphere 6.1
changes in JDK1.5