CopyPastor

Detecting plagiarism made easy.

Score: 1.8057422041893005; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-04-12
by shafrianadhi

Original Post

Original - Posted on 2011-09-28
by Francisco Puga



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Try this:
Bundled the app as a zip file with the following folders inside:
containerFolder |- jre |-bin (in bin there is java.exe) |-lib |- cfg (to save the user configuration, but it's not needed) |- bin (my application with the .exe and the .jar and all the other stuff)
Then in the xml file of launch4j, configure the jre like this:
<jre> <path>../jre</path> <opt>-DgvSIG.confDir=../cfg</opt> </jre>
The trick [above][1] is that the path is not to the java.exe file. The path to the jre is relative to the position of the .exe and it should point to one folder before the java.exe file.
The jre folder used was just a copy&paste from the jre folder installed on a windows system. hope it helps.

[1]: https://stackoverflow.com/questions/7071133/how-to-bundle-a-jre-with-launch4j
After some attempts i finally get a workaround to bundle the jre in my application:
I package my app as a zip file with the following folders inside:
containerFolder |- jre |-bin (in bin there is java.exe) |-lib |- cfg (to save the user configuration, but it's not needed) |- bin (my application with the .exe and the .jar and all the other stuff)

In the xml file of launch4j i configure the jre like this:
<jre> <path>../jre</path> <opt>-DgvSIG.confDir=../cfg</opt> </jre>
The trick here is that the path is not to the java.exe file. The path to the jre is relative to the position of the .exe and it should point to one folder before the java.exe file
The jre folder i'm using is just a copy&paste from the jre folder installed on a windows system.



        
Present in both answers; Present only in the new answer; Present only in the old answer;