This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet can Watch "applet can New topic
Author

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 classes111.zip.
Although my classpath points to the file classes111.zip, 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="classes12.zip"
code="applet_main.class">

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 java.awt.EventDispatchThread.run(Compiled Code)
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
Thanks a lot for any help!!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
Bartender

Joined: Oct 18, 2000
Posts: 4121

Moving to the Applets forum...

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet can't start error!!
 
Similar Threads
Problem with Oracle's JDBC/OCI driver
how to connect jdbc with oracle 8i?
Applet -> Servlet -> JDBC -> Oracle Incompatibility
prepareStatement problem with the driver classes12.zip
Connecting Oracle 8x