|
|
|
Re: cannot run jar file [message #1021186 is a reply to message #1017548] |
Tue, 19 March 2013 12:08  |
Eclipse User |
|
|
|
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.07282 seconds