查找“javax.jnlp.BasicService”时出现 UnavailableServiceException

发布于 2024-12-24 01:20:31 字数 487 浏览 3 评论 0原文

查找 javax.jnlp.BasicService 时抛出 UnavailableServiceException

下面是代码片段:

BasicService basicServiceHandle = 
    (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");

我只是尝试 jnlp API 的示例 - BasicService @ http:// pscode.org/jws/api.html#bs 作为 Java 应用程序。

关于同样的原因可能是什么...或者任何值得检查的事情有什么建议吗?

更新

我不知道我应该如何从 Eclipse 中尝试它。

UnavailableServiceException is being thrown on look-up for javax.jnlp.BasicService.

Below is the code snippet:

BasicService basicServiceHandle = 
    (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");

I am just trying an example of jnlp API - BasicService @ http://pscode.org/jws/api.html#bs as a Java Application.

Any suggestions as to what could be the reason for the same... or anything that could be worth checking?

Update

I am not sure how I should be trying it from eclipse.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

明天过后 2024-12-31 01:20:31

..不知道我应该如何从 eclipse 尝试它

  • ..不确定我应该如何从 eclipse文件|新建|Java 项目中
  • 项目名称:BasicService|完成
  • 文件|导入
  • 常规|存档文件|下一步
  • 来自存档文件:basicservice.zip (进入文件夹:BasicService)|完成
  • 在“Package Explorer”中,导航至:BasiceService/basicservice/build.xml
  • Ctrl+F11(运行)
  • Ant Build|OK
  • (按照提示操作)

可能有更好的方法。如图所示,这正是我通过下载 Eclipse 并通过帮助进行一些崩溃/操作后得出的结论。

..not sure how I should be trying it from eclipse

  • File|New|Java Project
  • Project name: BasicService|Finish
  • File|Import
  • General|Archive File|Next
  • From archive file: basicservice.zip (Into folder: BasicService)|Finish
  • In the 'Package Explorer', navigate to: BasiceService/basicservice/build.xml
  • Ctrl+F11 (Run)
  • Ant Build|OK
  • (Follow the prompts)

There may be better ways. That as shown is just what I figured out from having downloaded Eclipse and doing a bit of a crash/bang through the help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文