rgb192
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
I already have lamp installed
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)
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)
ASKER
i downloaded php version netbeans-...-linux.sh to downloads folder
and clicked on the .sh file
and it opened with a text editor
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.
and then sudo ./install.sh script.
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
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
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
ASKER
using ubuntu 11.10
I still dont understand your way
or maybe how could I do this using a shell script
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.
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.
ASKER
>>open a terminal window and run netbeans
what is the exact command. I do not understand
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.
Applications menu -> Accessories -> Terminal
once you have the command line prompt: type netbeans and hit enter.
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
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.
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.
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-linu x.sh
netbeans-7.0.1-ml-php-linu x.sh: command not found
root@ubuntu:/home/joe# dpkg-deb -c <netbeans-7.0.1-ml-php-lin ux.sh>
bash: syntax error near unexpected token `newline'
root@ubuntu:/home/joe#
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-linu
netbeans-7.0.1-ml-php-linu
root@ubuntu:/home/joe# dpkg-deb -c <netbeans-7.0.1-ml-php-lin
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-linu x.sh
./netbeans-7.0.1-ml-php-li nux.sh
chmod 700 netbeans-7.0.1-ml-php-linu
./netbeans-7.0.1-ml-php-li
ASKER
do I have to be in /downloads directory
i have a file called netbeans-7.0.1-ml-php-linu x.sh in /downloads
i have a file called netbeans-7.0.1-ml-php-linu
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
root@ubuntu:/home/joe/Down loads# chmod 777 netbeans-7.0.1-ml-php-linu x.shroot@u buntu:/hom e/joe/Down loads# sh netbeans-7.0.1-ml-php-linu x.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/Down loads# ls
jdk-7u2-nb-7_1-linux-ml.sh netbeans-7.0.1-ml-php-linu x.sh
root@ubuntu:/home/joe/Down loads# ^C
root@ubuntu:/home/joe/Down loads# chmod 777 jdk-7u2-nb-7_1-linux-ml.sh
root@ubuntu:/home/joe/Down loads# 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-i5 86.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/Down loads#
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/Down
jdk-7u2-nb-7_1-linux-ml.sh
root@ubuntu:/home/joe/Down
root@ubuntu:/home/joe/Down
root@ubuntu:/home/joe/Down
Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
eval: 1: /tmp/.nbi-2013934.tmp/jre-
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform
root@ubuntu:/home/joe/Down
ASKER
i did chmod -Rf 777 /downloads
root@ubuntu:/home/joe/Down loads# ls
jdk1.6.0_30 sun-javadb-client-10.6.2-1 .1.i386.rp m
jdk-6u30-linux-amd64.rpm sun-javadb-common-10.6.2-1 .1.i386.rp m
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.r pm
netbeans-7.0.1-ml-php-linu x.sh
root@ubuntu:/home/joe/Down loads# sh jdk-7u2-linux-x64.rpm
jdk-7u2-linux-x64.rpm: 3: Syntax error: Unterminated quoted string
root@ubuntu:/home/joe/Down loads# 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-i5 86.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/Down
jdk1.6.0_30 sun-javadb-client-10.6.2-1
jdk-6u30-linux-amd64.rpm sun-javadb-common-10.6.2-1
jdk-6u30-linux-x64.bin sun-javadb-core-10.6.2-1.1
jdk-6u30-linux-x64-rpm.bin
jdk-7u2-linux-x64.rpm sun-javadb-docs-10.6.2-1.1
jdk-7u2-nb-7_1-linux-ml.sh
netbeans-7.0.1-ml-php-linu
root@ubuntu:/home/joe/Down
jdk-7u2-linux-x64.rpm: 3: Syntax error: Unterminated quoted string
root@ubuntu:/home/joe/Down
Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
eval: 1: /tmp/.nbi-2010332.tmp/jre-
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform
ASKER
this worked after java jdk install
Cheers