Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem installing Netbean

 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Today I download Netbean for my fedora. then I try installed .



But I get following error.



As I am fresher to Llinux I don't know what to do.Somebody help me please.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you install a JDK? You will need either a Sun JDK or OpenJDK. Did you set JAVA_HOME to the JDK's installation directory?
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always download the bundle of Netbeans and the latest JDK. It avoids this problem.
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which command to use for setting variable?

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yewint Ko wrote:Which command to use for setting variable?

I have the JDK installed at /usr/java/jdk1.6.0_17 and set JAVA_HOME using:

export JAVA_HOME=/usr/java/jdk1.6.0_17
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:
Yewint Ko wrote:Which command to use for setting variable?

I have the JDK installed at /usr/java/jdk1.6.0_17 and set JAVA_HOME using:

export JAVA_HOME=/usr/java/jdk1.6.0_17


yes. but I can no longer use it after restarting the command prompt. The above command seems to set JAVA_HOME temporarily.
I want it to be permanent. Any other command? And I also want to know how to set PATH.
Somebody help me when you are free.
thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To make it permanent, edit the ~/.bashrc file, placing the export statement in there. You can do the same with PATH. Here is an example of setting PATH:

export PATH=$JAVA_HOME/bin:$PATH
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks peter. really thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic