cancel
Showing results for 
Search instead for 
Did you mean: 

getting error running Java app on server

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Regards,

Vivek Nidhi

Answers (1)

Answers (1)

rosh
Participant
0 Kudos

Hi,

perhaps the server is not using a sun vm or the UNIX-implementation does not have a win32-printer thingie? You should post the whole stacktrace and the result of the "java -version"-command of your computer and the server to get more info on this forum.