首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未找到JWS类错误

未找到JWS类错误
EN

Stack Overflow用户
提问于 2015-07-07 05:23:09
回答 1查看 275关注 0票数 0

我试图探索JWS是如何端到端地工作的,当时我正在关注这个博客。JWS教程链接

最初得到的“无符号jar错误”堆叠溢流柱- -现在可能已经修复了,但是现在它的抛出类找不到了,尝试了很多事情,比如创建一个没有包的类等等,但是它仍然不能工作。有台阶等的新类。

我不确定是否存在某些版本兼容性问题。

Apache tomcat - 8.0.23 Java -1.8.0_40-b26

JNLP文件详细信息

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/" href="JNLPExample.jnlp">

     <information>
          <title>JNLP Example</title>
          <vendor>Java Code Geeks</vendor>
          <homepage href="http://localhost:8080/" />
          <description>JNLP Testing</description>
     </information>

     <security>
          <all-permissions/>
     </security>

     <resources>
          <j2se version="1.6+" />
          <jar href="JNLPExample.jar" />
     </resources>

     <application-desc main-class="main.javacodegeeks.JNLPExample" />
</jnlp>

类细节

代码语言:javascript
复制
package main.javacodegeeks;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class JNLPExample extends JFrame {

     private static final long serialVersionUID = 4968624166243565348L;

     private JLabel label = new JLabel("Hello from Java Code Geeks!");

     public JNLPExample() {
          super("Jave Web Start Example");
          this.setSize(350, 200);
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          this.setLayout(null);
     }

     public void addButtons() {
          label.setSize(200, 30);
          label.setLocation(80, 50);
          this.getContentPane().add(label);
     }

     public static void main(String[] args) {
          JNLPExample exp = new JNLPExample();
          exp.addButtons();
          exp.setVisible(true);
     }
}

EN

回答 1

Stack Overflow用户

发布于 2016-08-10 20:24:10

JWS需要外部jars到\lib\ext目录中的b。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31260333

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档