Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet cannot find client.class?

Josh Rodrigues
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got everything to work so far for my loader jar file which loads another jar file name ERclient.jar. I'm having trouble when running the ERclient.jar. I'm getting a ClassNotFoundException at this line:

The whole class for the PreLoader class is as so:

Here's chunk of code to get the main class called client:

I'm not sure why I'm getting this error when it should be searching everywhere for the class file; as long as it's in the same directory, right? If so, shouldn't it look in the JAR file named ERclient.jar?
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!