1 Apr 01:00
Netbeans 6.1 using wrong Java Library?
Robert Denton <robert <at> headsprout.com>
2008-03-31 23:00:26 GMT
2008-03-31 23:00:26 GMT
Hi folks,
I have an empty shell of a GUI that doesn't have any functionality yet, other than just spawning the main window. It runs in the IDE just fine but when I try to run it outside the IDE I get the following error:
Exception during event dispatch:
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicScrollPaneUI$PropertyChangeHandler.propertyChange(libgcj.so.8rh)
at java.beans.PropertyChangeSupport.firePropertyChange(libgcj.so.8rh)
at java.beans.PropertyChangeSupport.firePropertyChange(libgcj.so.8rh)
at java.awt.Component.firePropertyChange(libgcj.so.8rh)
at javax.swing.JScrollPane.setHorizontalScrollBar(libgcj.so.8rh)
at mainWindow.initComponents(mainWindow.java:186)
at mainWindow.<init>(mainWindow.java:21)
at mainWindow$1.run(mainWindow.java:286)
at java.awt.event.InvocationEvent.dispatch(libgcj.so.8rh)
at java.awt.EventQueue.dispatchEvent(libgcj.so.8rh)
at java.awt.EventDispatchThread.run(libgcj.so.8rh)
Someone over at the Sun's Java forums suggested that this was due to Netbeans using the wrong Java Library. I am not sure if this sounds right though because, it runs okay inside Netbeans, and I attached the library's within netbeans in the normal manner. Does anyone here have any idea what I could be doing wrong?
Robert
I have an empty shell of a GUI that doesn't have any functionality yet, other than just spawning the main window. It runs in the IDE just fine but when I try to run it outside the IDE I get the following error:
Exception during event dispatch:
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicScrollPaneUI$PropertyChangeHandler.propertyChange(libgcj.so.8rh)
at java.beans.PropertyChangeSupport.firePropertyChange(libgcj.so.8rh)
at java.beans.PropertyChangeSupport.firePropertyChange(libgcj.so.8rh)
at java.awt.Component.firePropertyChange(libgcj.so.8rh)
at javax.swing.JScrollPane.setHorizontalScrollBar(libgcj.so.8rh)
at mainWindow.initComponents(mainWindow.java:186)
at mainWindow.<init>(mainWindow.java:21)
at mainWindow$1.run(mainWindow.java:286)
at java.awt.event.InvocationEvent.dispatch(libgcj.so.8rh)
at java.awt.EventQueue.dispatchEvent(libgcj.so.8rh)
at java.awt.EventDispatchThread.run(libgcj.so.8rh)
Someone over at the Sun's Java forums suggested that this was due to Netbeans using the wrong Java Library. I am not sure if this sounds right though because, it runs okay inside Netbeans, and I attached the library's within netbeans in the normal manner. Does anyone here have any idea what I could be doing wrong?
Robert
RSS Feed