This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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?
Maybe that could be the issue here. Check if you are using Java SE 6 on the Solaris machine also.
Joined: Jan 23, 2008
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.