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

前端 未结 9 1554
心在旅途
心在旅途 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:56

    This works fine as long as you have imported the project containing the classes.

    Assuming your using Eclipse the following steps will work:

    1. Right Click > Project
    2. Click Project Properties
    3. Click Java Build Path
    4. Click the Projects Tab
    5. Click the Add Button
    6. Select the Project
    7. Click OK

提交回复
热议问题