Re: JVM question



Inieponied Guy wrote:
Hi to all,

I need to know how a browser open an applet, or, better, how a browser
invoke the virtual machine; the browser open the JVM through a dll
specified in the windows registry?
I need this informations because i have to intercept the call of an
applet and pass it from a bytecode verifier build by myself before
giving the applet itself to the JVM.

Thanks to all

Don't know how the browser invokes the JVM, but you can specify runtime parameters, however.

Open the Java control panel (in Windows, Start > Control Panel > Java) and select the 'Java' tab. Press 'View' button of the Applet Runtime Settings, and add the required parameters in the 4th column (it's editable).

You can use any of the parameters supported by the java executable (<http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html>), like -agentlib:YourBytecodeVerifier or -javaagent:SomePathToYourJAR.

Make sure, however that the parameter you supply are correct, otherwise your browser will die when it tries to open the first applet. [It happened to me when I had a typo in the parameters to debug an applet in the browser.]

Regards,

Roland
.



Relevant Pages

  • Re: Java Timer, swing
    ... I visit a page with an applet and my Celeron 1.7GH ... skip/stall, my mouse to skip, etc, with the Microsoft JVM I barely ... not due to any "Java destroying proprietary feature" the ...
    (comp.lang.java.programmer)
  • Re: No joy at all
    ... If no joy with Robert's suggestions.....and you can see the test applet ... General tab...Network settings - select "Use browser settings". ... Java Runtime Environment, if still there. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: IE & applets
    ... using a version that is too new for the browser. ... IE's version of Java ... >> has been the central issue in multiple lawsuits against MS by Sun. ... to download version 1.1 from Sun and use it to create your applet. ...
    (comp.lang.java.help)
  • Re: [FYI] 2008 kommt Consumer JRE
    ... Verzeichnis viele Dateien liegen. ... Applet erstmal für 2-5 Sekunden den Browser einfriert, ... Allerdings ist das bei Java 6 auch schon besser geworden. ...
    (de.comp.lang.java)
  • Re: What is ?
    ... Java 1.1 bytecode running in the 1.5 JVM which apparently doesn't have ... I wrote the applet several ...
    (comp.lang.java.help)