Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting BIT Version of Java Webstart using Javascript

 
Holger Brox
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Has anybody an idea, how I can get the Bit version of a javaws out of the Javascript?
Many thanks for any help on this.
Regards,
Hoschi
 
Paul Clapham
Sheriff
Posts: 21315
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I left this post alone for a couple of days, thinking there might be somebody to whom it actually meant something. But apparently not. So could you clarify the question? For example, what's a "bit version" of "a javaws"? And what does Javascript have to do with the question?
 
Holger Brox
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I mean, how can I get 32Bit/64Bit info of the version of Java Web Start out of a Web browser.
Is this clearer?
Many thanks for your help.
Regards,
Hoschi
 
Paul Clapham
Sheriff
Posts: 21315
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that a WebStart application has any such attribute. Java applications are "write-once, read-anywhere" which at least means that they will run equally well in 32-bit and 64-bit environments. Distributing them via WebStart doesn't affect that in any way that I can see. So what problem caused you to ask this question?
 
Holger Brox
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I included some external dlls, which are needed for a jar Package. They are 2 once of the same. One for 32 Bit and one for 64 Bit and they are not working vice versa :-( This is my problem. I need to check the Bit version of the javaws, which the user has installed. Browser Version, Java version, OS version does not work :-( I already checked this.
 
Paul Clapham
Sheriff
Posts: 21315
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, that makes it a good question. In the JNLP specification I found this element:

So there might be different values of the "arch" parameter for 32-bit and 64-bit Windows environments; however the spec doesn't go into what values could be used there. Not that I could see, anyway, but I didn't do much of a search.

Since the JNLP spec was written before 64-bit JVMs existed, it's possible that your question doesn't have an answer. Would it be possible for your application to examine the environment where it is running, decide if it's 32-bit or 64-bit, and use the appropriate DLLs?
 
Holger Brox
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many, many thanks. I think, this solves the issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic