gpt4 book ai didi

java - 无法在 Web 启动中找到 com.simontuffs.onejar.Boot

转载 作者:行者123 更新时间:2023-12-01 05:35:16 29 4
gpt4 key购买 nike

我是 java web start 的新手。我正在尝试使用 web start 来吃一 jar 午餐。但我收到此错误:

java.lang.IllegalArgumentException: Unable to locate com.simontuffs.onejar.Boot in the java.class.path: consider using -Done-jar.jar.path to specify the one-jar filename. at com.simontuffs.onejar.Boot.getMyJarPath(Boot.java:400) at com.simontuffs.onejar.Boot.run(Boot.java:212) at com.simontuffs.onejar.Boot.main(Boot.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

我的 jnlp 文件包含:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="">
<information>
<title>my application</title>
<vendor>example</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.5+"
href="http://java.sun.com/products/autodl/j2se"/>
<jar href="My_Application.jar" main="true" download="eager" />
</resources>
<application-desc main-class="com.simontuffs.onejar.Boot">
</application-desc>
<update check="background"/>
<security>
<all-permissions/>
</security>
</jnlp>

最佳答案

我正在寻找类似的问题并遇到了你的问题。看来 One-Jar 不支持 JWS,请参阅 thisthis .

关于java - 无法在 Web 启动中找到 com.simontuffs.onejar.Boot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8292123/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com