Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / August 2004

Tip: Looking for answers? Try searching our database.

classNotFound error

Thread view: 
milo - 31 Aug 2004 21:18 GMT
I get the following error when I try to use an applet in an XSL
stylesheet

Error loading class: formatLocation
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: formatLocation
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/applet/AppletPanel.securedClassLoad
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run

I am displaying an XML document according to an XSL stylesheet and
when I click on it I get this message.

I built the HelloWorld applet and tried to access it from the
helloworld.htn and got the same type of error

Error loading class: HelloWorld
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: HelloWorld
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/applet/AppletPanel.securedClassLoad
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run

My html, xml, xsl, and applets are in the same directory. I am running
Windows 2000, SP3 and using JDK 1.4.2 with Netbeans IDE 3.6.
This is quite irritating. I even put the directory in the CLASSPATH
out of superstition. I would like to get past this and will appreciate
any help I can get.
Andrew Thompson - 31 Aug 2004 21:42 GMT
>     at com/ms/vm/loader/URLClassLoader.loadClass

This VM (the MSVM, Java 1.1) was made last millenium.
It is obsolete and was never secure.

Ensure your web-page has the Java version
applet to allow users to know if their
Java is a high enough version for your applet..
<http://www.physci.org/codes/jre.jsp> *

For *your* IE though, it might just be you
need to select 'Use Sun Java' in the settings.
<http://www.physci.org/jvmclean.jsp?pt=deselect> *

* (shrugs)  My server is a bit sleepy
at the moment,  but those are the correct
URL's as I recall..

HTH

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.