Netbeans JavaFX 2.0 Application

落花浮王杯 提交于 2020-01-25 05:54:29

问题


I'm developing a JavaFX 2.0 application using NetBeans, and I'm trying to deploy my application into a jar file.

I also need some external jars to be added. The build is made using ant which comes with Netbeans. Finally the manifest file looks like this:

Manifest-Version: 1.0

Ant-Version: Apache Ant 1.8.2

Created-By: 1.6.0_25-b06 (Sun Microsystems Inc.)

Implementation-Vendor: iulia

Implementation-Title: NewVersionV3

Implementation-Version: 1.0

Main-Class: com/javafx/main/Main

JavaFX-Application-Class: myapp.view.NewVersionV3

JavaFX-Version: 2.0

Class-Path: lib/commons-codec-1.3.jar lib/commons-httpclient-3.1.jar l
 ib/commons-logging-1.1.1.jar lib/httpclient-4.0.jar lib/log4j-1.2.16.
 jar 

Even having the Class-Path atribute there, generating the jar produces nothing
I found a console that tells me the problem :

Exception in thread "JavaFX-Launcher" java.lang.NoClassDefFoundError: org/apache/log4j/Logger

Apparently it does not find the jars. I checked out and there are at the right location in dist/lib and my jar is in dist folder.

Anyone has an idea about this?

Thanks a lot,

Iulia

来源:https://stackoverflow.com/questions/6268215/netbeans-javafx-2-0-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!