Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Carl Burke - 05 Jan 2006 20:58 GMT
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.

--
Carl Burke
cburke@mitre.org
Andrew Thompson - 06 Jan 2006 00:46 GMT
> I have Java Web Start installed on my machine, I can run Web Start
> applications
[quoted text clipped - 3 lines]
> 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

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.