Can we call another project java class from our project in eclipse

前端 未结 9 1595
心在旅途
心在旅途 2020-11-30 07:40
import ...

public class TriggerJob {

    String jobStatus = \"\";
    SchedulerMetaData metaData = null;

    public void rightNow(HashMap ParamMap){ 

AnotherProj         


        
9条回答
  •  不知归路
    2020-11-30 07:55

    You can do it in 2 ways.
    Export the other project to jar and import the jar in your project.

    OR

    In the dependency you can add the other projects to your project. Right click on project --> properties --> java build path --> projects. Add your project here

提交回复
热议问题