• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 844
  • Last Modified:

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
0
rgb192
Asked:
rgb192
  • 10
  • 8
1 Solution
 
Marco GasiFreelancerCommented:
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
0
 
arnoldCommented:
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)
0
 
rgb192Author Commented:
i downloaded php version netbeans-...-linux.sh to downloads folder

and clicked on the .sh file

and it opened with a text editor


0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
arnoldCommented:
you have to use a terminal window
and then sudo ./install.sh script.
0
 
rgb192Author Commented:
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
0
 
arnoldCommented:
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

0
 
rgb192Author Commented:
using ubuntu 11.10

I still dont understand your way

or maybe how could I do this using a shell script



0
 
arnoldCommented:
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.
0
 
rgb192Author Commented:
>>open a terminal window and run netbeans

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

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


also tried with su sudo
0
 
arnoldCommented:
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.
0
 
rgb192Author Commented:
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#
0
 
arnoldCommented:
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
0
 
rgb192Author Commented:
do I have to be in /downloads directory

i have a file called netbeans-7.0.1-ml-php-linux.sh in /downloads
0
 
arnoldCommented:
you can be in /downloads or run the command as sh /downloads/netbeans-7.0.1-ml-php-linux.sh
0
 
rgb192Author Commented:
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#
0
 
rgb192Author Commented:
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

0
 
rgb192Author Commented:
this worked after java jdk install
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 10
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now