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

classpath

 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i just downloaded a .jar file and was trying to use it and it didn't work. I'm using windows 2000, jre 1.3.1. I put the file in C:\jdk1.3.1\jre\lib\ext\ and java told me that it couldn't find a class that i know is in there (i looked with forte). Then i tried to change my classpath. where do you do this? so i tried a command line i.e. set classpath=%classpath%;C:\jdk1.3.1\jre\lib\ext\the.jar; but this didn't work so i uncompressed the jar into the file and now, for some reason, it works. but if i take away the decompressed file, it doesnt. What is going on here?
 
Greg Harris
Ranch Hand
Posts: 1012
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what command are you using to run the .jar file? you have to type:
C:\ java -jar filename.jar
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Greg Harris:
what command are you using to run the .jar file? you have to type:
C:\ [b]java -jar filename.jar
[/B]

oh, i'm sorry, but i am trying to run a .class file so i type
C:\ java this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic