slackware 13.1 java jdk path problems with netbeans
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.
slackware 13.1 java jdk path problems with netbeans
hello, first , when i do the java -version and javac -version i get the version ,
also
echo $JAVA_HOME points to /usr/lib/java
i installed java jdk from the slackbuilds.
the problem comes when trying to compile a java servlet in netbeans,
i have tomcat setup , everything, the whole package , this is not me missing some .jar file in the lib folder in tomcat.
i even export it the tools.jar file to tomcat , but still when i compile my programs, netbeans says
/home/mdj/apps/imagej/build.xml:9: 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
BUILD FAILED (total time: 0 seconds)
when i javac some file.java , it compiles fine.
also i edited /etc/profile and set it to point to the java jdk
/usr/lib/java , and also tried with /usr/lib/java/bin
nothing , slackware ignores any changes to /etc/profile,
i almost fell of my chair when slackware ignored any changes made to profile, i even logged out and restarted, and nothing, no change
so what do i do to affect that /etc/profile ?
i am root when i do that, do i become megaroot , ultraroot or what
I've encountered this problem and (after much trying) the only solution I found was to fall back to an earlier version of netbeans. Netbeans 6.5.1 doesn't seem to suffer from this problem.
I've encountered this problem and (after much trying) the only solution I found was to fall back to an earlier version of netbeans. Netbeans 6.5.1 doesn't seem to suffer from this problem.
after this , i think i am going to fall back to using another linux distro or windows.
after this , i think i am going to fall back to using another linux distro or windows.
Who are you threatening by saying this? You can keep comments like this to yourself when you are trying to learn how to get something accomplished. You are asking for help for free. Go pay for support, if you expect that level of assistance.
1) when installing the jdk, you must unistall the jre (*first*)
2) to get the proper login environment variables, sometimes it helps to logout and back in again. Otherwise the bash env settings for the jdk are in /etc/profile.d/jdk.sh You can source that file to let them get set for your current shell
3) not sure why any of your actions as root were needed. As your user, ~/.bashrc and ~/.bash_profile are all that you need to hack on. They are different files, that have different invocation. If you are not familiar, then I refer you to the bash(1) man page, in the INVOCATION section.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.