Hi,
First of all I am not a java programmer. what I am doing is just trying to port a precompiled game to other machine.
I have a java game project. the final output or the game is "game.jar". I compiled this in fedora with netbeans (5.5.1) ide. It was running well in fedora.
But The problem arises when I try to run that same jar file from windows with same command. I used same jdk in both linux and windows.
when I run it from fedora
# java -jar game.jar
works ok
but in windows
C:\src\java\Che rryGame\>java -jar game.jar
Exception in thread "AWT-EventQueue-0" java.lang.Numbe rFormatExceptio n: For input string: ""
at java.lang.Numbe rFormatExceptio n.forInputStrin g(NumberFormatE xception.java:4 8)
at java.lang.Integ er.parseInt(Int eger.java:468)
at java.lang.Integ er.parseInt(Int eger.java:497)
at cherrygame.glob al.readConfigFo rStickProtectio n(global.java:2 060)
at cherrygame.nbCh erryGame.<init> (nbCherryGame.j ava:243)
at netbeansapplica tion.nbApplicat ion.<init>(nbAp plication.java: 46)
at netbeansapplica tion.nbApplicat ion$14.run(nbAp plication.java: 453)
at java.awt.event. InvocationEvent .dispatch(Invoc ationEvent.java :209)
at java.awt.EventQ ueue.dispatchEv ent(EventQueue. java:597)
at java.awt.EventD ispatchThread.p umpOneEventForF ilters(EventDis patchThread.jav a:273)
at java.awt.EventD ispatchThread.p umpEventsForFil ter(EventDispat chThread.java:1 83)
at java.awt.EventD ispatchThread.p umpEventsForHie rarchy(EventDis patchThread.jav a:173)
at java.awt.EventD ispatchThread.p umpEvents(Event DispatchThread. java:168)
at java.awt.EventD ispatchThread.p umpEvents(Event DispatchThread. java:160)
at java.awt.EventD ispatchThread.r un(EventDispatc hThread.java:12 1)
I use the same directory structure in both linux and windows. in fact I use the same jar file all the time. the source tree is accessible in both linux and windows.
Can anyone tell me how to make it run successfully?
I am stuck.
First of all I am not a java programmer. what I am doing is just trying to port a precompiled game to other machine.
I have a java game project. the final output or the game is "game.jar". I compiled this in fedora with netbeans (5.5.1) ide. It was running well in fedora.
But The problem arises when I try to run that same jar file from windows with same command. I used same jdk in both linux and windows.
when I run it from fedora
# java -jar game.jar
works ok
but in windows
C:\src\java\Che rryGame\>java -jar game.jar
Exception in thread "AWT-EventQueue-0" java.lang.Numbe rFormatExceptio n: For input string: ""
at java.lang.Numbe rFormatExceptio n.forInputStrin g(NumberFormatE xception.java:4 8)
at java.lang.Integ er.parseInt(Int eger.java:468)
at java.lang.Integ er.parseInt(Int eger.java:497)
at cherrygame.glob al.readConfigFo rStickProtectio n(global.java:2 060)
at cherrygame.nbCh erryGame.<init> (nbCherryGame.j ava:243)
at netbeansapplica tion.nbApplicat ion.<init>(nbAp plication.java: 46)
at netbeansapplica tion.nbApplicat ion$14.run(nbAp plication.java: 453)
at java.awt.event. InvocationEvent .dispatch(Invoc ationEvent.java :209)
at java.awt.EventQ ueue.dispatchEv ent(EventQueue. java:597)
at java.awt.EventD ispatchThread.p umpOneEventForF ilters(EventDis patchThread.jav a:273)
at java.awt.EventD ispatchThread.p umpEventsForFil ter(EventDispat chThread.java:1 83)
at java.awt.EventD ispatchThread.p umpEventsForHie rarchy(EventDis patchThread.jav a:173)
at java.awt.EventD ispatchThread.p umpEvents(Event DispatchThread. java:168)
at java.awt.EventD ispatchThread.p umpEvents(Event DispatchThread. java:160)
at java.awt.EventD ispatchThread.r un(EventDispatc hThread.java:12 1)
I use the same directory structure in both linux and windows. in fact I use the same jar file all the time. the source tree is accessible in both linux and windows.
Can anyone tell me how to make it run successfully?
I am stuck.
Comment