简体   繁体   English

树莓派中javafx应用程序中的noClassDefFoundException

[英]noClassDefFoundException in javafx application in raspberry pi

I'm new to raspberry api, i have created a javaFX application from windows 7 using netbeans 7.3.1 , jdk 1.7 .. database used is firebird .. so i incorporated jaybird jar with library after that i clean and build the application.. then copied the dist folder to raspberrypi machine. 我是树莓api的新手,我使用netbeans 7.3.1从Windows 7创建了一个JavaFX应用程序,jdk 1.7 ..使用的数据库是firebird ..因此,在清理并构建该应用程序之后,我将jaybird jar与库合并。然后将dist文件夹复制到raspberrypi计算机。

Then i tried to run the jar from command line .. but it gives Exception like "noClassDefFoundError:org/firebirdsql/even/EventManager " and exiting the application.. 然后,我尝试从命令行运行jar。但是它给出了诸如"noClassDefFoundError:org/firebirdsql/even/EventManager ”之类的异常,并退出了应用程序。

But it works fine with windows 7,ubuntu and centOS 但它在Windows 7,ubuntu和centOS上都能正常工作

Why I have the above exception when I start my javafx application in raspberry pi only.Can anyone give any help 为什么仅在raspberry pi中启动javafx应用程序时出现上述异常?任何人都可以提供任何帮助

thanks... 谢谢...

I think you have to configure Buildpath of your project and add jaybird jar. 我认为您必须配置项目的Buildpath并添加jaybird jar。 Do this as suggested below: 按照以下建议执行此操作:

RightClick on your Project -> Build Path -> Configure Buildpath

Then the window be will be shown with Libraries as one of the tab. 然后将显示窗口,其中库是选项卡之一。 Select that tab. 选择该标签。

Then click Add External Jars in the right side buttons list. 然后在右侧按钮列表中单击“ Add External Jars ”。 Add the required Jars and select OK . 添加所需的Jar,然后select OK Once clean and build your project. 一旦清理并构建您的项目。

Hope this will help you. 希望这会帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM