[Slackbuilds-users] [FIX] Netbeans Classpath problem.
Antonio Hernández Blas
hba.nihilismus at gmail.com
Wed Aug 4 02:48:30 UTC 2010
There's an issue with Netbeans when using a Java bundle (Java SE, Web,
EE or ME) since these require a *full JDK* installation. Here you can
read the problem an a *workaround*:
The correct way to fix this (thanks to Dugan Chen for the
confirmation) is to remove the JRE package and let just the JDK
package in your system.
As an aside note, IMHO this is the correct way to work with JRE and
JDK packages: if you're going to use the Java Virtual Machine then
just install the JRE package but if you're going to work with the
Development Kit of Java then remove JRE and install JDK, this is so
because JRE is already inside the JDK package.
Notice the next thing:
When you install JRE
$JAVA_HOME poinst to /usr/lib/java and the Java Virtual Machine is in
Now if you install JDK (while JRE is still installed)
$JAVA_HOME poinst to /usr/lib/java BUT the Java Virtual Machine is in
This seems to confuse in someway to Netbeans which execute the IDE
without any problem since it just need JRE but when you load any of
the java bundle then it will come with the "Perhaps JAVA_HOME does not
point to the JDK" message.
After removing JRE and install JDK there should not be any
interference with any other program that make use of the Java Virtual
Machine (tested with Opera and an applet,
Recommended link: http://wiki.netbeans.org/FaqRunningOnJre
More information about the SlackBuilds-users