简体   繁体   English

Java - 设置类路径

[英]Java - setting classpath

My sample application tells me: 我的示例应用程序告诉我:

No 'qtjambi-deployment.xml' found in classpath, loading
libraries via 'java.library.path'

I wish for my application to use the qtjambi-deployment.xml , but unfortunately can't find the appropriate setting in IntelliJ IDEA 10.5 . 我希望我的应用程序使用qtjambi-deployment.xml ,但遗憾的是在IntelliJ IDEA 10.5找不到合适的设置。

Could someone help me? 有人能帮助我吗?

You can right click on any directory in your IntelliJ project, select "Mark Directory As...", and choose "Source Root". 您可以右键单击IntelliJ项目中的任何目录,选择“将目录标记为...”,然后选择“源根”。 That director folder will change color from yellow to blue; 导演文件夹将颜色从黄色变为蓝色; IntelliJ considers all those directories to be in your CLASSPATH. IntelliJ认为所有这些目录都在您的CLASSPATH中。

  • From the top menu click 'Run' => 'Edit Configurations' 从顶部菜单中单击“运行”=>“编辑配置”
  • Choose the right 'Application' in the left column (if it's not yet selected) 在左栏中选择正确的“应用程序”(如果尚未选中)
  • Click on 'Configuration' tab in the right hand side column (if it's not yet selected) 点击右侧栏中的“配置”标签(如果尚未选中)
  • Click the '...' button to the right of 'Environment variables:' 点击“环境变量:”右侧的“...”按钮
  • Click the '+' button. 单击“+”按钮。

qtjambi-deployment.xml file is situated in qtjambi-win<architecture>-msvc<year>-<vertion>.jar . qtjambi-deployment.xml文件位于qtjambi-win<architecture>-msvc<year>-<vertion>.jar Add this package to your classpath and your building problem will be solved. 将此包添加到类路径中,您的构建问题将得到解决。 I hope) 我希望)

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

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