The javax.print. package follows the Service Provider Interface pattern. Hence, the real implementation of printer looking up service depends on the underlying JRE. As his code did work on pure Mac JRE, i suspect that OOo extension causes conflicts on native libraries.
On Mon, May 16, 2011 at 11:14 PM, Nguyen Vu Hung <[email protected]>wrote: > > Cho các bác ở dự án a11y! > > ---------- Forwarded message ---------- > From: Bert Frees <[email protected]> > Date: Mon, May 16, 2011 at 16:55 > Subject: [dev] odt2braille on the Mac > To: [email protected] > > > Hello, > > I'm new to this mailing list. My name is Bert Frees. I am the developer of > odt2braille, the OpenOffice.org plugin for printing and exporting Braille. > The website is http://odt2braille.sourceforge.net/index.html. > > I'm trying to make this plugin available on the Mac, but I've been puzzling > on a bug for some time now and I'm really stuck. I hope there is somebody on > this list who is familiar with OOo on the Mac, and who knows what might be > the problem. > > I'm using javax.print.PrintServiceLookup to look up the default printer > device. It works fine on Windows, but on Mac OS it causes OOo to crash. > Also, I'm sure the problem is OOo-related because the code runs fine when it > is not embedded in an OOo extension. > > This is the code: > > javax.print.PrintService[] printers = > javax.print.PrintServiceLookup.lookupDefaultPrintService(); > > > Thanks, > Bert > > -- > Bert Frees > Katholieke Universiteit Leuven > Dept. Elektrotechniek - ESAT - SCD > Onderzoeksgroep Documentarchitecturen > Kasteelpark Arenberg 10 bus 2442 > B-3001 Heverlee-Leuven > België > > > -- > Best Regards, > Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng ) > vuhung16plus{remove}@gmail.dot.com , YIM: vuhung16 , Skype: vuhung16plus, > twitter: vuhung, MSN: vuhung16 > > > > _______________________________________________ > POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines > _______________________________________________ > HanoiLUG mailing lists: http://lists.hanoilug.org/ > HanoiLUG wiki: http://wiki.hanoilug.org/ > HanoiLUG blog: http://blog.hanoilug.org/ > -- Minh Hoang TO eXoPlatform SAS, tang 8, building 18, Thai Ha, Ha Noi
_______________________________________________ POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines _______________________________________________ HanoiLUG mailing lists: http://lists.hanoilug.org/ HanoiLUG wiki: http://wiki.hanoilug.org/ HanoiLUG blog: http://blog.hanoilug.org/
