This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes eclipse including a jar without my knowledge Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse including a jar without my knowledge" Watch "eclipse including a jar without my knowledge" New topic
Author

eclipse including a jar without my knowledge

deb platt
Ranch Hand

Joined: Jan 23, 2008
Posts: 44
I had a post
in another forum about a program that was running correctly on my laptop under Eclipse, but when I moved the program over to our company's Solaris machine, it threw a ClassDefinitionNotFoundException. Because I was using Sun's javamail product, I apparently needed to include activation.jar in the CLASSPATH. Once I did this, the program worked on Solaris.

Now I'm trying to figure out why the program always worked on my laptop under Eclipse. I neither see the file (activation.jar), nor an entry in the build path for it. But it worked anyway, and I'm trying to understand why. I'm running Eclipse3.3 with java 1.6.0 configured to be compliant with 1.5. When I go to the Java Build Path and look at the libraries tab, I only see two entries, one for the jdk and the other for mail.jar. Am I looking in the right place? Is there somewhere else I should look?

Deb
Reehan Lalkhanwar
Ranch Hand

Joined: Jun 16, 2007
Posts: 106
Under the website it notes as:

Maybe that could be the issue here.
Check if you are using Java SE 6 on the Solaris machine also.


Thank you,
Reehan
deb platt
Ranch Hand

Joined: Jan 23, 2008
Posts: 44
That was it. I was using Java 1.6 with Eclipse set to be compliant with 1.5 because that's what the Sys Admin has installed on the Solaris machine. Since I was compliant with 1.5, I didn't realize I still had access to libraries that weren't a part of 1.5.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse including a jar without my knowledge
 
Similar Threads
Disambiguating a class defined in multiple libs
PDFBox und Lucene in Eclipse und Netbeans
Noclassdeffounderror javax/mail/address
Eclipse - reference external classes
Runtime problem in Command Prompt