Hi,
I had developed a system which run well at localhost but once run at server, the following error will appear:
Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\awt.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Unknown Source)
at java.awt.Toolkit.<clinit>(Unknown Source)
at java.awt.Font.<clinit>(Unknown Source)
at net.sf.jasperreports.engine.fonts.SimpleFontFace.< init>(SimpleFontFace.java:69)
at net.sf.jasperreports.engine.fonts.SimpleFontFamily .createFontFace(SimpleFontFamily.java:316)
at net.sf.jasperreports.engine.fonts.SimpleFontFamily .setNormal(SimpleFontFamily.java:85)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionHelper.parseFontFamily(SimpleFontExtensionHelpe r.java:233)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionHelper.parseFontFamilies(SimpleFontExtensionHel per.java:204)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionHelper.loadFontFamilies(SimpleFontExtensionHelp er.java:173)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionHelper.loadFontFamilies(SimpleFontExtensionHelp er.java:142)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionsRegistryFactory.createRegistry(SimpleFontExten sionsRegistryFactory.java:63)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.instantiateRegistry(DefaultExtensionsRegis try.java:238)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.loadRegistries(DefaultExtensionsRegistry.j ava:213)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.loadRegistries(DefaultExtensionsRegistry.j ava:162)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.getRegistries(DefaultExtensionsRegistry.ja va:132)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.getExtensions(DefaultExtensionsRegistry.ja va:104)
at net.sf.jasperreports.engine.util.JRStyledTextParse r.<clinit>(JRStyledTextParser.java:76)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<ini t>(JRBaseFiller.java:181)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:76)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:86)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:56)
at net.sf.jasperreports.engine.fill.JRFiller.createFi ller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillRepo rt(JRFiller.java:78)
at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:624)
at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:540)
Besides, when I click for a button to generate a PDF form report, it occurs an error. When run at localhost, the PDF form report can be generated well but once run at server, the following error will appear:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:181)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:76)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:86)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:56)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:78)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:540)
I try research and solve it but the errors still appear. Anyone know what is the reason of the problems or have any solution about these errors? Really appreciate for any suggestions. Thanks.