Jnlp webstart nativelib: how to specify a different architecture for os

in the java webstart (jnlp) file, you can specify a nativelib tag to download binary files. You can also specify the loading of different for different operating systems by specifying the os attribute as well.

eg:

<resources os="Linux"> <nativelib href="....jar"/> </resources> <resources os="Windows"> <nativelib href="....jar"/> </resources> <resources os="Mac OS X"> <nativelib href="....jar"/> </resources> 

but how can I specify even different binaries for different architectures? e.g. win32 and win64 or linux 32 and linux 64bit. OS. Where can I find a list of options for the os attribute?

+7
java java-web-start jnlp
source share
3 answers

To determine that you basically need the os.arch property. Also see http://lopica.sourceforge.net/os.html for a complete list. You can use the arch attribute of the <resources> element to do this.

+7
source share

According to http://jcp.org/aboutJava/communityprocess/mrel/jsr056/index3.html :

" os attribute : indicates the operating system for which the resource element should be taken into account. If this value is a prefix of the os.name system property, you can use the resource element. The attribute is not specified, it matches all operating systems."

So, you need to do some research on the value of the os.name system property on the platforms you want to deploy.

+3
source share

Here is an example for Windows:

 <resources os="Windows" arch="x86"> <nativelib href="....jar"/> </resources> <resources os="Windows" arch="x86_64"> <nativelib href="....jar"/> </resources> <resources os="Windows" arch="amd64"> <nativelib href="....jar"/> </resources> 

Stack Overflow.site/questions/734473 / ... provides a link that includes architecture values ​​for other platforms.

0
source share

All Articles