2009-11-19 47 views
0

我有系統:ubuntu-9.04-amd64。我從官方默認存儲庫安裝IDE NetBeans 6.5。一切工作正常。純NetBeans不起作用


但是現在,我決定使用ubuntu-9.10-desktop-amd64。

我用我的硬盤格式化了部分:(//usr)。 /home依然如此。我已正確安裝ubuntu-9.10,正確(可能)安裝IDE NetBeans 6.5。

但現在,我甚至無法使用此IDE創建最簡單的Java應用程序。 如果我使用CommandLine編譯Java類,一切正常(~/javac someclass.java | java)。


如果我啓動IDE(NB 6.5),那麼文件 - >新建項目 - >這個新項目被創建,但不編譯:如果顯示放(F6)錯誤:

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 org.openide.windows.TopComponent.processKeyBinding(Unknown Source) 
    at javax.swing.JComponent.processKeyBindings(JComponent.java:2897) 
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2814) 
    at java.awt.Component.processEvent(Component.java:6040) 
    at java.awt.Container.processEvent(Container.java:2041) 
    at java.awt.Component.dispatchEventImpl(Component.java:4630) 
    at java.awt.Container.dispatchEventImpl(Container.java:2099) 
    at java.awt.Component.dispatchEvent(Component.java:4460) 
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848) 
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704) 
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969) 
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841) 
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668) 
    at java.awt.Component.dispatchEventImpl(Component.java:4502) 
    at java.awt.Container.dispatchEventImpl(Container.java:2099) 
    at java.awt.Window.dispatchEventImpl(Window.java:2475) 
    at java.awt.Component.dispatchEvent(Component.java:4460) 
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) 
    at org.netbeans.core.TimableEventQueue.dispatchEvent(Unknown Source) 
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) 
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) 
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) 
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) 
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) 
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) 

我能做些什麼來編譯最簡單的應用程序使用IDE。我必須做我的工作,請幫助我。

回答

相關問題