jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes I need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I need help" Watch "I need help" New topic

I need help

zhang feng

Joined: Dec 16, 2002
Posts: 19
i had a display.java;i compiled it,and founded a display.jar files.then i deleted the display.java and display.class;i had an other Usedisplay.java . i use the display.class's object in the Usedisplay. both display.jar and Usedisplay.java have a path.but i compile the Usedisplay.java ,is wrong!show the "package display does not exit"," import display.*"
please help me ,i think to use the class from .jar files!
i m sorry ,my english level is not well!
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

any classes you want to use (import) in another class should be on your CLASSPATH, not your PATH.

javac -cp .;c:\path\to\your\jar_file.jar Usedisplay.java
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Even though this might be a servlet you're compiling, I'm still going to move it to Java In General - Beginners.
I agree. Here's the link: http://aspose.com/file-tools
subject: I need help
It's not a secret anymore!