Runnable jar not working right [message #1735028] |
Tue, 14 June 2016 14:22  |
Eclipse User |
|
|
|
Hi There,
I tried to build MagicDraw sample source code in eclipse. Here are some problems:
I use eclipse Java Mars, If I run from eclipse, the MagicDraw project return 6 images, if I export the code to a jar file and run it, it returns different results:
1) If I export to "runnable Jar files" with Library handling - "Extract required libraries into generated JAR" or "Package required libraries into generated JAR", run my batch file, nothing generated. The code stuck in the main() function.
2) If I choose Library handling - "Copy required libraries into sub-folder next to the generated JAR", then the same project return Only 1 empty image file.
Here is my batch file -
java -Xmx1200M -Xss1024K ^
-Dproject_file="D:\AAA - MBSE\BatchTry\For_testing.mdzip" ^
-Ddestination_dir="D:\AAA - MBSE\BatchTry\BatchOut" ^
-jar imagegenerator.jar
Have no idea why this happening. Any idea?
Thanks.
Henry
|
|
|
|
|
Re: Runnable jar not working right [message #1735404 is a reply to message #1735373] |
Sat, 18 June 2016 10:09  |
Eclipse User |
|
|
|
Sorry, but I don't think the information you provide suffices to understand what's going on / wrong.
See my questions / hints above, and:
- what's in your MANIFEST.MF
- what's the layout of jars in the filesystem
- from where do you try to launch it ...?
|
|
|
Powered by
FUDForum. Page generated in 0.06712 seconds