Print at Dec 20, 2025, 7:48:18 AM

Posted by Mitsaki at Jun 4, 2012, 2:45:43 PM
confused   Re: Running Jar File in Mac
Hello!!

This is a rather old thread, but it is the last remaining step for my thesis! (finally). Actually, my partner in thesis had solved this problem, but we can't remember how we did it.

Following your last advice, we tried to do it by using ant, meaning:

1. Like it is said in the README.txt we did

If you want to build Sweet Home 3D with Ant, please install last JDK 5 or 6 and
Ant available at http://ant.apache.org/, and run ant command in the directory where
you uncompressed this archive.
The default target provided by build.xml Ant file builds the Java Web Start version.
Read build.xml Ant file for more information about other available targets.
Note that the last part of the Ant targets javaWebStart, applet and viewer
requires a passphrase for keystore to sign the deployed jars. For security reasons,
the required file keys.keytool isn't provided with this source code. You'll have
first to generate this file and choose a passphrase, with the following command run
in the directory where you uncompressed this archive:
keytool -genkey -keystore keys.keytool -alias SweetHome3D

2. So I went to workspace/Sweethome3d-src and I entered the above line, where I put my password and some other required stuff.

3. Then, through eclipse, I went to run->external tools-> external tools configuration -> ant build, where I added the vm arguments and I located the build.xml file that was required

4. I run this ant build, where I put the password and the displayed message was "BUILD SUCCESSFUL"

5. Then I tried to export the file as runnable jar using the option "With ant" and I exported it.

6. Finally I tried, by using the terminal, to open my jar file, but no luck...

Please, it is a matter of physical health, right now. I need to fix this! sad crying
Help me!
Mitsaki