Skip to Content
avatar image
Former Member

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 10, 2009 at 08:27 AM

    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


    Vivek Nidhi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 03, 2009 at 03:48 PM


    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.

    Add comment
    10|10000 characters needed characters exceeded