netbeans ide cannot create a project

Bug #1360100 reported by HKGoldenMr.A on 2014-08-22
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
Undecided
Unassigned

Bug Description

i am using linux mint 17 mate 64 bit version 2

i use "sudo apt-get install netbeans" to install netbeans ide

the netbeans ide installed when i run the netbeans ide
when netbeans ide is started, an error message appeared
and click the alert signal, it shows "unexpected exception javax/lang/model/element/executeableelement: unsupported major.minor version 51.0"
the netbeans is jammed when creating a java project
the jammed problem still occurs after reboot the netbeans ide or reboot the linux mint

after that i thought the problem comes from java version
then i purge the openjdk-6-jdk and try to install the openjdk-7-jdk use command "sudo apt-get install openjdk-7-jdk"
and update-alternative java runtime
the netbeans ide does not show the previous problem after started
however, when create a java project it gets the other error signal - "unexpected exception com/sun/tools/javac/util/CancelAbort"

i thought netbeans ide is crash to some software or library i installed
so i use virtualbox and setup i new linux mint 17 in it.
i install openjdk-7-jdk before install netbeans, however it still has "unexpected exception com/sun/tools/javac/util/CancelAbort" when create a java project

linux mint 16 does not happen

Vlad Orlov (monsta) on 2014-08-22
affects: linuxmint → netbeans (Ubuntu)
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netbeans (Ubuntu):
status: New → Confirmed
Dino Conte (dermitdemdino) wrote :

Me too, here the same. See log in attachment.
Configuration: Ubuntu 14.04.1 / 64bit / Netbeans 7.0.1

José Jorge (mexchip) wrote :

Same problem here.
When trying to pen a project I get this exception:

java.lang.UnsupportedClassVersionError: javax/tools/JavaFileManager : Unsupported major.minor version 51.0
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
 at org.netbeans.JarClassLoader.doLoadClass(Unknown Source)
 at org.netbeans.ProxyClassLoader.selfLoadClass(Unknown Source)
 at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
 at org.netbeans.modules.java.j2seproject.MainClassUpdater.addFileChangeListener(Unknown Source)
 at org.netbeans.modules.java.j2seproject.MainClassUpdater.<init>(Unknown Source)
 at org.netbeans.modules.java.j2seproject.J2SEProject$ProjectOpenedHookImpl.projectOpened(Unknown Source)
 at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:84)
 at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:196)
 at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:84)
[catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1130)
 at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:1213)
 at org.netbeans.modules.project.ui.OpenProjectList.doOpen(OpenProjectList.java:700)
 at org.netbeans.modules.project.ui.OpenProjectList.access$2000(OpenProjectList.java:136)
 at org.netbeans.modules.project.ui.OpenProjectList$4.run(OpenProjectList.java:585)
 at org.openide.util.RequestProcessor$Task.run(Unknown Source)
 at org.openide.util.RequestProcessor$Processor.run(Unknown Source)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments