This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes class not found error, how to fix it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "class not found error, how to fix it" Watch "class not found error, how to fix it" New topic

class not found error, how to fix it

david hu
Ranch Hand

Joined: Jul 20, 2001
Posts: 143
I installed the "java plug-in" on my servlet server. After that some part of my servlet cannot work. The server said that the class javax.mail.Address cannot found. But before I installed the java plug-in, there's no this error. I think that's java plug-in causes this problem.
Before I installed java plug-in I put all serverlet, javamail, and other relevant class in c:\jdk1.3\jre\lib\ext, so I don't need to set CLASSPATH environment variable. Can anyone told me how to fix this "class not found problem"?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Well, to hazard a guess, I would say that you probably had java installed and a Java_Home parameter set up pointing at that version of Java. In that directory structure you put the extentions that you wanted to use.
Then when you installed the JavaPlug in ANOTHER JRE was downloaded, and the Java_Home parameter changed to point at that. However I would venture that the \ext directory of the new JRE is empty.
Either move the stuff over to the new \ext directory, change the Java_Home parameter back, or add a classpath parameter.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: class not found error, how to fix it
It's not a secret anymore!