简体   繁体   中英

jar eclipse launch configuration - what does it mean and how do i use it in my example?

I have two projects P1 and P2. P2 depends on P1 and both have their own main. I am trying to convert both into JARS.

When I try to make P1 into a JAR, i see a dialog box with "launch configuration" field in it. I don't know what this does. I entered P1 into it and the jar was ready. Did I get this correctly ?

I also want to make a jar out of P2. What do i enter in the launch config for that ?

Launch configuration : Select a 'Java Application' launch configuration to use to create a runnable JAR.

If you have already " Run " or Set the run configuration of this project in Eclipse, you can find the according launch configuration in this drop down list of Launch configuration .

在此处输入图片说明

Thus, what you need to do is to speificy the correct configuration for the correct jar. The one starts with P1 main method for P1, the other starts with P2 main method for P2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM