Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Java Applet Class not found exception

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am attempting to deploy a java applet but keep encountering the following error.

load: class com.gro.applet.GROAuthenticateApplet not found.
java.lang.ClassNotFoundException: com.gro.applet.GROAuthenticateApplet
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 Source)
at Source)
Caused by: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$ Source)
at Method)
... 10 more

The applet starts up when i use appletviewer but won't work in the browser. The applet is contained in a jar in the folder HTML-ASP\ap and is called from an asp script in the folder HTML-ASP\general. The script that calls the jar is outlined below.

codebase="\C:\GRO\Phase 1\Application\50 Implementation\HTML-ASP\ap"
archive="GROAuthenticateApplet.jar, KeyToolsPro_jce1-2-1_signed.jar"
width=0 height=0
alt="Please select your certificate, enter your password and click on the Login button"
longdesc="Java Applet: Please select your certificate from the drop down list,
enter the password for that certificate in the textfield below the
drop down list, and then click on the Login button"
viewastext id=Applet1>
<param name="p12Directory" value="C:\GRO\P12">
<param name="p12BackupDirectory" value="C:\GRO\P12">
<param name="internetProtocol" value="<%=cg_sGen_InternetProtocol%>">

I have seen this identical problem on a lot of forums but haven't seen any definitive solution for it. I have already uninstalled and reinstalled internet explorer and the jdk and jre. jre.1.6.0 is selected to be used for applets in internet explorer. I can view any other applets normally. I have noticed that some of the people who have encountered the same problem believed that it was caused by a microsoft product changing their internet settings. Does anyone know anything about this? I will be eternally grateful for any help. Cheers.
Ben Pagan
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahem, never mind, I just put my jars into the general folder and it worked. Weird problem though.
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic