Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Runnable jar can not be created in eclipse(class with main() is not coming up in selection list for launch configuration)
Runnable jar can not be created in eclipse [message #1242713] Sun, 09 February 2014 20:56 Go to next message
Eclipse UserFriend
I have asked same question in IDE forum, but responses are too slow on that forum. So I am putting it here, please excuse me for that.

I have created a java project in eclipse. This project "ScanFiles" has only one class "ScanAttachedFiles" with main().

When I am using export option for this project, pop up window for selecting launch configuration comes up. But in the selection list, I don't see the project name of "ScanFiles" and class name "ScanAttachedFiles"

I created one project before to test some functionalities and that project comes up in selection list.

I have more than 12 projects in project explorer. I see 12 projects coming up in launch configuration selection list. Is there a limit on number of projects being displayed in selection list ? I commented two classes with main() in one project, but still both of them come up in selection list.
It looks like eclipse is not refreshing properly to take changes.
I did refresh for the ScanFiles project, but still same result.

Please let me know, whats wrong here.
I am using SpringSource IDE, which has eclipse embedded in it. I am not sure about version of eclipse.

Thanks

Re: Runnable jar can not be created in eclipse [message #1243127 is a reply to message #1242713] Mon, 10 February 2014 09:52 Go to previous messageGo to next message
Eclipse UserFriend
You have to actually launch the class at least once or manually create a launch configuration for it in order for it to show up in the launch configuration selection list.
Re: Runnable jar can not be created in eclipse [message #1243200 is a reply to message #1243127] Mon, 10 February 2014 12:04 Go to previous messageGo to next message
Eclipse UserFriend
How to create launch configuration manually ?

Thanks

[Updated on: Mon, 10 February 2014 12:07] by Moderator

Re: Runnable jar can not be created in eclipse [message #1243268 is a reply to message #1243200] Mon, 10 February 2014 14:19 Go to previous message
Eclipse UserFriend
Use the Run menu. Select Run Configurations... and fill in the appropriate information in the dialog. This is documented in the Java Development Users Guide provided with the Eclipse Java Development Tools.
Previous Topic:How to successfully use an existing workspace in multiple versions of eclipse?
Next Topic:Remote Debugging Issue
Goto Forum:
  


Current Time: Thu Apr 17 21:53:33 EDT 2025

Powered by FUDForum. Page generated in 0.02749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top