• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help how to use local classes

 
Gabriel Forro
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Please advise me, how to solve to following problem:

I have an applet class. For example MyApplet.class

I would like to use this applet, which is on my local PC and not on the web server. My CLASSPATH is correctly set, but I got the java.lang.ClassNotFoundException, when I have tried to open the html page, where the applet is used.
Where is the problem? I use Sun's Java Plug-in 1.4. and MS Explorer

I think, that the JVM looks for the class file in the directories defined in the CLASSPATH, if the class can not be downloaded from the web server. I am wrong?

Thanks for Your helps.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gabriel Forro:
I am wrong?


Yes, you are wrong. The plug-in won't look on the CLASSPATH.
 
Gabriel Forro
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx

Is there any directory on the local PC, where I can put classes, which are accessible for the Java plug-in?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic