Skip to main content



      Home
Home » Newcomers » Newcomers » cannot run jar file
icon5.gif  cannot run jar file [message #1017548] Mon, 11 March 2013 23:47 Go to next message
Eclipse UserFriend
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 08:46 Go to previous messageGo to next message
Eclipse UserFriend
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 11:28 Go to previous messageGo to next message
Eclipse UserFriend
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 12:08 Go to previous message
Eclipse UserFriend
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: Tue Sep 09 22:44:17 EDT 2025

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

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

Back to the top