Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

install netbeans php code editor in ubuntu linux

what are the steps that I need to do to install / configure netbeans

I already have lamp installed
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

I don't remember exactly what I did, but I remember perfectly it has been trivial (fortunately!). Just download the package and run installer script (.sh extension, if I remember right).

Cheers
download the debian package and install.
not sure whether apt-get install netbeans is an option.

Make sure to change the OS to what you want on http://www.netbeans.org and then download the version of netbeans that you want, php only, or all features.

http://netbeans.org/downloads/start.html?platform=linux&lang=en&option=all will get you linux with all features (245MB)
Avatar of rgb192

ASKER

i downloaded php version netbeans-...-linux.sh to downloads folder

and clicked on the .sh file

and it opened with a text editor


you have to use a terminal window
and then sudo ./install.sh script.
Avatar of rgb192

ASKER

I right clicked on netbeans download
and allowed file to be executed

then I clicked on file  and clicked run

how can I start netbeans now
You did not say which Ubuntu version you have.
https://help.ubuntu.com/community/Applications

If the install script did not add an entry to the GUI application refer to the link above on how to add an application to the list and use the netbeans location/binary as what to launch.

This is to avoid having to drop into the terminal and run netbeans possibly /usr/bin/netbeans

Avatar of rgb192

ASKER

using ubuntu 11.10

I still dont understand your way

or maybe how could I do this using a shell script



You installed netbeans, but the application is not listed in the application menu.
open a terminal window and run netbeans

I posted a link that deals with the process of adding an application the the application menu.

I am not certain what shell script you are asking for.
Avatar of rgb192

ASKER

>>open a terminal window and run netbeans

what is the exact command. I do not understand
https://help.ubuntu.com/community/UsingTheTerminal
Applications menu -> Accessories -> Terminal

once you have the command line prompt: type netbeans and hit enter.
Avatar of rgb192

ASKER

once you have the command line prompt: type netbeans and hit enter.
name@ubuntu:~$ netbeans
netbeans: command not found


also tried with su sudo
run the following command:
dpkg-query -l | grep netbeans
dpkg-deb -c <package_name>
look where netbeans is installed if /usr/local/bin/netbeans, you would need to add /usr/local/bin to your PATH
It might be in /opt/bin.
Avatar of rgb192

ASKER

root@ubuntu:/home/joe# netbeans
netbeans: command not found
root@ubuntu:/home/joe# dpkg-query -l | grep netbeans
root@ubuntu:/home/joe# dpkg-deb -c <package_name>
bash: syntax error near unexpected token `newline'
root@ubuntu:/home/joe# netbeans-7.0.1-ml-php-linux.sh
netbeans-7.0.1-ml-php-linux.sh: command not found
root@ubuntu:/home/joe# dpkg-deb -c <netbeans-7.0.1-ml-php-linux.sh>
bash: syntax error near unexpected token `newline'
root@ubuntu:/home/joe#
if you do not get a responce to: dpkg-query -l | grep netbeans there is no followup given you have no package
chmod 700 netbeans-7.0.1-ml-php-linux.sh
./netbeans-7.0.1-ml-php-linux.sh
Avatar of rgb192

ASKER

do I have to be in /downloads directory

i have a file called netbeans-7.0.1-ml-php-linux.sh in /downloads
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

root@ubuntu:/home/joe/Downloads# chmod 777 netbeans-7.0.1-ml-php-linux.shroot@ubuntu:/home/joe/Downloads# sh netbeans-7.0.1-ml-php-linux.sh
Configuring the installer...
Searching for JVM on the system...
Java SE Development Kit (JDK) was not found on this computer
JDK 6 is required for installing the NetBeans IDE. Make sure that the JDK is properly installed and run installer again.
You can specify valid JDK location using --javahome installer argument.

To download the JDK, visit http://java.sun.com/javase/downloads
root@ubuntu:/home/joe/Downloads# ls
jdk-7u2-nb-7_1-linux-ml.sh  netbeans-7.0.1-ml-php-linux.sh
root@ubuntu:/home/joe/Downloads# ^C
root@ubuntu:/home/joe/Downloads# chmod 777 jdk-7u2-nb-7_1-linux-ml.sh
root@ubuntu:/home/joe/Downloads# sh jdk-7u2-nb-7_1-linux-ml.sh
Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
eval: 1: /tmp/.nbi-2013934.tmp/jre-7-linux-i586.bin: not found
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform
root@ubuntu:/home/joe/Downloads#
Avatar of rgb192

ASKER

i did chmod -Rf 777 /downloads



root@ubuntu:/home/joe/Downloads# ls
jdk1.6.0_30                     sun-javadb-client-10.6.2-1.1.i386.rpm
jdk-6u30-linux-amd64.rpm        sun-javadb-common-10.6.2-1.1.i386.rpm
jdk-6u30-linux-x64.bin          sun-javadb-core-10.6.2-1.1.i386.rpm
jdk-6u30-linux-x64-rpm.bin      sun-javadb-demo-10.6.2-1.1.i386.rpm
jdk-7u2-linux-x64.rpm           sun-javadb-docs-10.6.2-1.1.i386.rpm
jdk-7u2-nb-7_1-linux-ml.sh      sun-javadb-javadoc-10.6.2-1.1.i386.rpm
netbeans-7.0.1-ml-php-linux.sh
root@ubuntu:/home/joe/Downloads# sh jdk-7u2-linux-x64.rpm
jdk-7u2-linux-x64.rpm: 3: Syntax error: Unterminated quoted string
root@ubuntu:/home/joe/Downloads# sh jdk-7u2-nb-7_1-linux-ml.sh
Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
eval: 1: /tmp/.nbi-2010332.tmp/jre-7-linux-i586.bin: not found
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform

Avatar of rgb192

ASKER

this worked after java jdk install