你们说的这种方法,我试了10多遍了。添加lib可以,可是无法添加folder呀。我用那个add class folder按钮,然后创建新文件夹,选择连接到文件系统文件夹。之后会提示什么nested了,确定按钮变灰。拜托大家先试通了,说的详细一点。我要实现的只是类似 javac -classpath c:\app1\classes;c:\app2\classes *.java 这样的功能。
如果编译时想用其他目录下的class,我是先建一个Project,然后在新建的Project里面要求build的时候指向第一个Project,这样就可以了。 通过add class folder按钮确实不行,我也不知道什么原因。
<<project name>>left button ->properties ->(in pop up/left)java build path ->(right)Add Variable... ->(in popup, don't select any item in the left)Edit ->(in popup right) New ->(in popup)input "name" and select the folder ==>4times ok
刚才maillist里的一个朋友说,v2.1.2里add class folder可以,今晚回家升级试试。现在用的是v2.1.1
右键选edit里面可以选择啊
同JCreate
javac -classpath c:\app1\classes;c:\app2\classes *.java
这样的功能。
通过add class folder按钮确实不行,我也不知道什么原因。
->properties
->(in pop up/left)java build path
->(right)Add Variable...
->(in popup, don't select any item in the left)Edit
->(in popup right) New
->(in popup)input "name" and select the folder
==>4times ok