Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I launch Java Web Start locally

I am attempting to replace all of my Applets with Java Web Start applications. The problem I am having is that I have not seen any examples where the codebase attribute is specified as a directory within the local file system. I have tried setting the codebase to the directory that contains both the JNLP file and the executable JAR in each of the following ways:

codebase="file://users/mystuff" href=myJWS.jnlp"

codebase="http://localhost/users/mystuff" href=myJWS.jnlp" 

When I attempt to launch the JWS app I get an application error that tells me:

Unable to launch application.
Component:  file://users/myStuff/myJWS.jnlp

OR

Component:  http://localhost/users/myStuff/myJWS.jnlp
Reason: Unable to load resource

It looks to me like I am specifying the codebase incorrectly. Any ideas about how to fix this.

like image 293
D. Pante Avatar asked May 09 '26 01:05

D. Pante


1 Answers

The local file protocol needs three forward slashes:

codebase="file:///F:/users/mystuff" href=myJWS.jnlp"

Don't forget to add the exception to the exception site list in the java console security panel. You can be as specific as you like or add the whole drive for testing:

file:///F:/
like image 66
ConRock5000 Avatar answered May 11 '26 16:05

ConRock5000



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!