Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar files

 
shilpa reddy
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am trying to run a jar file called abc.jar.
I have 2 versions of jdk on my system - version 1.1.8 and version 1.3.
jdk 1.1.8 is set on my system classpath.I do not want to change the classpath.
The command I use to run the jar is as follows-
java -classpath C:\jdk1.3\jre\lib\rt.jar;C:\jdk1.3\jre\lib\i18n.jar;C:\jdk1.3\lib\dt.jar;C:\jdk1.3\lib\tools.jar --jar c:\abc.jar.
The error message I get is
-jar illegal argument
I think the program is picking up the 1.1.8 version.
Anyone has any suggestions about this.
Thanks ,
Shilpa
 
Muhammad Ali
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are using two - with the jar keyword. Use -jar instead of --jar.
Muhammad Ali Shah
Karachi, Pakistan.
 
Charlie Swanson
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would the archive parameter work?
 
Charlie Swanson
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I was wrong about the archive parameter that would be for a jar file in an applet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic