I can't export my jar.
Here is a list of projects it lets me export...
And here is a list of projects I actually have in eclipse..
So why can I not actually export the jars that I need to.. ?
I can't export my jar.
Here is a list of projects it lets me export...
And here is a list of projects I actually have in eclipse..
So why can I not actually export the jars that I need to.. ?
Those aren't projects in the first screenshot, those are launch configurations. If you want just a jar, export as a jar and it won't ask you for a launch configuration. If you want a runnable jar (aka main method in the manifest), you need to create a run configuration first, usually the easiest way is to run your project in eclipse, then it should populate the launch config in the list.
First they ignore you, then they laugh at you, then they fight you, then you win.
Stance on Leechers
Last edited by Brandon; 02-28-2014 at 05:30 PM.
I am Ggzz..
Hackintosher
First they ignore you, then they laugh at you, then they fight you, then you win.
Stance on Leechers
It does create a run-able jar :l He is trying to double click the jar and that's why it isn't running?
Because the jar might not have a proper manifest OR you might not have your registry set right..
C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %* is what it needs to be opened with through double clicking.. That requires these two Default keys to be modified: HKEY_CLASSES_ROOT\jarfile\shell\open\command and HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jarfile\shell\ open\command
However, if you don't care about double clicking then try pressing "WindowsKey + R" and then type "cmd".
In cmd, type "java -jar MyJarFile.jar"
where MyJarFile is the location of your jar.. if it runs fine, there is no problem with the IDE being retarded or your Jar file.. It's your system.
Last edited by Brandon; 03-01-2014 at 01:38 AM.
I am Ggzz..
Hackintosher
Yes, this is technically true.
But in order to be able to run the jar, make sure you don't click "Finish" until you click "Next" all the way through to the JAR manifest specification and specify your main class.
The Runnable Jar option just hides away much of the configuration in favor of making the process simpler.
First they ignore you, then they laugh at you, then they fight you, then you win.
Stance on Leechers
There are currently 1 users browsing this thread. (0 members and 1 guests)