同标题,如何使用Netbeans IDE安装activejdbc for java?有人可以帮助我吗?
最佳答案
- 创建新的 Netbeans 项目
- 添加依赖库:
- 右键单击新创建的项目 -> 属性 -> 库
- 从库示例中添加“编译”库:https://github.com/javalite/ant-example/tree/master/lib
- 从构建时库示例中添加“处理器”库:https://github.com/javalite/ant-example/tree/master/build_time_libs
- 关闭
- 点击"file"选项卡并打开 build.xml
- 添加后编译目标:
<target name="-post-compile">
<java classname="org.javalite.instrumentation.Main" failonerror="true">
<sysproperty key="outputDirectory" value="${build.classes.dir}"></sysproperty>
<classpath>
<pathelement path="${build.classes.dir}">
<pathelement path="${javac.classpath}">
<pathelement path="${javac.processorpath}">
</pathelement></pathelement></pathelement></classpath>
</java>
</target>
- 保存并关闭文件
如果您正在从 Netbeans 运行项目,则需要执行额外的步骤:
右键单击项目 -> 属性 -> 编译并取消选中“保存时编译”
关于java - 使用 Netbeans IDE 安装适用于 Java 的 activejdbc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23010154/