Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie javabean question

Status
Not open for further replies.

redss

Programmer
Oct 20, 2002
195
I am learning to work with java, and downloaded a free whois javabean from but all the zipfile had was a jar file and an example java file which has as its first line:
Code:
import com.ezjavabeans.ezwhois.*;
There are only html help files in the com/ezjavabeans/ezwhois folder.

My question: how do I compile the test file and have it look in the jar file?
 
Try this:

eith set your execution path to include your java/bin directory or "cd" into it.

c:\java\bin\javac -classpath c:\directory_that_the_jar_is_in\jar_file_name.jar ezwhois.java

javac is the java compiler and the -classpath directive will tell the compiler where to find its supporting material.

The results should be a ezwhois.class file in the directory you are currently in. (that's why it's best to set the java\bin in your execution path, then you can compile from anywhere)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top