File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes c:\>javac -target 1.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "c:\>javac -target 1.3" Watch "c:\>javac -target 1.3" New topic

c:\>javac -target 1.3

Kumar Sushil

Joined: Jan 31, 2006
Posts: 29
Hi friends,
when we use a higher version, but want that our application run also on lower version of JDK also, then we use
c:\>javac -target 1.3
here file name is and currently we are useing JDK1.5 and we want byte code of that is compatable to jdk1.3.
This command does not run on jdk1.5 but this run on jdk1.4.

I want to know that -target option command runs or not on jdk1.5.

please tell me
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Just type java in command prompt. You will get the useage help. When i tried in 1.5 version i did not find -target as option.
Since you have 1.4 try out in 1.4 version if you get -target option. If you get this, then it is clear that JDK1.5 don't support -target option....

Sharing is learning
I agree. Here's the link:
subject: c:\>javac -target 1.3
It's not a secret anymore!