File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes  Swing based applets don't run in browser !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark " Swing based applets don Watch " Swing based applets don New topic

Swing based applets don't run in browser !!!

Yusuf Ali

Joined: May 06, 2002
Posts: 4
whenever i run a swing based applet from the browser (IE 5), the applet is not displayed in it - status bar shows that the class file was not found.
The institute where i'm doing my computer course, i use HTMLConverter utility (on jdk1.2) to convert swing based applets into the form which the browser can understand and the applets are displayed there properly.
but my real prob is that i cannot find such utility on my jdk 1.3 - is there any other utility in this version to convert swing based applet ?
please help me and do let me know
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Why don't you just use the java plugin tag to download the appropriate classes?


So much trouble in the world -- Bob Marley
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

Your problems are only beginning. I think the "converter" you're referring to the one that converts HTML pages to add tags to cause the Java Plugin to download (about 5 Megabytes) and install. It doesn't do any sort of conversion that lets Swing run under older Javas of the type provided by web browsers.
After you get THAT straightened out, you'll discover that unsigned applets are forbidden to use JDBC. And if you sign the applet, a JDBC applet may work for school on a LAN, but in the real world, the database requests will be blocked by one or more firewalls.
Java has a way of "encouraging" 3-tier solutions.

An IDE is no substitute for an Intelligent Developer.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Originally posted by Tim Holloway:

After you get THAT straightened out, you'll discover that unsigned applets are forbidden to use JDBC.

Ahhh, Bull. I have an unsigned JAR program written in SWING that accesses a database using JDBC on a server. Granted it is in a LAN, however, it is not FORBIDDEN. You just have to know how to do it.
Let me know if you need any help with it.

GenRocket - Experts at Building Test Data
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Since we're talking about Applets and browsers and not JDBC, I'm moving this to the Applet forum.
I agree. Here's the link:
subject: Swing based applets don't run in browser !!!
It's not a secret anymore!