This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark " Swing based applets don Watch " Swing based applets don New topic
Author

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

Yusuf Ali
Greenhorn

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
thanx
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?

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
Rancher

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.
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing based applets don't run in browser !!!
 
Similar Threads
Can I run normal applets on PDAs?
Swing based applets don't run in browser !!!
Help needed
Swing based Applets don't run in IE5
swing applets in browsers