Unable to export runnable jar, launch configuration grayed out

Posted by user13107 on Stack Overflow See other posts from Stack Overflow or by user13107
Published on 2014-06-11T09:22:21Z Indexed on 2014/06/11 9:24 UTC
Read the original article Hit count: 194

Filed under:
|
|

I am not able to figure out how to export a runnable jar in eclipse.

I have a java project (project A) (written by someone else) which when imported in Eclipse, I can click Build Project and it will create a projectName.jar file under bin/ directory. That jar file contains binary *.class files.

This jar file is added as external library for another java project (project B) which I want to debug. But because all the class files are binary I'm not able to do line-by-line debugging.

I tried exporting Runnable Jar in Eclipse, for that I have to select a Launch Configuration. But there is no main class in project A. (I recursively grepped for main and didn't find any).

What can I do to export jar of project A that contains respective source code also (which will be used in line-by-line debugging)?

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse