aspose file tools*
The moose likes Applets and the fly likes Alternatives to applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Alternatives to applets" Watch "Alternatives to applets" New topic
Author

Alternatives to applets

Matthew Helling
Greenhorn

Joined: Mar 18, 2004
Posts: 17
ok, I'm about at my wits end.
I've written this really nice applet for work. It works great on my personal system, but to get it to work on the corporate network I have to download and install sun's java and configure IE to use sun's java. this breaks like 5 other apps I have to use that are also java based.
How do these other apps work and mine doesn't? Anyone have any suggestions? Otherwise I guess I'll have to rewrite this in javascript or asp. The whole point of doing this in java was that it would be a simple applet stored on the server for people to run and now thats shot.
Matt
(cursing Microsoft and their damn screwing up java)
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Microsoft's VM is frozen at the level of the Java 1.1.4 API. Your applet must be using features introduced since then (i.e. Swing, Collections). Open the Java Console and see what it can't find.


[How To Ask Questions On JavaRanch]
Matthew Helling
Greenhorn

Joined: Mar 18, 2004
Posts: 17
ooh, cool I didn't know that existed. You rock.
here's my error in the java console. I'm having trouble making heads or tails of it
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
Error loading class: Chooser3
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: Chooser3
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
Jason Huntz
Greenhorn

Joined: Mar 10, 2004
Posts: 7
you could run your applet as a web start application. It wouldn't keep you from having to install sun's java but it could allow you to more easily use different VM versions for different java apps if that is required
Jason Huntz
Greenhorn

Joined: Mar 10, 2004
Posts: 7
what is a Chooser3 BTW, is taht the class that extends applet
Matthew Helling
Greenhorn

Joined: Mar 18, 2004
Posts: 17
Chooser is the name of my class (and the name of the applet).
I'm trying to make heads or tails of what java web start does. Does it auto-download the java stuff from sun? I used the java html converter to turn my html page into an Object instead of an applet. When I try this, the computers go out to sun's website and autodownload the newer version of java (which is cool) but puke on installing (lack of administrator rights). So thats no good.
here's the html code running right now. I think at this point the goal has to be to get the applet to run without any downloads from Sun. if that means removing swing or something, so be it.
matt
Jason Huntz
Greenhorn

Joined: Mar 10, 2004
Posts: 7
Yes, webstart downloads newer versions of the jvm and also caches your app on the client so it won't need to be downloaded again until there are updates. If you have to use the microsoft vm than you can't use swing. That is probably why the other applets work currently
[ March 29, 2004: Message edited by: Jason Huntz ]
Matthew Helling
Greenhorn

Joined: Mar 18, 2004
Posts: 17
Jason
I did quite a bit of reading this weekend and realized that's probably the problem. I don't *Need* swing, so I'll rework my app without it.
I also read a lot about java web start, sounds like awesome technology. The next app I write if its for a smaller group i'll use web start, since this app will likely be used by hundreds, it has to work without intervention and without installing apps corporate IT might not allow.
matt
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Alternatives to applets