URGENT help needed: Calling Java Swing Classes from an Applet or JSP.
Hi,
I have a couple of questions:
I have a complete stand-along Java application with GUI (using Swing) which I want to be able to called remotely. So I was thinking about putting it in a browser using Applet or JSP. Basically I have this compiled class file called "MappingApplication.class" which holds the code for the application that I tried calling from an applet but I am getting java.lang.NoClassDefFoundError: MappingApplication error. I have list the detailed stack trace below. I am not sure what to do. Anybody has any ideas? I do have Java Plug-in installed & I also tried using the HTML Converter from Sun but it didnt help.
If somehow I can get that GUI Application to get called from the browser and run inside the browser or stand-alone that would be great.
Any help would be appreciated.
Thanks,
V. Patel.
java.lang.NoClassDefFoundError: MappingApplication (wrong name: com/mapforce/MappingApplication)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Re: URGENT help needed: Calling Java Swing Classes from an Applet or JSP.
plzz can you tell me the solution.. am also geting the same problem... my problem is..
i got executed my appletwith jdbcodbc in command prompt. but am not able to execute in broswer. its giving an exeception "Exception occured:java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)" plzz any body help me out.. its urgent...
Re: URGENT help needed: Calling Java Swing Classes from an Applet or JSP.
Quote:
plzz can you tell me the solution
I think it's unlikely vp98aa is going to answer your request for help, he/she only posted 4 times and that was 7 years ago and hasn't been seen on the forum since. Please don't resurrect old threads, start your own thread.
Applets running in browsers have a very restrictive security policy. It looks like you have come up against this. You can supply a SecurityManager and/or policy file to relax the security policy for the area you need access to, but without more information on what you are doing it's hard to give definitive advice.
You need to read up on applet security, I suggest you google "applet security" and read the many articles on fixing such problems.