File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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;i compiled it,and founded a display.jar files.then i deleted the and display.class;i had an other . i use the display.class's object in the Usedisplay. both display.jar and have a path.but i compile the ,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
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:
subject: I need help
It's not a secret anymore!