Public bug reported:

Binary package hint: netbeans

Apparent regression in interaction between netbeans and the jdk (I have
sun-java6-jdk installed) in Karmic

Anytime netbeans from Karmic task-scans or is told to "Run Main
Project", it fails with error 'invalid flag -g:'  This did not happen in
Jaunty, and has now happened to me both on upgrade from Jaunty and fresh
install of Karmic Alpha 2 with all updates run (and fresh home
directory).

Can't find anything in settings that would influence this.

Package manager shows netbeans version 6.5-0ubuntu3, sun-java6-jdk
version 6-14-1

Stack trace follows (though not very helpful):
java.lang.IllegalArgumentException: invalid flag: -g:
        at com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:250)
        at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:221)
        at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:67)
        at org.netbeans.api.java.source.JavaSource.createJavacTask(Unknown 
Source)
        at org.netbeans.api.java.source.JavaSource.createJavacTask(Unknown 
Source)
        at 
org.netbeans.api.java.source.CompilationInfoImpl.getJavacTask(Unknown Source)
        at org.netbeans.api.java.source.CompilationInfo.getElements(Unknown 
Source)
        at org.netbeans.api.java.source.SourceUtils$5.run(Unknown Source)
        at org.netbeans.api.java.source.SourceUtils$5.run(Unknown Source)
        at 
org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(Unknown Source)
        at org.netbeans.api.java.source.JavaSource.runUserActionTask(Unknown 
Source)
        at org.netbeans.api.java.source.SourceUtils.isMainClass(Unknown Source)
        at 
org.netbeans.modules.java.j2seproject.J2SEProjectUtil.isMainClass(Unknown 
Source)
        at 
org.netbeans.modules.java.j2seproject.J2SEActionProvider.isSetMainClass(Unknown 
Source)
        at 
org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(Unknown 
Source)
        at 
org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(Unknown Source)
        at 
org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(Unknown Source)
        at 
org.netbeans.modules.java.j2seproject.J2SEActionProvider.invokeAction(Unknown 
Source)
        at 
org.netbeans.modules.project.ui.actions.MainProjectAction.actionPerformed(Unknown
 Source)
        at 
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(Unknown
 Source)
        at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
        at 
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
        at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
        at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
        at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
        at 
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
        at 
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
        at java.awt.Component.processMouseEvent(Component.java:6108)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
        at java.awt.Component.processEvent(Component.java:5873)
        at java.awt.Container.processEvent(Container.java:2105)
        at java.awt.Component.dispatchEventImpl(Component.java:4469)
        at java.awt.Container.dispatchEventImpl(Container.java:2163)
        at java.awt.Component.dispatchEvent(Component.java:4295)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
        at java.awt.Container.dispatchEventImpl(Container.java:2149)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4295)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(Unknown Source)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

** Affects: netbeans (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: java netbeans

-- 
netbeans non-functional: 'invalid flag -g:'
https://bugs.launchpad.net/bugs/401589
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to