2

I was working in win7, and I just got sick of windows. So I installed 14.04 LTS and NetBeans today. Opened it and start new project, several times. Won't create new project, won't do nothing.

At one point, the app had to be killed. So, I'm totally new to Ubuntu and Linux and need help. I couldn't find answer that could save my problem.

  • Try to delete Netbeans and re-install it. – ryekayo Jun 17 '14 at 16:57
  • Tried, now it won't launch it. – Manojlo Jun 17 '14 at 18:27
  • try this in the terminal: sudo apt-get install --reinstall netbeans – Parto Jun 17 '14 at 18:28
  • Nothing. No response. Just opens the NetBeans and no red loading indicator is filling. After few seconds is closed, and that's it. I hope you understand my English. :) – Manojlo Jun 17 '14 at 18:36
  • 1
    Well, I solved the problem. I re-installed NetBeans, but I downloaded from their site .sh file, and installed it using the terminal. It works. Thank you for your time. This is what I used: " chmod +x netbeans-8.0-linux.sh", "./netbeans-8.0-linux.sh". – Manojlo Jun 17 '14 at 19:44
5

Looks like you're hitting bug 1274469; the libnb-javaparser-java package is newer than the netbeans installation.

The fix is to manually downgrade your version of libnb-javaparser-java, to match the version of netbeans that's installed. You can do this with:

wget http://archive.ubuntu.com/ubuntu/pool/universe/libn/libnb-javaparser-java/libnb-javaparser-java_7.0.1-1_all.deb
sudo dpkg -i libnb-javaparser-java_7.0.1-1_all.deb

then restart netbeans.

  • Problem is solved. Thank you for your effort. Had problems with PC so I couldn't answer you earlier. – Manojlo Sep 19 '14 at 13:00
  • This is the solution. tanx – hamed Jul 12 '15 at 20:05
1

I solved the problem. I reinstalled NetBeans, but I downloaded from their site .sh file, and installed it using the terminal. It works. This is what I used:

chmod +x netbeans-8.0-linux.sh

./netbeans-8.0-linux.sh

  • Are you saying it was installed with apt-get install previously ? And the download from netbeans.org worked ? – rjdkolb Nov 14 '15 at 15:30
  • it worked for me but without install it using terminal as it was the problem with me – user3188912 Mar 18 '17 at 15:05
1

Install the Latest Package of Java first. Make sure to read the Netbeans installation instructions completely. They will mention what version(s) of Java are supported for the version of Netbeans you are downloading.

Next make sure the netbeans download is extracted (if zipped) and made executable (important). Then open a command line terminal (CTRL - ALT - T). Make sure to execute the sh file as sudo. This will ensure that the Netbeans install will be able to find your version(s) of Java installed.

sudo sh netbeans-8.0.1-php-linux.sh

1

When starting from shell got the following message:

Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
Java HotSpot(TM) Client VM warning: ignoring option PermSize=32m; support was removed in 8.0

in this case this might be the solution:

netbeans --jdkhome /usr/lib/jvm/java-7-oracle

or any other jdk7 happens to be installed.

If so then to make it more permanent one can edit following lines in /etc/netbeans.conf:

# Default location of JDK, can be overridden by using --jdkhome <dir>:
#netbeans_jdkhome="/path/to/jdk"

or to do it in user space edit .desktop or menu file and/or add alias to shell's rc file.

  • this is the right answer for nb 7.0.1, tx! – Aquarius Power Mar 16 '17 at 14:50
0

Aren't you getting any error messages?

I believe this issue can be related to permissions. Have you tried to run the program as root?

sudo netbeans

or

sudo netbeans-7.0.1
  • Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=32m; support was removed in 8.0 This is what is shown in terminal. – Manojlo Jun 17 '14 at 18:27

protected by Community Dec 29 '15 at 16:46

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.