Class can't see other classes inside jar

H

Hieronymus

Hi all

I have a class that imports javax.xml.soap.SOAPConnectionFactory. When
I run my little program inside Eclipse, on Windows, it runs perfectly.
When I move the program to Unix (with all the libraries I used to
compile in Eclipse), he seems to be unable to find the necessary jars.
I created a directory with the class and all the jars, so running java
MyProgram should be enough, right?
 
Z

zero

Hi all

I have a class that imports javax.xml.soap.SOAPConnectionFactory. When
I run my little program inside Eclipse, on Windows, it runs perfectly.
When I move the program to Unix (with all the libraries I used to
compile in Eclipse), he seems to be unable to find the necessary jars.
I created a directory with the class and all the jars, so running java
MyProgram should be enough, right?

Did you set the classpath?

java -classpath path/to/jarfile.jar MyProgram
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top