• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to pass java arguments to applet?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 https://coderanch.com/t/572824/Applets/java/interest-lots-questions-applets
 
reply
    Bookmark Topic Watch Topic
  • New Topic