SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running Netbeans installed from slackbuilds.org and the slackware jdk package
This works fine for running programs from the ide and the classes appear to be compiled but if I actually choose Build or Cleand and Build I get this message
Quote:
Created dir: /home/alan/java/Legacy/build/classes
Created dir: /home/alan/java/Legacy/build/empty
Compiling 1 source file to /home/alan/java/Legacy/build/classes
/home/alan/java/Legacy/nbproject/build-impl.xml:363: The following error occurred while executing this line:
/home/alan/java/Legacy/nbproject/build-impl.xml:168: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib64/java"
BUILD FAILED (total time: 0 seconds)
Now /usr/lib64/java does contain a jdk and javac is present in bin/ There is some weird error with netbeans and the classpath and I cannot puzzle it out
In Netbeans, go to Tools -> Options -> Miscellaneous -> Ant
Ensure that /usr/lib64/java/lib/tools.jar is in the classpath area.
i have one question, why does one has to do this with slackware and not with any other linux distro?
i didnt google enough when i had this problem , i had to kill slack from my laptop.
I seem to remember having this problem. I think it was because I had both the JRE and JDK installed and JAVA_HOME was pointing to the JRE and not the JDK.
I seem to remember having this problem. I think it was because I had both the JRE and JDK installed and JAVA_HOME was pointing to the JRE and not the JDK.
If it helps anyone else searching for a fix, Bertical's solution worked for me.
I uninstalled the JRE package and boom, everything was good.
Well, JDK should replace JRE during install JDK is simply more complex and rich version of Java, than JRE. JRE is just for running Java apps, and JDK is for running and building. So the installation of both environments within one system isn't necessary.
Maybe the Slack Team should take care of this, if JDK package is installed, JRE should be uninstalled (it can be perform in doins.sh script). But I think, that Developers should know this to perform manually...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.