First, download and install a Java version that meets the system requirements. You can also configure a separate Java runtime environment for Astah. → [See how to configure]
Run the following command to check your Linux architecture (32-bit or 64-bit), then download Java from the official Java download page according to your environment:
$ file /sbin/init
Find System Requirements for your Astah:
If configuring a separate Java runtime for Astah, proceed [here].
1. Extract the downloaded file in any directory (replace the file name with the actual downloaded file name).
$ tar -xvf jdk-8u121-linux-i586.tar.gz (32bit)
$ tar -xvf jdk-8u121-linux-x64.tar.gz (64bit)
2. A new directory (./jdk1.8.0_121) will be created.
3. Move the JDK directory to /usr/lib/
.
$ sudo mv ./jdk1.8.0_121 /usr/lib/jvm/jdk1.8.0
4. Run the following commands to configure the Java environment:
$ sudo update-alternatives --install "/usr/bin/java" "java"
"/usr/lib/jvm/jdk1.8.0/bin/java" 1
$ sudo update-alternatives --install "/usr/bin/javac" "javac"
"/usr/lib/jvm/jdk1.8.0/bin/javac" 1
$ sudo update-alternatives --install "/usr/bin/javaws" "javaws"
"/usr/lib/jvm/jdk1.8.0/bin/javaws" 1
5. Run the following command.
$ sudo update-alternatives --config java
6. Run the following commands to configure the Java environment: (If you are choosing JDK 8, specify 4 in this sample code below.)
$ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
————————————————————
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
3 /usr/lib/jvm/jdk1.7.0/bin/java 1 manual mode
4 /usr/lib/jvm/jdk1.8.0/bin/java 1 manual mode
Press enter to keep the current choice[*], or type selection number: 4
update-alternatives: using /usr/lib/jvm/jdk1.8.0/bin/java to provide
/usr/bin/java (java) in manual mode.
7. Verify the installed JDK version:
$ java -version
java version "1.8.0_121"
8. Re-run the following commands:
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
/tmp
).stat
command.
#rpm -ivh --nosignature astah-professional-10.0.0.a1b9b1-0.noarch.rpm
Note: If a dependency error occurs despite having Java installed, add the --nodeps
option to the command.
4. Start Astah with the command below. On GNOME Desktop, you can launch Astah from Applications > Accessories.
$ astah-pro
/tmp
).stat
command.
#dpkg -i astah-professional_10.0.0.a1b9b1_all.deb
4. Start Astah with the command below. On GNOME Desktop, you can launch Astah from Applications > Accessories.
$ astah-pro
/tmp
).stat
command.unzip
command.
#chmod 755 ./astah
7. Execute the shell script:
./astah
You can specify a custom Java runtime for Astah by modifying the execution file.
1. Open the execution file (E.g: Astah Professional)
/usr/lib/astah_professional/astah-pro
2. Add the following code:
PATH=/usr/lib/jvm/Desired-JDK-version/bin:${PATH}
Example:
#!/bin/sh
# JAVA_OPTS="$JAVA_OPTS -DrootLevel=DEBUG"
PATH=/usr/lib/jvm/jdk-21.0.4/bin:${PATH} # Add this line