Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Urgent: has somebody printed simple text to a printer from a Pocket PC SWT application?
Urgent: has somebody printed simple text to a printer from a Pocket PC SWT application? [message #456720] Tue, 07 June 2005 15:12 Go to next message
Diego Celery is currently offline Diego CeleryFriend
Messages: 11
Registered: July 2009
Junior Member
I need to print simple text to a bluetooth linked printer. The printers
should be discovered by the Pocket PC operating system.
My application run on a Pocket PC Windows Mobile 2003.
I receive the error message "UnsatisfiedLinkError" when i call
pDialog.open()

PrintDialog pDialog=new PrintDialog(this.getShell());
PrinterData pData=pDialog.open();

Complete error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
org/eclipse/swt/internal/win32/OS.PrintDlgW(Lorg/eclipse/swt /internal/win32/
PRINTDLG;)ZUnsatisfiedLinkError



I think the SWT print packages NATIVE implementacion is missing in the dll
3064 for that operating system , is that true?
I need to resolve this problem urgent, please, can you help me??
Do you know another way to print text from the Pocket PC to a bluetooth
linked printer?.

Thanks
Diego
Re: Urgent: has somebody printed simple text to a printer from a Pocket PC SWT application? [message #456734 is a reply to message #456720] Wed, 08 June 2005 04:36 Go to previous messageGo to next message
Glenn Marintes is currently offline Glenn MarintesFriend
Messages: 23
Registered: July 2009
Junior Member
Hi,

I am not familiar with the Pocket PC but I might be
able 2 give you some idea...

The UnsatisfiedLinkError is thrown when the swt
dlls cannot be found in java.library.path
You can put the dlls on the system folder on your
OS or better yet, put it in your lib dir and then
add a VM option:
-Djava.library.path=lib
in your run configuration...

Hope I gave you some idea...

Gud luk..
Re: Urgent: has somebody printed simple text to a printer from a Pocket PC SWT application? [message #456817 is a reply to message #456734] Thu, 09 June 2005 17:03 Go to previous messageGo to next message
Diego Celery is currently offline Diego CeleryFriend
Messages: 11
Registered: July 2009
Junior Member
Thanks glenn for your response.
UnsatisfiedLinkError is thrown too, when a native method implementation
cannot be found in the loaded swt dll.
I tried your two options:
1)put the swt dll in the \Windows folder(it's the system folder for Windows
Mobile 2003)
2)add the VM option in the run Configuration:
"-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage
Card\immapp\WebServicesME.jar" -Djava.library.path=\Windows
and
"-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage
Card\immapp\WebServicesME.jar" "-Djava.library.path=\Windows"
and
"-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage
Card\immapp\WebServicesME.jar"
"-Djava.library.path=\Windows\swt-win32-3064.dll"
and
"-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage
Card\immapp\WebServicesME.jar"
"-Djava.library.path=\Windows\swt-win32-3064"

No way, the problem is still there. I receive the same error message.Then, i
think the print native methods implementation is missing in the swt dll.
Diego



"Glenn Marintes" <glenn.marintes@laseritesystems.com> escribi
Re: Urgent: has somebody printed simple text to a printer from a Pocket PC SWT application? [message #456831 is a reply to message #456817] Fri, 10 June 2005 02:17 Go to previous messageGo to next message
Glenn Marintes is currently offline Glenn MarintesFriend
Messages: 23
Registered: July 2009
Junior Member
Ah yeah.. That's one reason for UnsatisfiedLinkError.
I dunno, but there really are methods in SWT that aren't implemented
in the DLLs. One way to telling if you are invoking a non-implemented
method is that other SWT methods doesnt throw the exception.

>> "-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage
>> Card\immapp\WebServicesME.jar" -Djava.library.path=\Windows
I'm not sure with your java.library.path option here.
I think it has to be an absolute path or a path that is
relative to your project. ie. if you have a lib folder
inside your Project, put -Djava.library.path=lib
This usually works for me.

>> "-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage
>> Card\immapp\WebServicesME.jar"
>> "-Djava.library.path=\Windows\swt-win32-3064.dll"
>> and
>> "-Xbootclasspath/p:\Storage Card\immapp\swt.jar;\Storage
>> Card\immapp\WebServicesME.jar"
>> "-Djava.library.path=\Windows\swt-win32-3064"
These options aren't necessary I think. You only need
to specify the folder where the dlls can be found...
Re: Urgent: has somebody printed simple text to a printer from a Pocket PC SWT application? [message #457006 is a reply to message #456831] Fri, 10 June 2005 13:41 Go to previous messageGo to next message
Diego Celery is currently offline Diego CeleryFriend
Messages: 11
Registered: July 2009
Junior Member
Glenn, you are true, you have the reason.
Then, do you know what another method can i try to invoke for example?
Thanks
Diego

"Glenn Marintes" <glenn.marintes@laseritesystems.com> escribi
Re: Urgent: has somebody printed simple text to a printer from a Pocket PC SWT application? [message #457832 is a reply to message #457006] Tue, 05 July 2005 16:23 Go to previous message
Felipe Heidrich is currently offline Felipe HeidrichFriend
Messages: 29
Registered: July 2009
Junior Member
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=100053
Previous Topic:Select a label's text for cut and paste?
Next Topic:Why can't I package jar plugins in a product?
Goto Forum:
  


Current Time: Thu Sep 19 18:57:52 GMT 2024

Powered by FUDForum. Page generated in 0.04119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top