• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

c:\>javac -target 1.3 hello.java

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 hello.java
here file name is hello.java and currently we are useing JDK1.5 and we want byte code of hello.java 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
 
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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....
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic