Hi i'm getting this error when i try to load my applet. Its a swing applet and i am using the microsoft JVM - Its part of my requirement (to use MS jvm). My applet definition includes an archive, my codebase is correct.. HELP PLEASE..
java.lang.ClassNotFoundException: TagApplet at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java) at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java) at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java) at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java) at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java) at com/ms/applet/AppletPanel.run (AppletPanel.java) at java/lang/Thread.run (Thread.java)
Its a swing applet and i am using the microsoft JVM - Its part of my requirement (to use MS jvm).
Ummm... dude... I think your requirements are going to have to change... the MS JVM won't run any Swing stuff... ( or any other Java 2 stuff either... )
Though I'm not sure why it's not able to find your actual applet, it should be throwing an exception on "class JApplet not found" or some such thhing. Looks like you may have other problems with finding your class, in addition to impossible requirements... Only other thing I can think to check is the manifest file in your JAR file. Is it pointing to the correct class?
I'm still getting this error.. do you know if my class files should have been compiled with MS java in order for the MS jvm to recognise my files or not.
No... any java class compiled by any java compiler will work in any JVM ( well, as long as the versions aren't radically different, and as long as all the class files are found. )
From the error message you got, it looks like the name of your applet is misspelled somewhere... it has to match in all these places:
The filename of the java file.
The name after class in your java code.
In the manifest file of your JAR.
In the HTML code.
Also, remember Java is case-sensitive... if you named your class tagApplet in one place, and TagApplet in another, Java doesn't know what you are talking about.
The swing classes are mostly not yet supported by browsers (the same with microsoft additions). That means you have to build a jar-file with all classes used by your applet (there are tools for it) and then use the archive="myJarForAllINeed.jar" as one of the applet parameters. Thats what the problem looks like to me.
"Nexus Dream", your display name does not comply the the Javaranch Naming rules described here. We require your display name to be two words: your first name, a space, then your last name. Fictitious names are not allowed. Please edit your profile and choose a valid display name. Accounts with invalid display names get deleted, often without warning. thanks, Dave.
Post by:autobot
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
a bit of art, as a gift, the permaculture playing cards