我在linux和windows中使用quaqua外观和感觉。它工作得很好,直到我得到了JOptionPane的问题。当代码使用
行打开JOptionPane时JOptionPane.showInternalConfirmDialog(
pos_main.category_layer, "Give Rewards Now!!", "Loyalty", 1);
我得到以下异常,
<>之前警告:类ch.randelshofer.quaqua.osx.OSXApplication无法加载库"quaqua"。java.lang.UnsatisfiedLinkError:没有quaqua in java.library.path线程"AWT-EventQueue-0"中的异常adlayoutcomponent(来源未知)java.awt.Container.addImpl (Container.java: 1074)java.awt.Container.add (Container.java: 927)javax.swing.JOptionPane.createInternalFrame (JOptionPane.java: 1541)javax.swing.JOptionPane.showInternalOptionDialog (JOptionPane.java: 1259)javax.swing.JOptionPane.showInternalConfirmDialog (JOptionPane.java: 1194)javax.swing.JOptionPane.showInternalConfirmDialog (JOptionPane.java: 1155)javax.swing.JOptionPane.showInternalConfirmDialog (JOptionPane.java: 1118)operator.pos_main.formWindowOpened (pos_main.java: 254)operator.pos_main.access 000美元(pos_main.java: 38)operator.pos_main windowopened 1.美元(pos_main.java: 79)java.awt.AWTEventMulticaster.windowOpened (AWTEventMulticaster.java: 322)java.awt.Window.processWindowEvent (Window.java: 1859)javax.swing.JFrame.processWindowEvent (JFrame.java: 279)java.awt.Window.processEvent (Window.java: 1820)java.awt.Component.dispatchEventImpl (Component.java: 4630)java.awt.Container.dispatchEventImpl (Container.java: 2099)java.awt.Window.dispatchEventImpl (Window.java: 2475)java.awt.Component.dispatchEvent (Component.java: 4460)java.awt.EventQueue.dispatchEvent (EventQueue.java: 599)java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java: 269)java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java: 184)java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java: 174)java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java: 169)java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java: 161)java.awt.EventDispatchThread.run (EventDispatchThread.java: 122)之前——编辑——
System.out.println (System.getProperty (java . "));显示以下输出。
C:Program FilesJavajdk1.6.0_15bin;.;C:WindowsSunJavabin;C:Windowssystem32;C:Windows;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program FilesWIDCOMMBluetooth Software;C:Program FilesWIDCOMMBluetooth Softwaresyswow64;c:Program Files (x86)ATI TechnologiesATI.ACECore-Static;C:Program Files (x86)Common FilesRoxio Shared10.0DLLShared;C:Program Files (x86)Common FilesRoxio SharedDLLShared;C:Program Files (x86)DecisionStudio ProfessionalMySQL Server 5.0bin;C:Program Files (x86)DecisionStudio ProfessionalR-Projectbin;C:Program Files (x86)Microsoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100DTSBinn;C:Program Files (x86)Microsoft SQL Server100ToolsBinnVSShellCommon7IDE;C:Program Files (x86)Microsoft SQL Server100DTSBinn;C:Program Files (x86)Microsoft Visual Studio 9.0Common7IDEPrivateAssemblies;C:Program Files (x86)Windows LiveShared;C:Program Files (x86)GmoteServerbinvlc
看起来您需要检查集成到应用程序的步骤。
附录:在Mac OS X上,/System/Library/Java
是几个系统属性的根,如java.home
和java.library.path
。这是JOptionPane
所需的资源所在。不支持Linux和Windows
附录:在Ubuntu 10.04上,JOptionPane
演示运行良好;您可以使用这种方法,它只适用于开发目的。