javax.jnlp -- how do I access this package?

C

Carl Burke

I have Java Web Start installed on my machine, I can run Web Start
applications
from my browser, but when I try to write code accessing the Web Start APIs
the compiler complains that there is no such package. The documentation is
less than helpful, since I've already taken all of the specified steps to
install
Web Start on my local machine, and I can run applications that have been
packaged using Web Start. Where do I get the jar file with the developer
classes, and where am I supposed to put it? (This is for JDKs 1.4.2 and
1.5.0)

What I need to do is to convert an application which some local idiot
decided
to deliver using JNLP into an application which can run either under JNLP
(where we have the luxury of a web server) or as a local application (when
the
security restrictions prohibit installation of a web server or when running
on a
machine without web start installed and with no connection to the network).
I need to be able to store some local configuration information, which under
Web Start requires use of the PersistentService, and I also need to know if
the application was launched under Web Start this time around so that I can
set the correct resource paths for icons displayed by the app.

Thanks in advance for any useful insights you can provide.
 
A

Andrew Thompson

Carl said:
I have Java Web Start installed on my machine, I can run Web Start
applications
from my browser, but when I try to write code accessing the Web Start APIs
the compiler complains that there is no such package. The documentation is
less than helpful, since I've already taken all of the specified steps to
install
Web Start on my local machine,
[1]

....and I can run applications that have been
packaged using Web Start. Where do I get the jar file with the developer
classes, and where am I supposed to put it? (This is for JDKs 1.4.2 and
1.5.0)

The JWS 'Developer Bundle' was eliminated between 1.4 and 1.5.
JWS was a separate plug-in for 1.4, but became integrated with the
core classes in 1.5

You should be able to compile against the 1.5 SDK without specifically
referring to external packages.
... and I also need to know if
the application was launched under Web Start this time around so that I can
set the correct resource paths for icons displayed by the app.

You will find that calls to functionality available to WebStart
applications will fail in the non JWS app., AFAIR it is something
to do with JWS managers/stubs not being initialised.

Pop a try/catch around such an attempt and you have your answer.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top