Solaris and JNLP

Started by EgonOlsen, October 26, 2008, 22:24:47

Previous topic - Next topic

EgonOlsen

Hi,

i've tried solaris support of LWJGL2.0. It basically works (not great, because the drivers for Solaris suck, but anyway...) but what am i supposed to write as os name in the resources section for Solaris? I can't find that information anywhere!? Obviously not "Solaris", not "OpenSolaris" and not "SunOS". It works only if i load the native parts in the general resources part. If my question is still unclear, here's a part of my jnlp:

        <resources>
		<j2se version="1.5+" initial-heap-size="128m" max-heap-size="512m"/>
		<jar href="robombs.jar" main="true"/>
		<jar href="lib/jpct.jar"/>
		<jar href="lib/lwjgl.jar"/>
		<jar href="lib/lwjgl_util.jar"/>
	</resources>
	<resources os="Windows">
		<j2se version="1.5+"/> 
		<nativelib href="lib/lwjgl_win.jar"/>
		<property name="java.library.path" value="." />
	</resources>
	<resources os="Linux" arch="i386">
		<j2se version="1.5+"/> 
		<nativelib href="lib/lwjgl_linux.jar"/>
		<property name="java.library.path" value="." />
	</resources>
  	<resources os="Mac OS X">
		<j2se version="1.5+"/> 
    		<nativelib href="lib/lwjgl_osx.jar"/>
		<property name="java.library.path" value="." />
  	</resources>
       <resources os="<What to use for Solaris???>" arch="i386">
		<j2se version="1.5+"/> 
    		<nativelib href="lib/lwjgl_solaris.jar"/>
		<property name="java.library.path" value="." />
  	</resources>


The last section is the solaris one. But it doesn't get evaluated until i write the correct os name. But which?

Edit: I was using OpenSolaris for my tests, because Solaris 10 doesn't even manage to start the installation routine on my machine.

Matzon

lwjgl.org/jnlp/extension.php <-- which you can use... says
Quote<resources os="SunOS" arch="x86">
    <j2se version="1.4+"/>
    <nativelib href="native_solaris.jar"/>
  </resources>

Why do you think that SunOS is a no go ?

Matthias

Never set "java.library.path" in your JNLP - webstart knows where it places the natives and sets the path correctly.

Ciao Matthias

EgonOlsen

Quote from: Matthias on October 27, 2008, 04:01:29
Never set "java.library.path" in your JNLP - webstart knows where it places the natives and sets the path correctly.

Ciao Matthias
No, it doesn't. I had to add this for a particular version of WS (can't remember which one...an early Java6 or something), because otherwise, it was unable to find the native parts.

EgonOlsen

Quote from: Matzon on October 26, 2008, 23:06:58
lwjgl.org/jnlp/extension.php <-- which you can use... says
Quote<resources os="SunOS" arch="x86">
    <j2se version="1.4+"/>
    <nativelib href="native_solaris.jar"/>
  </resources>

Why do you think that SunOS is a no go ?
Because it didn't load them when i tried it. I'll give it another go if this is, what it is supposed to be.

Ciardhubh

JNLP uses the same value as the Java runtime property "os.name". If you have a running Solaris you could check what os.name is for you.

I've found a list of values for os and arch in Webstart. However it is quite dated.
http://lopica.sourceforge.net/os.html

LWJGL itself seems to use "SunOS" in the classes LWJGLUtil and AppletLoarder.