- ----- Solution --------------------------------------------
eclipse directly exported jar is able to run , you're not running, it has been reported anything wrong with it ( if possible the exception stickers ) ? instruments not used
------ Solution - ------------------------------------------
with eclipse export jiar do suddenly finish, to be a step by step next, and then select the Main Class to finish
------ Solution --------------------- -----------------------
often can I use eclipse to export jar.
suggest you look at your configuration , such as environment variables or something
------ Solution --------------------- -----------------------
or , maybe, maybe your machine to reinstall the system , or reinstall the JDK and the like, cause can not be found to the JRE
1. Open dos command line window
2. execute the java command , see the JDK is normal ( if you can run eclipse probably should be no problem )
3.cd to the jar file directory
4. execute java-jar your jar package . jar view specific information about running error
Possible problems : Code error, or references other libraries but did not include it ....
------ Solution ---------- ----------------------------------
java-jar and then send the wrong information posted
------ Solution ------------------------------------------ -
is not your picture in the program which is loaded ?
If the image is loaded into the jar package , then the path and access images when debugging inside the eclipse path is not the same
Perhaps loading error, the wrong path , so do not run successfully
java-jar and then send the wrong information posted
------ For reference only ----------------------- ----------------
upstairs said, I step next, but also chose the Main Class, the operation should not be an error . In addition, I tried to double-click to open the jar file , it will flash command line window pop up , but then closed, and then did a
------ For reference only -------------- -------------------------
else to look at e-mail address , I put the project to you , to help debugging , thank you
------ For reference only --------------------------------------- < br> Well , the error message is : MissingFieldException [ startup file is missing the following required fields :
at com.sun.javaws.jnl.XMLFormat.parse (Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor (Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor (Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor (Unknown Source)
at com.sun.javaws.Main.launchApp (Unknown Source)
at com.sun.javaws.Main.continueInSecureThread (Unknown Source)
at com.sun.javaws.Main $ 1.run (Unknown Source)
at java.lang.Thread.run (Unknown Source)
------ For reference only ---------------------------------- -----
I have encountered this situation , and later inexplicably good !
------ For reference only -------------------------------------- -
really is a Chinese path problem
没有评论:
发表评论