LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-26-2011, 01:43 PM   #1
ZebraIzToronto
Member
 
Registered: Nov 2010
Posts: 58

Rep: Reputation: 0
Cannot start Netbans - no javac


I installed Netbeans 6.9.1 with JDK bundle, I have installed jdk in /usr/local/jdk1.6.0_2 but when I try to start Netbeans I get error

Quote:
which: no javac in (/usr/local/jdk1.6.0_2/bin:/usr/local/jdk1.6.0_2:/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)
which: no java in (/usr/local/jdk1.6.0_2/bin:/usr/local/jdk1.6.0_2:/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)
Cannot find java. Please use the --jdkhome switch.
I have javac in /usr/local/jdk1.6.0_2/bin, I looked.
I installed last time and it have worked fine. What is wrong now ?
 
Old 02-26-2011, 02:58 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you have execute permissions for /usr/local/jdk1.6.0_2/bin/javac? Can you post the output of ls -l /usr/local/jdk1.6.0_2/bin/javac please?
 
Old 02-26-2011, 03:37 PM   #3
ZebraIzToronto
Member
 
Registered: Nov 2010
Posts: 58

Original Poster
Rep: Reputation: 0
-rwxrwxrwx 1 root root 47936 Feb 3 02:31 /usr/local/jdk1.6.0_24/bin/javac
Same again !
 
Old 02-26-2011, 03:42 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The first thing is that your output is for Java 1.6.0_24, but your error message is for Java jdk1.6.0_2 - can you confirm the version please?

Also, have you tried using the --jdkhome switch as the error message recommends? I'd check the Netbeans site, but it's probably something like --jdkhome /usr/local/jdk1.6.0_24
 
  


Reply



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
[SOLVED] Javac smoooth103 Slackware 3 01-26-2010 10:22 PM
gcj javac instead of jdk javac rvindiola Linux - Newbie 2 03-29-2006 08:18 PM
javac zaicheke Programming 2 10-05-2004 10:46 PM
javac linuxRules Linux - General 3 05-23-2002 07:45 AM
javac linuxRules Linux - General 0 05-21-2002 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:13 AM.

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
Open Source Consulting | Domain Registration