未找到JWS类错误 [英] JWS Class not found error

查看:159
本文介绍了未找到JWS类错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试探索JWS如何端到端地工作,正在关注此博客。
JWS教程链接

I was trying to explore how the JWS works end to end, was following this blog. JWS tutorial link

最初得到未签名的jar错误 stackoverflow post - 现在可以修复,
但是现在没有找到它的投掷类,尝试了多个东西,比如创建一个没有包等的类,但仍然无法正常工作。带有步骤等的新类。

initially got "unsigned jar error" stackoverflow post- may be fixed now, but now its throwing class not found, tried multiple things like creating a class without package etc etc, but still its not working. A new class with the steps etc.

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

I am not sure if its some version compatibility issue or not.

Apache tomcat - 8.0.23
Java -1.8.0_40-b26

JNLP文件详细信息

JNLP file details

<?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>

课程详情

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);
     }
}



推荐答案

JWS需要外部jar到b在\lib \ ext目录中。

JWS needs the external jars to b in the \lib\ext directory.

这篇关于未找到JWS类错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆