Re: Jar file only works on my pc
On Feb 4, 10:13 pm, stinkinric...@googlemail.com wrote:
thanks a lot! Didn't know you could have jar applets, i'll look into
it. Also, I will look into the webstart stuff.
*
here's the jar file:http://www.txfiles.co.uk/rich/hello.jar
Here's an example..
<http://www.physci.org/test/shutthebox/>
...or more specifically..
<http://www.physci.org/test/shutthebox/hello.jnlp>
That JNLP specifies a minimum Java of 1.6+,
and gives a download URL from Sun. It is
premature though, because at this moment,
there is no 'auto download' available for 1.6,
so if your friend would be willing to send you/us
some screenshots, that would be most
interesting.
The exact JNLP file shown there, is..
[hello.jnlp]
<?xml version='1.0' encoding='UTF-8' ?>
<jnlp spec='1.0'
codebase='http://www.physci.org/test/shutthebox'
href='hello.jnlp'>
<information>
<title>Shut The Box</title>
<vendor>Stinkin' Rich</vendor>
<description kind='one-line'>
Test of the ShutTheBox application using Java 1.6+
</description>
<offline-allowed />
</information>
<resources>
<j2se version='1.6+' href='http://java.sun.com/products/autodl/
j2se' />
<jar href='hello.jar' main='true' />
</resources>
<application-desc main-class='ShutTheBox' />
</jnlp>
[/hello.jnlp]
You would need to change the codebase, for
your own site.
I noticed that the application does not resize
very well. That indicate the layouts are used
in a fragile way, or set to null, or something
worse.
It would pay to fix the (underlying) problem,
but failing that, you might set your frame to
resizable 'false'.
Andrew T.