简体   繁体   English

如何在NetBeans中安装jBox2d?

[英]How to install jBox2d in NetBeans?

I would like to make the game in Java with jBox2D. 我想用jBox2D用Java制作游戏。 Unfortunately, I do not know how to install the necessary libraries to be able to use jBox2D. 不幸的是,我不知道如何安装必要的库才能使用jBox2D。

I'm using NetBeans. 我正在使用NetBeans。

You don't " install " a library in an IDE, you configure the classpath for your project using your IDE. 您没有在IDE中“ 安装 ”库,而是使用IDE配置项目的类路径。

Right click on your project in the "Projects" tab. 在“项目”选项卡中右键单击您的项目。 Choose "Properties". 选择“属性”。 In the tree at the left of the dialog, enter "Libraries". 在对话框左侧的树中,输入“库”。 Then click the button at the left "Add JAR/Folder" and navigate to the library jar of JBox2D. 然后单击左侧“添加JAR /文件夹”中的按钮,并导航到JBox2D的库jar。

类路径编辑器

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

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