• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please help how to use local classes

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic