有没有人设法让Netbeans 3在Windows 7上运行?我意识到这是违背所有神圣的事情,但我要么尝试让它工作,购买新硬件,要么将整个项目升级到以后的IDE ......
我必须在运行安装程序时手动设置我的JAVA_HOME并在命令行上放置文件夹路径,但之后我在安装日志中收到以下错误:
Found matching JVM at c:\Java\jdk1.5.0_06
Matching JVM home is c:\Java\jdk1.5.0_06
Matching JVM file is C:\Users\spalmer\AppData\Local\Temp\LRE72A4.tmp
Executing launch script command: "c:\Java\jdk1.5.0_06/bin\java.exe" -cp "";"C:\Users\spalmer\AppData\Local\Temp\LRE72A5.tmp\setup.jar";"" -Dtemp.dir="C:\Users\spalmer\AppData\Local\Temp" -Dis.jvm.home="c:\Java\jdk1.5.0_06" -Dis.jvm.temp="0" -Dis.media.home="C:\Users\spalmer\AppData\Local\Temp\LRE72A5.tmp\setup.jar" -Dis.launcher.file="C:\development\surveycollector\trunk\docs\Everything you need to set up a survey collector\netbeans-3_6-windows.exe" -Dis.jvm.file="C:\Users\spalmer\AppData\Local\Temp\LRE72A4.tmp" -Dis.external.home="C:\development\surveycollector\trunk\docs\Everything you need to set up a survey collector" -Xms20m -Xmx60m run in working directory C:\development\surveycollector\trunk\docs\Everything you need to set up a survey collector
Output from the launch script execution
StdOut:
ErrOut:
An error occurred during wizard bean change notification:
java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at com.installshield.wizard.awt.ColumnLayout.layoutContainer(ColumnLayout.java:174)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at com.installshield.wizard.awt.AWTWizardUI.setCurrent(AWTWizardUI.java:1827)
at com.installshield.wizard.awt.AWTWizardUI.runnableBeanStarted(AWTWizardUI.java:1873)
at com.installshield.wizard.StandardWizardListener.execute(StandardWizardListener.java:127)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:106)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1545)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at com.installshield.wizard.awt.ColumnLayout.layoutContainer(ColumnLayout.java:174)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at com.installshield.wizard.awt.ColumnLayout.layoutContainer(ColumnLayout.java:174)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at com.installshield.wizard.awt.ColumnLayout.layoutContainer(ColumnLayout.java:174)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
答案 0 :(得分:1)
我建议将项目导入更新版本的IDE。您将使代码更易于访问,以满足将来的需求。否则你只会使一个明显的问题永久存在。
如果那是不可能的(有时这不是我们的电话),这是另一个VM选项,您可以查看:http://www.virtualbox.org/
答案 1 :(得分:1)
我刚刚找到了解决问题的简单方法:
C:\Java>SET JAVA_HOME='C:\j2sdk1.4.2_17'
C:\Java>netbeans-3_6-windows
如您所见,使用Java 1.4作为运行时,这就是我必须做的全部和Netbeans的完美安装。
万一你还需要它。
答案 2 :(得分:0)
查看Windows Virtual PC(Windows XP Mode或Win 7)。在其上安装Netbeans 3可能会有所帮助。
答案 3 :(得分:0)
我的猜测是Java 5对于NB3来说太新了。试试Java 1.4.2甚至1.3.something。
答案 4 :(得分:0)
我在一个不同的szenario中使用旧的JExpress安装程序进行了类似的NPE。我找到了workaround。
解决方法是将桌面主题更改为某些默认主题,如Win XP或Classic。那么这个问题就不会发生了。