It's not a secret anymore!
The moose likes Applets and the fly likes applet can't start error!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet can Watch "applet can New topic

applet can't start error!!

Bala Krishniah
Ranch Hand

Joined: Dec 14, 2000
Posts: 81
I am trying to run an applet which makes a database connection.
I'm using jdk1.2.2, a local Oracle 8.1.7 for unix and the oracle
thin driver found in
Although my classpath points to the file, I got the
ClassNotFoundException when running the applet.
The same setup (path, classpath, jdk1.2.2, oracle 8.1.7) works fine with
all the other standalone java applications.
What is wrong with the applet ?
My html code:
<applet archive=""

The exact error message is :
# Verifier error oracle/jdbc/driver/OracleConnection.initialize(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Loracle/jdbc/dbaccess/DBAccess;Ljava/util/Hashtable V: Cannot find class java/util/Map
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleConnection
at java.lang.ClassLoader.resolveClass(Compiled Code)
at java.lang.ClassLoader.loadClassInternal(Compiled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at app_applet_main12.execSQL(Compiled Code)
at app_applet_main12.init(Compiled Code)
* at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at Code)
at netscape.applet.DerivedAppletFrame$ Code)
Thanks a lot for any help!!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Although this should probably go in the Applet Section, I think your problem lies within your html file.

That is the object tag in the body of my HTML file to do something similar to what you are doing. The code for Netscape may be a little different. This is for IE. Hope that helps.
[ February 13, 2002: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Bala Krishniah
Ranch Hand

Joined: Dec 14, 2000
Posts: 81
I dint realize that there's a separate section for applets. I'll post the question there.
I used the HTMLConverter and converterd my HTML. But still I am getting the same error...
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Moving to the Applets forum...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: applet can't start error!!
jQuery in Action, 3rd edition