how to run netbeans-6.0.1-ml-linux.sh

Asked by Doja

I cant get the system to update from SUN on this item. I want the new version since it has some new tools that I want to use. Not sure how to make this install work, or where it should even be located in the file system.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Doja
Solved:
Last query:
Last reply:
Revision history for this message
Zombie (initramfs) said :
#1

Doja,

Shell scripts are run with ./ as the prefix ./netbeans-6.0.1-ml-linux.sh or sh netbeans-6.0.1-ml-linux.sh
Try it out in a terminal.

With Regards,
Zombie.

Revision history for this message
Doja (reidojackson) said :
#2

This does not work. I had tried that several times, but system does not recognize the download, I get an error message in the console window that says the file is not there. I downloaded to my desktop, then made sure to point the browser to my desktop to look for the file, and still nothing. I even downloaded the file twice. Still nothing.

Revision history for this message
Przemek K. (azrael) said :
#3

You need to make this file executable. You can do it in the properties dialog (invoke it by right-clicking on it and choosing Properties) or in the terminal, by running: chmod +x netbeans-6.0.1-ml-linux.sh
Then, running this file by typing ./netbeans-6.0.1-ml-linux.sh should work

Revision history for this message
Doja (reidojackson) said :
#4

Przemyslaw,

This is what I get when I run those commands you gave me.

root@******-desktop:~# chmod +x netbeans-6.0.1-ml-linux.sh
chmod: cannot access `netbeans-6.0.1-ml-linux.sh': No such file or directory

Revision history for this message
Przemek K. (azrael) said :
#5

You said earlier that your file is on the desktop. Before running chmod change your directory to desktop by running: cd Desktop/
Then you will be able to do what I wrote earlier.

Revision history for this message
Doja (reidojackson) said :
#6

here is what I see...

root@reidojackson-desktop:~# cd Desktop/
-bash: cd: Desktop/: No such file or directory

that tells me (I think) that I am already navigated to my desktop and that I cannot go to that file structure. Since I have not created another folder on the desktop called desktop.

Revision history for this message
Przemek K. (azrael) said :
#7

Could you run this command and paste here its output:
ls -sla
Then I will see what is your current directory and what files are in it.

Revision history for this message
Doja (reidojackson) said :
#8

great question, here is what I found. and I really dont understand. My Unbuntu skills are really limited unfortunately.

root@reidojackson-desktop:~# ls -sla
total 5968
   4 drwxr-xr-x 12 root root 4096 2008-04-01 10:01 .
   4 drwxr-xr-x 21 root root 4096 2008-02-14 01:33 ..
5860 -rw-r--r-- 1 root root 5986411 2007-08-09 06:35 apache-tomcat-6.0.14.tar.gz
   4 -rw------- 1 root root 2795 2008-04-01 10:28 .bash_history
   4 -rw-r--r-- 1 root root 2227 2007-05-15 10:07 .bashrc
  12 -rw-r--r-- 1 root root 12288 2008-03-05 13:08 .bashrc.swo
  12 -rw-r--r-- 1 root root 12288 2008-03-05 13:03 .bashrc.swp
   4 drwx------ 3 root root 4096 2008-02-20 09:29 .config
   4 drwx------ 3 root root 4096 2008-03-31 07:12 .gconf
   4 drwx------ 2 root root 4096 2008-03-31 07:12 .gconfd
   4 drwx------ 4 root root 4096 2008-03-28 13:35 .gnome2
   4 drwx------ 2 root root 4096 2008-02-14 09:01 .gnome2_private
   4 -rw------- 1 root root 34 2008-02-20 09:29 .gtk-bookmarks
   4 drwxr----- 2 root root 4096 2008-02-25 17:17 .hplip
   4 drwxr-xr-x 4 root root 4096 2008-03-13 15:52 .hudson
   4 drwx------ 2 root root 4096 2008-02-25 17:39 .mozilla
   4 -rw------- 1 root root 186 2008-04-01 09:07 .my.cnf.save
   4 -rw-r--r-- 1 root root 141 2007-05-15 10:07 .profile
   4 -rw-r--r-- 1 root root 490 2008-03-05 14:30 q
   4 -rw-r--r-- 1 root root 769 2008-03-28 13:35 .recently-used.xbel
   4 drwx------ 3 root root 4096 2008-03-31 07:11 .synaptic
   8 -rw------- 1 root root 4520 2008-04-01 10:01 .viminfo
   4 drwxr-xr-x 2 root root 4096 2008-02-14 09:22 .wapi

what is the ' ~# ' reference? all I know is that I cannot change my directory very easy, not sure if I am just sitting on the root now or what.

Revision history for this message
Przemek K. (azrael) said :
#9

Ah, now I see. You're on the root account while what I wrote should be run on normal user account.
Is root rights are needed for installing netbeans then use sudo ./netbeans-6.0.1-ml-linux.sh as the last command or you while on root you can just change the directory to /home/your_user_name/Desktop/

Revision history for this message
Doja (reidojackson) said :
#10

ok, I was working too hard. I was not running as standard user. That worked fine. I was always switching to root control since I had to do that for other things. Thanks!

Revision history for this message
srinivas2828 (srinivas2828) said :
#11

before installing Netbeans-6.0, should i have to install anything related to java, means jdk,jre....
when i am trying this command : sh netbeans-6.0.1-ml-linux.sh
i am unable to install
plz help me out