Autor Wątek: Netbeans - brak możliwości wyboru Javy w nowym projekcie  (Przeczytany 980 razy)

0 użytkowników i 1 Gość przegląda ten wątek.

Paweł

  • Global Moderator
  • SUSE Guru
  • *
  • Wiadomości: 896
Netbeans - brak możliwości wyboru Javy w nowym projekcie
« dnia: Maj 29, 2018, 06:23:15 pm »
https://i.imgur.com/O1ryEZI.png
W przypadku poprawnie działającej instalacji jest możliwość wyboru kategorii java → java application, a u mnie to nie działa.
Instalowałem netbeans w wersji 8.2 ze strony https://netbeans.org/
Logi przy starcie netbeans nic nie wywalają.

Netbeans odpalam w taki sposób:
filarsky@linux-n86w:~/Downloads> /bin/sh "/usr/local/netbeans-8.2/bin/netbeans"

linux-n86w:/home/filarsky/Downloads # whereis netbeans
netbeans:
linux-n86w:/home/filarsky/Downloads # whereis java
java: /usr/bin/java /usr/lib64/java /etc/java /usr/share/java /usr/share/man/man1/java.1.gz
linux-n86w:/home/filarsky/Downloads # java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (IcedTea 3.7.0) (build 1.8.0_161-b12 suse-lp150.1.24-x86_64)
OpenJDK 64-Bit Server VM (build 25.161-b12, mixed mode)


linux-n86w:/home/filarsky/Downloads # rpm -qa|grep java
timezone-java-2018e-lp150.2.3.3.noarch
java-1_8_0-openjdk-devel-1.8.0.161-lp150.1.24.x86_64
libjavascriptcoregtk-3_0-0-2.4.11-lp150.7.1.x86_64
java-1_8_0-openjdk-1.8.0.161-lp150.1.24.x86_64
libjavascriptcoregtk-4_0-18-2.20.2-lp150.1.1.x86_64
javapackages-tools-5.0.0+git20180104.9367c8f6-lp150.1.2.x86_64
java-1_8_0-openjdk-src-1.8.0.161-lp150.1.24.x86_64
java-1_8_0-openjdk-javadoc-1.8.0.161-lp150.1.24.noarch
java-1_8_0-openjdk-headless-1.8.0.161-lp150.1.24.x86_64
linux-n86w:/home/filarsky/Downloads # rpm -qa|grep jdk
jdk1.8-1.8.0_171-fcs.x86_64
java-1_8_0-openjdk-devel-1.8.0.161-lp150.1.24.x86_64
java-1_8_0-openjdk-1.8.0.161-lp150.1.24.x86_64
java-1_8_0-openjdk-src-1.8.0.161-lp150.1.24.x86_64
java-1_8_0-openjdk-javadoc-1.8.0.161-lp150.1.24.noarch
java-1_8_0-openjdk-headless-1.8.0.161-lp150.1.24.x86_64

# Default locations of userdir and cachedir:
# (http://wiki.netbeans.org/FaqWhatIsUserdir)
#
# On Windows ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher
# with "<AppData>\NetBeans" where <AppData> is user's
# value of "AppData" key in Windows Registry under
# "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
# and ${DEFAULT_CACHEDIR_ROOT} will be replaced by the launcher
# with "<Local AppData>\NetBeans\Cache" where <Local AppData> is user's
# value of "Local AppData" key in Windows Registry under
# "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
#
# On Mac ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher
# with "~/Library/Application Support/NetBeans" and
# ${DEFAULT_CACHEDIR_ROOT} with "~/Library/Caches/NetBeans"
#
# On other systems ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher
# with "~/.netbeans" and ${DEFAULT_CACHEDIR_ROOT} with "~/.cache/netbeans"
#
# You can also use ${HOME} variable which will be replaced with
# user.home JVM system property value. This variable is valid only in
# netbeans_default_userdir and netbeans_default_cachedir properties.
#
# NOTE: If you specify a non-default userdir path on command line
# (--userdir option) and don't specify a cachedir path (--cachedir option),
# cachedir will be in "<userdir>/var/cache".
#
# Cachedir must be different from userdir. The same cachedir and userdir
# would cause problems.
#
netbeans_default_userdir="${DEFAULT_USERDIR_ROOT}/8.2"
netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/8.2"

# Options used by NetBeans launcher by default:
# (can be overridden by explicit command line switches)
#
# Note that default -Xmx is selected for you automatically.
# You can find these values in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx
# here or on the command line.
#
# If you specify the heap size explicitly, you may also want to enable
# Concurrent Mark & Sweep garbage collector.
# (see http://wiki.netbeans.org/FaqGCPauses)
#
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"

# Default location of JDK:
# (set by installer or commented out if launcher should decide)
#
# It can be overridden on command line by using --jdkhome <dir>
# Be careful when changing jdkhome.
# There are two NetBeans launchers for Windows (32-bit and 64-bit) and
# installer points to one of those in the NetBeans application shortcut
# based on the Java version selected at installation time.
#
netbeans_jdkhome="/usr"

# Additional module clusters:
# using ${path.separator} (';' on Windows or ':' on Unix):
#
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

Ma ktoś pomysł, gdzie jest błąd ?
Pozdrawiam
« Ostatnia zmiana: Maj 29, 2018, 06:33:21 pm wysłana przez Paweł »
|| i5-7600k (@5.0Ghz) || Corsair Vengeance LPX 32 GB (2 x 16 GB) 2666 MHz || ASUS ROG MAXIMUS IX APEX Socket 1151 Z270 || Evga 1080Ti hybrid || Acer X34A || Corsair AXi PSU || Samsung 850 EVO 500 GB || Samsung 960 Pro 512GB PCIe NVMe M.2
Dell Venue 11 Pro 7140