Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Export runnable Jar, blank launch configuration(first time trying to export a runnable jar)
Export runnable Jar, blank launch configuration [message #535293] Fri, 21 May 2010 22:06 Go to next message
Lucas  is currently offline Lucas Friend
Messages: 3
Registered: May 2010
Junior Member
Hello,

I am new to eclipse. I have a project which I am successfully able to run.
I can not seem to export a runnable jar. The finish button is grayed out and I am pretty confident it is because I do not have a Launch configuration selected.

I have searched launch configurations and all I could really find is that you create them through the run button, which I have done as I can run my class.

Is there anything specific I need to enable in a launch configuration in order to have it enabled inside the runnable jar window?

Any help would be appreciated.
Lucas
Re: Export runnable Jar, blank launch configuration [message #535394 is a reply to message #535293] Sun, 23 May 2010 06:27 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

please see here: http://www.vogella.de/articles/Eclipse/article.html

To make it runable you also need to maintain the MANIFEST.MF:
http://www.vogella.de/articles/JavaIntroduction/article.html #jarfiles_executable

Best regards, Lars
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter

On 22.05.2010 00:06, Lucas wrote:
> Hello,
>
> I am new to eclipse. I have a project which I am successfully able to run.
> I can not seem to export a runnable jar. The finish button is grayed out
> and I am pretty confident it is because I do not have a Launch
> configuration selected.
>
> I have searched launch configurations and all I could really find is
> that you create them through the run button, which I have done as I can
> run my class.
>
> Is there anything specific I need to enable in a launch configuration in
> order to have it enabled inside the runnable jar window?
>
> Any help would be appreciated.
> Lucas
Re: Export runnable Jar, blank launch configuration [message #535452 is a reply to message #535394] Sun, 23 May 2010 17:35 Go to previous messageGo to next message
Lucas  is currently offline Lucas Friend
Messages: 3
Registered: May 2010
Junior Member
Lars Vogel wrote on Sun, 23 May 2010 02:27
Hi,

please see here: http://www.vogella.de/articles/Eclipse/article.html

To make it runable you also need to maintain the MANIFEST.MF:
http://www.vogella.de/articles/JavaIntroduction/article.html #jarfiles_executable

Best regards, Lars
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter

On 22.05.2010 00:06, Lucas wrote:
> Hello,
>
> I am new to eclipse. I have a project which I am successfully able to run.
> I can not seem to export a runnable jar. The finish button is grayed out
> and I am pretty confident it is because I do not have a Launch
> configuration selected.
>
> I have searched launch configurations and all I could really find is
> that you create them through the run button, which I have done as I can
> run my class.
>
> Is there anything specific I need to enable in a launch configuration in
> order to have it enabled inside the runnable jar window?
>
> Any help would be appreciated.
> Lucas


Thank you. Yes I am aware of creating a manifest file.
Your writeup seems very helpful except it only discusses exporting a .jar

My understanding is by exporting a runnable jar the .manifest file is referenced and then the classpath information during "java ..." is not required.

My issue is that the export runnable jar window requests a launch configuration, which is blank despite the fact that I have the "Main" launch configuration created via right clicking on the class and saying "run as java applet"

Lucas
Re: Export runnable Jar, blank launch configuration [message #555641 is a reply to message #535452] Fri, 27 August 2010 13:22 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: August 2010
Junior Member
I am having the same problem. Was there a solution found for this?
Re: Export runnable Jar, blank launch configuration [message #555876 is a reply to message #555641] Sun, 29 August 2010 21:40 Go to previous messageGo to next message
Lucas  is currently offline Lucas Friend
Messages: 3
Registered: May 2010
Junior Member
I can not recall how I fixed this. I believe I was trying to export the wrong type. I was fundamentally doing something wrong. Sorry I can't help further.
Re: Export runnable Jar, blank launch configuration [message #658247 is a reply to message #555876] Mon, 07 March 2011 15:13 Go to previous messageGo to next message
jalbautista is currently offline jalbautistaFriend
Messages: 1
Registered: March 2011
Junior Member
To solve this what I did is I set the Main Class in the Run Configuration for the project:

File -> Run As -> Run Configuration.

Double Click "Java Application" and a new Configuration dialog appears.

in Main Class, Search for the class that you would like to set as Main Class. Click Apply then Close

Now, when you Export the project as Runnable Jar, you will the Launch Configuration is enabled and the Configuration setting that you made is available for selection.


Re: Export runnable Jar, blank launch configuration [message #815915 is a reply to message #658247] Thu, 08 March 2012 07:39 Go to previous message
Sergey Didenko is currently offline Sergey DidenkoFriend
Messages: 1
Registered: March 2012
Junior Member
Thank you! It worked for me.
Previous Topic:Problem of dependencies installing plugins (like Java EE Developer Tools)
Next Topic:Can not add or edit JDBC Data Source
Goto Forum:
  


Current Time: Fri Apr 19 13:14:06 GMT 2024

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

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

Back to the top