File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes Getting BIT Version of Java Webstart using Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Getting BIT Version of Java Webstart using Javascript" Watch "Getting BIT Version of Java Webstart using Javascript" New topic
Author

Getting BIT Version of Java Webstart using Javascript

Holger Brox
Greenhorn

Joined: Nov 04, 2011
Posts: 4
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
Bartender

Joined: Oct 14, 2005
Posts: 18658
    
    8

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

Joined: Nov 04, 2011
Posts: 4
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
Bartender

Joined: Oct 14, 2005
Posts: 18658
    
    8

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

Joined: Nov 04, 2011
Posts: 4
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
Bartender

Joined: Oct 14, 2005
Posts: 18658
    
    8

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

Joined: Nov 04, 2011
Posts: 4
Many, many thanks. I think, this solves the issue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting BIT Version of Java Webstart using Javascript