getting error running Java app on server
I created this app using Eclipse 2.0 and it works great in Eclipse. I moved it to UNIX and I get an error.
Caused by: java.lang.UnsatisfiedLinkError: sun/print/Win32PrintServiceLookup.notifyFirstPrinterChange(Ljava/lang/String;)J
at sun.print.Win32PrintServiceLookup.access$000(Unknown Source)
at sun.print.Win32PrintServiceLookup$PrinterChangeListener.<init>(Unknown Source)
at sun.print.Win32PrintServiceLookup.<init>(Unknown Source)
The Eclipse was running JDK 1.6 and the server is running JDK 1.5, does this make a difference? Is this my problem?
Vivek Nidhi replied
One quick info.
Developing in JDK 1.5 and running in JDK 1.4 will be a problem for classes like java.lang.StringBuffer has its implementations are different. Its always recommend to develop on the same JDK version of the Server Runtime