web-dev-qa-db-ja.com

Netbeansがクラッシュして起動しない

Netbeans、javac、およびJavaはすべて、Java 9をインストールするまで正常に機能していました。

thufir@doge:~$ 
thufir@doge:~$ Sudo update-Java-alternatives --list
Java-1.8.0-openjdk-AMD64       1081       /usr/lib/jvm/Java-1.8.0-openjdk-AMD64
Java-8-Oracle                  1081       /usr/lib/jvm/Java-8-Oracle
Java-9-Oracle                  1091       /usr/lib/jvm/Java-9-Oracle
thufir@doge:~$ 
thufir@doge:~$ 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-9-Oracle/bin/Java              1091      auto mode
  1            /usr/lib/jvm/Java-8-openjdk-AMD64/jre/bin/Java   1081      manual mode
* 2            /usr/lib/jvm/Java-8-Oracle/jre/bin/Java          1081      manual mode
  3            /usr/lib/jvm/Java-9-Oracle/bin/Java              1091      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
thufir@doge:~$ 
thufir@doge:~$ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field Java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
thufir@doge:~$ 

NetBeansがクラッシュするのはなぜですか? IDEを削除して再インストールしようとしました。バージョン:

thufir@doge:~$ 
thufir@doge:~$ apt-get -s install netbeans
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Also keep in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
netbeans is already the newest version (8.1+dfsg2-3).
The following packages were automatically installed and are no longer required:
  libkf5gpgmepp-pthread5 libkf5qgpgme5 libmimetic0
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 699 not upgraded.
thufir@doge:~$ 
thufir@doge:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
thufir@doge:~$ 

NetBeansの処理にumakeを使用していました。今aptからしようとしています。 Javaを使用したい9。

4
Thufir

Netbeansは、Java 8.1を使用することになっていると考えているため、正しいJavaバージョンを確認できるように、再インストールする必要があります。

1
DanNightmare