aspose file tools*
The moose likes Beginning Java and the fly likes classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "classpath" Watch "classpath" New topic
Author

classpath

Paul Bailey
Ranch Hand

Joined: Oct 20, 2000
Posts: 91
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

Joined: Apr 12, 2001
Posts: 1012
what command are you using to run the .jar file? you have to type:
C:\ java -jar filename.jar


what?
Paul Bailey
Ranch Hand

Joined: Oct 20, 2000
Posts: 91
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
 
jQuery in Action, 2nd edition
 
subject: classpath
 
Similar Threads
Cobalt/tomcat...jar driver problem
How to compile Servlets
tomcat won't run my servlet
package javax.servlet not found in import?
Fun with Classpaths