查看: 9|回覆: 0

[Debian] Debian (Ubuntu, Debian GNU/Linux)

[複製鏈接]

1

主題

0

回帖

0

積分

热心网友

金币
0
閲讀權限
220
精華
0
威望
0
贡献
0
在線時間
0 小時
註冊時間
2010-6-15
發表於 2024-4-1 09:15:00 | 顯示全部樓層 |閲讀模式

Debian (Ubuntu, Debian GNU/Linux)

 

1. Verify System Requirements

Verify that your environment meets the system requirements including Java version for Astah. Choose your edition.

  • Astah Professional
  • Astah UML

2. Download & Install Java

Install a supported version of JDK.

1. Check the Linux architecture (32bit, 64bit) by using the following
1
$ file /sbin/init

2. Download the supported version of JDK.

3. Decompress the binary file in your preferred directory.

1
2
$ tar -xvf jdk-8u45-linux-i586.tar.gz (32bit)
$ tar -xvf jdk-8u45-linux-x64.tar.gz (64bit)

4. A new directory must be created(.jdk1.8.0_45).
Move the JDK8 directory to /usr/lib. (In this example we are using jdk1.8.0.45)

1
$ sudo mv ./jdk1.8.0_45 /usr/lib/jvm/jdk1.8.0

5. Use the commands below:

1
2
3
$ 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

6. Use the next command:

1
$ sudo update-alternatives --config java

7. If a path appears as below, specify the path number of JDK8 at “Please enter to keep the current choice

  • , or type selection number.” (We are using 3 in this example.)

    1
    $ sudo update-alternatives --config java

    8. There are 3 choices for alternative java (providing /usr/bin/java).

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    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.8.0/jre/bin/java 3 manual mode$ sudo update-alternatives --config java
     
    Press enter to keep the current choice
  • , or type selection number: 3
  •  
    update-alternatives: using /usr/lib/jvm/jdk1.8.0/jre/bin/java to provide /usr/bin/java (java) in manual mode.

    9. Check the JDK version with the command below. (in the example it’s 1.8.0.45)

    1
    2
    $ java -version
    java version "1.8.0.45"

    10. Use the following commands below again.

    1
    2
    sudo update-alternatives --config javac
    sudo update-alternatives --config javaws$ java -version
     

    Configuration

    If you already have Java other than AdoptOpenJDK or Oracle, switch the right one by running an alternatives command. (You need to be a root user to do so.)

     

    3. Download & Install Astah

    1. Download the Astah installer in Deb Package and save it in the preferred directory (e.g. /tmp)

    2. Move to the directory in which you download and then check the file size by using the stat command

    3. Become a root user and to install (e.g. Astah Professional version 9.2.0)

    1
    #dpkg -i astah-professional_9.2.0.0248cd_all.deb

    4. Run Astah by typing:

    1
    $astah-pro ($astah-uml for Astah UML)

    If you are using Gnome desktop, run Astah from [Application] – [Accessories].

     

    Others

    1. Download the zip file of Astah and save it in the preferred directory (e.g. /temp)
      • 1-1. In order to get an zip file, go to [Download] resource page in ChangeVision Members.
      • 1-2. Choose edition, then version.
      • 1-3. You will find the “Archive without JRE and Installer”.
        Download archive without JRE


      • Click [Download] button and download it in the next page that appears.
    2. Move to the directory in which you downloaded and then check the file size by using the stat command
    3. Extract the zip file by using unzip command
    4. Modify the Shell script in the Astah file to apply to your environment and then change the permission for it to be executable.
      #chmod 755 ./astah
    5. Execute the shell Script
      #./astah


    来源:https://www.cnblogs.com/mouseleo/p/18107741
  • 回覆

    使用道具 舉報

    您需要登錄後才可以回帖 登錄 | 立即注册

    本版積分規則

    相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

    Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

    在本版发帖返回顶部