【发布时间】:2013-11-12 10:57:03
【问题描述】:
我有两个文件
在 project1 中有一个名为 test.java 的文件:
public class test {
public static void main(String[] args) {
sayHello();
}
public static void sayHello() {
System.out.println("MyTest says hello!");
}}
在 project2 中有一个名为 test2.java 的文件:
public class test2
{
public static void main(String[] args)
{
sayHello();
}
public static void sayHello() {
System.out.println("MyTest2 says hello!");
}}
这里我需要在不使用maven的情况下将test(在项目1中)的类文件链接到test2(这是我的project2)。我该如何进行?
【问题讨论】:
标签: eclipse maven dependencies