File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes how to pass java arguments to applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "how to pass java arguments to applet?" Watch "how to pass java arguments to applet?" New topic
Author

how to pass java arguments to applet?

Java Applet
Greenhorn

Joined: Jan 11, 2013
Posts: 1
I'm trying to pass java arguments to my applet via parameter named "java_parameters", but it seems to work with Firefox only!
Here's what I do:

I have applet that prints out System variable of "sun.java2d.noddraw":


After I compile this class, I pack it into the jar file (and sign it).

Then I run this applet using such an applet tag:


Once I run this test in Firefox, I can clearly see that my java arguments is set and in output I can see two lines of text:


BUT... nothing like that is possible in Internet Explorer or Opera. Java output for Opera and IE is as follows:


The question is - why does this works in Firefox but not in IE and Opera? Is there something I can do to get it work in every browser?

My applet tag in test.html file should be valid because I have copied it from oracle's documentation file of applet's deployment: http://docs.oracle.com/javase/6/docs/technotes/guides/jweb/applet/applet_deployment.html

Any clues on how to set java arguments so that it will work in every browser, not just Firefox?
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

The reasons it works and doesn't work in different browsers and in the same browser on different operating sytsems is that applets are poorly implemented and poorly supported.

Why are you trying to use an applet for this?

Please see http://www.coderanch.com/t/572824/Applets/java/interest-lots-questions-applets
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pass java arguments to applet?