Step 1: Copy the Netbeans 7 for Linux(netbeans-7.0-ml-linux.sh) and JDK foo Linux(java_ee_sdk-6u1-jdk-linux.sh) into the desired location.
Step 2: Open the terminal from(Application-->Accessories--> Terminal)
Step 3: Using Command, navigate to the location of two files. Its better to keep both of the files in the Home folder of you, as its the default location. To check the availabilty of the files you can use the command
ls -l
It will shows the list of the files at that location.
Step 4: Then try to install the jdk file using the command
sh jdk-6u21-linux-i586.bin
Step 5: The to install Netbeans, at first make the file executable using the command
sudo chmod +x netbeans-*
Step 6: Then use the command, to install netbeans as
sudo ./netbeans-* --javahome
for me, it was
sudo ./netbeans-* --javahome jdk1.6.0_21
Step 7: The above command will provide the Netbeans installer to navigate your for the further steps to follow.
After installing, to use netbeans You can use it from Applications -> Programming -> NetBeans & from ubuntu menubar. But sometimes it may occurs problem to you(i.e this may not be appeared at the menu). Then you can use it by command prompt using the command
netbeans
to do so you need to run a simple command just for once after:
ln -s /usr/local/netbeans-6.5/bin/netbeans /usr/local/bin/netbeans
Use sudo before each command if you get the access denied message. Then giving correct password, you will be able to do so.(sudo------------> Super Do)
Then the command will be as
sudo ln -s /usr/local/netbeans-7.0/bin/netbeans /usr/local/bin/netbeans
The above command will make a shortcut at bin folder(common).
After that you will get netbeans just by typing it in the terminal. You may aslo create a shortcut launcher to this link.
Now enjoy Netbeans and Ubuntu together.
Plz let me know your experience..
1 comment:
Works for me, thks!
Post a Comment