LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-15-2010, 12:29 AM   #1
molossus
Member
 
Registered: Nov 2010
Location: US
Distribution: Ubuntu 12.04
Posts: 49

Rep: Reputation: 0
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
 
Old 11-15-2010, 02:02 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,575

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
How are you starting X? startx or runlevel 4?
 
Old 11-15-2010, 02:50 AM   #3
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware 13.37 and 13.1
Posts: 398

Rep: Reputation: 64
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.

EDIT: Solution found, thankfully, here.

Last edited by mcnalu; 06-15-2011 at 11:39 AM. Reason: updating solution
 
Old 11-15-2010, 12:22 PM   #4
molossus
Member
 
Registered: Nov 2010
Location: US
Distribution: Ubuntu 12.04
Posts: 49

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Richard Cranium View Post
How are you starting X? startx or runlevel 4?
i use startx
using the latest netbeans 6.9
 
Old 11-15-2010, 12:24 PM   #5
molossus
Member
 
Registered: Nov 2010
Location: US
Distribution: Ubuntu 12.04
Posts: 49

Original Poster
Rep: Reputation: 0
Wink

Quote:
Originally Posted by mcnalu View Post
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.
 
Old 08-18-2011, 05:36 AM   #6
penelopa99
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Wink way out

Quote:
Originally Posted by molossus View Post
after this , i think i am going to fall back to using another linux distro or windows.
the rightest levitra decidion!!!

Last edited by penelopa99; 09-30-2011 at 08:11 AM.
 
Old 08-18-2011, 11:11 AM   #7
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
Did you still have the JRE package installed?

You should uninstall the JRE when you install the JDK.
 
Old 08-19-2011, 08:49 AM   #8
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 75

Rep: Reputation: 29
Quote:
Originally Posted by molossus View Post
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.


Take care,
vb
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Netbeans 6.0+JDK tombelcher7 Linux - Software 2 03-30-2008 04:39 PM
LXer: How To Install Sun Java SE 6 JDK and NetBeans 5.5.1 - Fedora 7 LXer Syndicated Linux News 0 08-22-2007 07:51 PM
java and netbeans 5.5 - 2 problems avallach Linux - Software 2 08-14-2007 08:35 AM
Netbeans and Javac path problems Veteq Programming 2 09-09-2006 12:13 PM
adding java jdk to path snecklifter Linux - Newbie 4 11-01-2004 03:58 PM


All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration