我尝试使用eclipse和maven作为依赖解析器部署web应用程序。但我看到的是:
00:05:31,883 WARN [org.jboss.as.ee] (MSC service thread 1-6) JBAS011006: Not installing optional component org.springframework.web.context.ContextLoaderListener due to exception: java.lang.ClassNotFoundException: org.springframework.web.context.Context
他的全部,
我想为java应用程序创建一个jar文件,并且能够正确地为它创建jar文件。我按照下面的链接创建了jar文件。
但我面临的问题是,我在应用程序中添加了外部jar文件,如jna.jar、platform.jar和vlcj-1.2.0-javadoc.jar文件,以便成功运行我的应用程序。当我在eclipse中运行时,这个应用程序运行得很好,但是当我为同一个应用程序创建远端文件时,我得到了类似No class defination fine error这样的错误。缺少jna本机库。
所以请你告诉我真正的问题是什么,我该如何解决它。另外,在创建jar文件时,我启用了"Export
Caused by: java.io.FileNotFoundException: town.zip (The system cannot find the f
ile specified)
当我试图从构建在Windows 7上的JAR (反之亦然)加载Linux上的3d场景时,Linux得到了与Windows上的JAR相同的错误。我只使用正常的设置在eclipse中创建一个可运行的jar。我做错了什么?这似乎与我的实际代码没有什么关系,只是一个打包问题。
加载文件的代码(在构建文件的平台上工作)是:
assetManager.registerLocator("town.zip"
我一直试图从Jarfile运行一个应用程序,但它一直在打印:
“找不到或加载主类.”
我试图使用这个中的信息来解决这个问题,但所有这些似乎都是无用的。老实说,我很绝望,因为这是一个微不足道的问题。
Anyways,我所做的:
Main-Class: com.test.Test
我的清单属性:
jar cfm test.jar manifest.txt <full_path>/out/com/test/*.class
这就是打包到jar文件( Test.class文件)中的内容。
测试类:
package com.test;
public class Test {
pu
我正在使用和Eclipse。
我正在尝试从Eclipse中的项目导出一个可运行的jar。导出进行得很好,但是当我试图运行jar时,我得到了以下错误:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav