Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Class can't see other classes inside jar

Thread view: 
Hieronymus - 30 Dec 2005 10:22 GMT
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?
zero - 30 Dec 2005 15:07 GMT
"Hieronymus" <rui.pacheco@gmail.com> wrote in news:1135938169.386725.206370
@o13g2000cwo.googlegroups.com:

> Hi all
>
[quoted text clipped - 4 lines]
> 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

Signature

Beware the False Authority Syndrome



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.