【问题标题】:dependencies without using maven不使用maven的依赖
【发布时间】: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


    【解决方案1】:

    如果您使用的是 Eclipse,请右键单击 project2>properties>java build path>projects> 添加项目 1。

    【讨论】:

      猜你喜欢
      • 2013-11-17
      • 1970-01-01
      • 2020-06-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多