java.lang.NoClassDefFoundError: java.awt.Container

后端 未结 7 1049
借酒劲吻你
借酒劲吻你 2021-02-14 00:57

I am trying to install Visual Paradigm for UML. During the installation it crashes. This is the stack trace:

Unpacking JRE ...
Preparing JRE ...
Starting Install         


        
相关标签:
7条回答
  • 2021-02-14 01:28

    Run this command on Ubuntu18.04

    sudo apt-get update
    sudo apt-get install libxi6 libxtst6 libxrender1
    
    0 讨论(0)
  • 2021-02-14 01:32

    Run the script with -J-Djava.awt.headless=true

    sh SoapUI-x32-5.0.0.sh -J-Djava.awt.headless=true

    0 讨论(0)
  • 2021-02-14 01:40

    You may use

    `sudo update-java-alternatives -s java-6-oracle`
    

    Instead of using

    `sudo update-java-alternatives -s java-6-sun`
    

    or try to change 6 with the version of Java that you used.

    0 讨论(0)
  • 2021-02-14 01:42

    I have had the same problem installing SoapUI software and this command works for me:

    $ ./soapUI-x32-4.6.0.sh -J-Djava.awt.headless=true
    

    My system:

    Linux 3.10-2-amd64 #1 SMP Debian 3.10.7-1 (2013-08-17) x86_64 GNU/Linux
    

    And my JVM version:

    $ java -version
        java version "1.6.0_30"
        Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
        Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)
    
    0 讨论(0)
  • 2021-02-14 01:45

    I was getting the same problem when trying to install Visual Paradigm on Ubuntu 12.10 64 bit.

    Java version:

    java version "1.7.0_11"
    Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
    Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
    

    This seemed to fix the problem:

    sudo apt-get install ia32-libs

    0 讨论(0)
  • 2021-02-14 01:45

    On ubuntu 14.04 the answer given by Hayden didn't work for me as the package doesn't exist.

    This did work though:

    apt-get install libxtst6:i386
    

    i.e. it needs the 32 bit version of libxtst

    0 讨论(0)
提交回复
热议问题