Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Deployment Problem(Executable jar does not execute)
Deployment Problem [message #976337] Thu, 08 November 2012 14:00 Go to next message
Danny Bradley is currently offline Danny BradleyFriend
Messages: 3
Registered: November 2012
Junior Member
Platform: Windows7 32 bit.
Eclipse: Juno with SWT.

I used the deployment wizard as follows:
1. After right-clicking the project in the Java project explorer, I selected 'Export'.
2. In the 'Select' feature, I selected 'Java>Runnable Jar file' and clicked 'Next'.
3. In the 'Runnable Jar File' feature, I selected the correct 'Launch Configuration' and 'Export Destination'. I also selected 'Package required libraries into generated JAR', then clicked 'Finish'.
4. A 'Runnable JAR File Export' popup window appeared to tell me 'The JAR file finished with warnings...' This refers to a few unused variables, which are not a problem.
5. I clicked 'OK', and the wizard disappeared.
6. I navigated to the supposedly executable file on my C: drive. It is listed as an 'Executable jar file' of 15MB with the correct timestamp.
7. I double-clicked the executable jar file, and nothing happened.

My expectation was that step 7 would result in the application launch. What am I doing wrong, or what am I missing?
Re: Deployment Problem [message #976426 is a reply to message #976337] Thu, 08 November 2012 15:19 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/8/2012 8:08 AM, Danny Bradley wrote:
> Platform: Windows7 32 bit.
> Eclipse: Juno with SWT.
>
> I used the deployment wizard as follows:
> 1. After right-clicking the project in the Java project explorer, I
> selected 'Export'.
> 2. In the 'Select' feature, I selected 'Java>Runnable Jar file' and
> clicked 'Next'.
> 3. In the 'Runnable Jar File' feature, I selected the correct 'Launch
> Configuration' and 'Export Destination'. I also selected 'Package
> required libraries into generated JAR', then clicked 'Finish'.
> 4. A 'Runnable JAR File Export' popup window appeared to tell me 'The
> JAR file finished with warnings...' This refers to a few unused
> variables, which are not a problem.
> 5. I clicked 'OK', and the wizard disappeared.
> 6. I navigated to the supposedly executable file on my C: drive. It is
> listed as an 'Executable jar file' of 15MB with the correct timestamp.
> 7. I double-clicked the executable jar file, and nothing happened.
>
> My expectation was that step 7 would result in the application launch.
> What am I doing wrong, or what am I missing?

An executable JAR must nevertheless be launched, I think, even on
Windows. What you have is executed thus:

C:\Users\danny> java -jar project-name.jar

Though a Unix/Linux guy, I've developed a lot on Windows and I am
unfamiliar with any .exe wrapper for Java programs. Stilll, there might
be such a thing and I just don't know about it. I develop only web
applications.
Previous Topic:HelloWorldSWT
Next Topic:Help needed with link error
Goto Forum:
  


Current Time: Sat Apr 20 04:19:46 GMT 2024

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

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

Back to the top