This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes UnavailableServiceException: javax.jnlp.DownloadService2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "UnavailableServiceException: javax.jnlp.DownloadService2" Watch "UnavailableServiceException: javax.jnlp.DownloadService2" New topic
Author

UnavailableServiceException: javax.jnlp.DownloadService2

Vijay Simha
Greenhorn

Joined: Mar 11, 2011
Posts: 2
When I run JNLP file it downloads the jar and throws above exception:

DownloadService2 ds;
try {
ds = (DownloadService2)ServiceManager.lookup("javax.jnlp.DownloadService2");
} catch (UnavailableServiceException ue) {
ds = null;
ue.printStackTrace();
}

In eclipse it gets compiled properly.
Please help,
Thanks
 
Consider Paul's rocket mass heater.
 
subject: UnavailableServiceException: javax.jnlp.DownloadService2