在本页面重新下载(原先用的版本也有lib的那些文件,不过是跟YOYOplayer.jar在同一个目录),解开后运行出错:
$ ./start.sh
2008-7-18 20:57:08 com.hadeslee.yoyoplayer.util.Config load
严重: 找不到配置,使用默认配置
Exception in thread "Thread-1" java.lang.ExceptionInInitializerError
at com.hadeslee.yoyoplayer.player.ui.CheckThread.run(CheckThread.java:71)
Caused by: java.lang.NullPointerException
at javax.swing.JComponent.setBorder(JComponent.java:1777)
at javax.swing.DefaultListCellRenderer.getListCellRendererComponent(DefaultListCellRenderer.java:159)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxRenderer.getListCellRendererComponent(MetalFileChooserUI.java:878)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1355)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1305)
at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2614)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
at javax.swing.JList.setSelectedIndex(JList.java:2196)
at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:1144)
at javax.swing.plaf.basic.BasicComboPopup.access$300(BasicComboPopup.java:63)
at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(BasicComboPopup.java:982)
at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1224)
at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1281)
at javax.swing.JComboBox.contentsChanged(JComboBox.java:1328)
at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:117)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem(MetalFileChooserUI.java:1029)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem(MetalFileChooserUI.java:1000)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.access$900(MetalFileChooserUI.java:929)
at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(MetalFileChooserUI.java:677)
at javax.swing.plaf.metal.MetalFileChooserUI.access$1200(MetalFileChooserUI.java:51)
at javax.swing.plaf.metal.MetalFileChooserUI$5.propertyChange(MetalFileChooserUI.java:766)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:298)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:291)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:229)
at java.awt.Component.firePropertyChange(Component.java:8001)
at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:585)
at javax.swing.JFileChooser.<init>(JFileChooser.java:348)
at javax.swing.JFileChooser.<init>(JFileChooser.java:300)
at com.hadeslee.yoyoplayer.util.Util.<clinit>(Util.java:74)
... 1 more
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class com.hadeslee.yoyoplayer.util.Util
at com.hadeslee.yoyoplayer.player.ui.PlayerUI.loadUI(PlayerUI.java:759)
at com.hadeslee.yoyoplayer.player.ui.Main.loadUI(Main.java:163)
at com.hadeslee.yoyoplayer.player.ui.Main$1.run(Main.java:83)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
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)
怀疑是jre没有安装正确,在网上查了一下,试了sudo update-alternatives --config java 将 JVM 切换至最新安装的 /usr/lib/jvm/java-6-sun/jre/bin/java
问题解决。
希望对有同样问题的朋友有所帮助。
最后感谢作者提供这么好用的播放器~ 祝愿作者和女友幸福美满~^^
回复 更多评论