File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Applets
Bookmark "how to pass java arguments to applet?" Watch "how to pass java arguments to applet?" New topic

how to pass java arguments to applet?

Java Applet

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:

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

Joined: Aug 11, 2007
Posts: 4659

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
I agree. Here's the link:
subject: how to pass java arguments to applet?
It's not a secret anymore!