Sumit Jain
Sumit Jain

Reputation: 1528

how to know if the installed jvm is 32 or 64 bit using javascript

I want to know the bit version of the JVM installed on the user machine and based on that i want to install different versions of my application using Java WebStart. I am thinking that this information can be extracted from the java plugin installed on the browser.

I do not want the OS or CPU bit version, since 32 bit JVM can be installed on 64 bit machine.

Can this be done using javascript?

Upvotes: 2

Views: 379

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168825

Can this be done using javascript?

No. Not without help from Java (or other more complicated means).

But then, JWS can deploy code (and natives etc.) according to details listed in the launch file, per OS & architecture.

See the JNLP File Syntax & particularly the resources Element section, for details. Summary from the table:

  • resources - Describes all the resources that are needed for an application.
    • os Specifies the operating system for which the resources element should be considered.
    • arch Specifies the architecture for which the resources element should be considered.

Upvotes: 2

Related Questions