cannot run jar file [message #1017548] |
Tue, 12 March 2013 03:47 |
|
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 #1021156 is a reply to message #1021052] |
Tue, 19 March 2013 15:28 |
|
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.09208 seconds