Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

eclipse including a jar without my knowledge

 
deb platt
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
deb platt
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic