Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » cannot run jar file
icon5.gif  cannot run jar file [message #1017548] Tue, 12 March 2013 03:47 Go to next message
Ronnel Aldrin Capati is currently offline Ronnel Aldrin CapatiFriend
Messages: 2
Registered: March 2013
Location: Manila Philippines
Junior Member
good day,

i created a simple game program. It runs without problems in eclipse. I created a runnable jar file by:

1 right click java folder
2 click export
3 select "Runnable JAR file" [next]
4 [my export destination is my desktop]
5 [library handling: extract required libraries...]

when i double click the jar file, it says "A Java Exception has occurred", so i tried to open it to cmd and it says: "Error: Unable to access jarfile rpsBETA.jar"

rpsBETA.jar is the name of my jarfile. i reinstalled my java and still show the same error.. my version of java is the java 7 update 17 [prolly the latest since i downloaded it yesterday]

most solution i searched said is to reinstall/update my java...so what should i do now??

Re: cannot run jar file [message #1021052 is a reply to message #1017548] Tue, 19 March 2013 12:46 Go to previous messageGo to next message
Joe Norman is currently offline Joe NormanFriend
Messages: 1
Registered: March 2013
Junior Member
From what I'm aware the issue is with the way Eclipse executes and creates runnable .JAR files, but then again I could be wrong.

Try another runnable JAR compilation program, as I know there are many out there which may be able to help you (providing you set it up correctly).
Re: cannot run jar file [message #1021156 is a reply to message #1021052] Tue, 19 March 2013 15:28 Go to previous messageGo to next message
Ronnel Aldrin Capati is currently offline Ronnel Aldrin CapatiFriend
Messages: 2
Registered: March 2013
Location: Manila Philippines
Junior Member
Joe Norman wrote on Tue, 19 March 2013 08:46

Try another runnable JAR compilation program, as I know there are many out there which may be able to help you (providing you set it up correctly).


hi,

can you provide some references or something that will help me? thanks

oh btw
my setup is similar to how i saw it in youtube, provided by sir thenewboston's java game development tutorial
Re: cannot run jar file [message #1021186 is a reply to message #1017548] Tue, 19 March 2013 16:08 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 3/12/2013 7:21 AM, Ronnel Aldrin Capati wrote:
> good day,
>
> i created a simple game program. It runs without problems in eclipse. I
> created a runnable jar file by:
>
> 1 right click java folder
> 2 click export
> 3 select "Runnable JAR file" [next]
> 4 [my export destination is my desktop]
> 5 [library handling: extract required libraries...]
>
> when i double click the jar file, it says "A Java Exception has
> occurred", so i tried to open it to cmd and it says: "Error: Unable to
> access jarfile rpsBETA.jar"
>
> rpsBETA.jar is the name of my jarfile. i reinstalled my java and still
> show the same error.. my version of java is the java 7 update 17 [prolly
> the latest since i downloaded it yesterday]
>
> most solution i searched said is to reinstall/update my java...so what
> should i do now??

I've never had any trouble creating JARs, runnable or not, in Eclipse,
though I admit I do it more often using ant because my code is used in
continuous deployment (via Jenkins) more and more.

http://www.javahotchocolate.com/tutorials/jars-and-wars.html
Previous Topic:Project Needs Guidance
Next Topic:turning off "content assist" or "completion"
Goto Forum:
  


Current Time: Fri Apr 19 23:37:18 GMT 2024

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

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

Back to the top