LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2005, 11:12 PM   #1
zwyrbla
Member
 
Registered: Aug 2004
Location: MA
Distribution: Slack 10.1
Posts: 107

Rep: Reputation: 15
Installed netbeans but won't run.


Alright i run slack 10 with the original java 1.4.2_04 installed. im currently taking a java class and netbeans is part of the course. Now i donwloaded netbeans and installed it but when i try to run it i get this error

/opt/netbeans-4.0/bin/netbeans
Cannot find java. Please use the --jdkhome switch.

any help would be great thanks.
 
Old 01-19-2005, 02:00 AM   #2
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
It says that it can't find the java binary to run and want's you to specify where the java installation directory is. I'm going to install it now and see how to do that...
 
Old 01-19-2005, 02:13 AM   #3
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
Ok got it.

When you run netbeans, the shell script gets run - runide.sh, which would be under NetBeans3.6/bin/runide.sh. When you run that, and gives you that error, you must add --jdkhome /path/to/java/directory after it like so
Code:
$ sh runide.sh --jdkhome /the/path/to/your/java/directory
My path, for example, would be /usr/java/jdk1.5.0_01 The folder /usr/java/ is where java is installed by default, but when you install netbeans, it installs the java stuff too. If you installed netbeans as root, then you had a chance to install it in /usr/java, but if not, then it might be in your home directory somewhere.

Last edited by student04; 01-19-2005 at 02:16 AM.
 
Old 01-19-2005, 11:23 AM   #4
zwyrbla
Member
 
Registered: Aug 2004
Location: MA
Distribution: Slack 10.1
Posts: 107

Original Poster
Rep: Reputation: 15
thanks worked great
 
Old 04-13-2006, 10:42 AM   #5
Icewolf
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake 9.2
Posts: 2

Rep: Reputation: 0
I just ran into this problem myself. An easier solution, which worked for me, was to specify the $JAVA_HOME enironment variable.

[b****@cs bin]$ ./netbeans --jdkhome $JAVA_HOME
 
  


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
ET Installed Fine, won't run. delebre Linux - Games 12 09-29-2004 09:54 PM
Why won't Firefox run after I've installed it? NSFrankenstein Linux - Software 5 09-15-2004 12:13 PM
how to run installed program ? Viper Slackware 9 10-11-2003 05:19 PM
Kopete installed - how to run? mhl Linux - Software 4 09-08-2003 03:14 AM
Bastille? installed but cant get it to run. statuszero Linux - Software 3 06-24-2002 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:30 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
Open Source Consulting | Domain Registration