打包成jar的方法:Tools->Archive wizard->select the basic ....Then your can add the jar to the other project: In the left preject viewer, right click to the root directory,in the context mene, select the properties, then you can see the list of "Required libraries" label, here press the "Add" button to add the jar to the project by the wizard. Ok, if you don't know yet, you can ask me for help, I will send you the .doc documentation(as this doc has picture and I can't put it here) by the email([email protected]), the documentation is written by someone who has provide the database develop package.
2、可以将工程A的类打入.jar文件,当然要包括package语句所指定的目录,设classpath指向.jar文件;
3、或者直接设classpath指向package语句所指定的目录
4、在B中使用import语句。
In the left preject viewer, right click to the root directory,in the context mene, select the properties, then you can see the list of "Required libraries" label, here press the "Add" button to add the jar to the project by the wizard.
Ok, if you don't know yet, you can ask me for help, I will send you the .doc documentation(as this doc has picture and I can't put it here) by the email([email protected]), the documentation is written by someone who has provide the database develop package.
刚接触JAVA。
谢谢了!