pessoal,
consegui resolver o meu problema das fontes.
copiei a fonte symbol.ttf para o diretorio jdk/jre/lib/fonts
e acrescentei a linha abaixo no arquivo fonts.dir
symbol.ttf -urw-symbol-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
beleza, tudo certo...
(encontrei a solucao no site jguru.com)
link para a solucao:
http://community.borland.com/article/0,1410,21836,00.html
thats all, folks!
----- Original Message -----
From: "jspdeveloper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 2:06 PM
Subject: [java-list] programa em java para gerar imagem retorna erro de
fonte nao encontrado no linux
> Pesssoallll, boa tarde !
> estou com um problema serio e urgente.
>
> eu nao consegui fazer um programa que gerasse um codigo de barras para
> exibir atraves de um servlet entao comprei um em www.idautomation.com.
> beleza, funcionou sem problemas no sistema windows 98 e NT, mas no linux
> redhat nao funcionou.
> abaixo está a copia do email que eu mandei para o suporte da idautomation.
>
> de inicio o problema era com o xwindows, com a variavel display. beleza,
> resolvi instalando um vnc.
> mas depois disto apareceram erros <Font specified in font.properties not
> found> quando eu executava um programinha de teste. mais abaixo está o
> programinha.
>
> o problema agora eh que eu nao sei se o problema vai ser configurar o xfs,
> ou algo no linux, ou se o problema está na classe que eu comprei. Está
> classe BarCode se encontra no pacote LinearBarCode.jar. O pessoal do
> suporte falou q o problema nao esta na classe, pois nao utilizam a fonte
> abaixo descrita.
>
> Bom, se a resposta estiver nos dominios do java, alguem poderia me
> responder?
> obrigado!
>
>
> //classe exemplo que esta dando erro no linux
> import IDABarCode.*;
> import IDABarCode.encoder.*;
> class simpleGIF {
> public static void main ( String [] args ) {
> BarCode bc=new BarCode();
> bc.code="123456789";
> bc.barType=bc.CODE128;
> bc.setSize(400,200);
> barCodeEncoder bce = new barCodeEncoder(bc, "GIF", "newfile.gif");
> }
> }
>
>
>
> - - - - - -- - -- - - - - - - - - - - - -
-
> - - - - - - - - - - - -- - - - - - --
>
> I don't know what could be causing that problem. Our product does not
> require use of the symbol font.
>
> Warm Regards,
>
> Brant Anderson
>
> > -----Original Message-----
> > From: tamer [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 16, 2001 3:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: please, coud you help me with barcodeservlet.java and
> > CreateGIF ?
> >
> >
> > hello, i solved my problem with XWindow.
> > I instaled Xvnc as new 'X' desktop (Xvvc is a virtual networking
> > computing)
> >
> > after this , i has configured DISPLAY variable as argo.redes.unb.br:1
> >
> > and now, I´m having this problem :
> >
> > classes newfile.gif simpleGIF.class simpleGIF.java
> > [root@argo WEB-INF]# java simpleGIF
> > Font specified in font.properties not found
> > [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] (esta
> mensagem apareceu umas 10 vezes. por motivos de trafego retirei-as)
>
> >
> >
> > ----- Original Message -----
> > From: "IDAutomation.com, Inc." <[EMAIL PROTECTED]>
> > To: "tamer" <[EMAIL PROTECTED]>
> > Sent: Friday, March 16, 2001 2:55 PM
> > Subject: RE: please, coud you help me with barcodeservlet.java
> > and CreateGIF
> > ?
> >
> >
> > > We documented some things about this at:
> > > http://www.idautomation.com/support.htm#Xwindowserver
> > >
> > >
> > > Warm Regards,
> > >
> > > Brant Anderson
> > > IDAutomation.com, Inc.
> > > "Your Source for Quality Symbology"
> > > http://www.IDAutomation.com/
> > >
> > > Barcode, MICR and OCR Fonts:
> > > http://www.bizfonts.com/
> > >
> > > Easy to use ActiveX Controls:
> > > http://www.idautomation.com/activex/
> > >
> > > Java Barcode Products:
> > > http://www.idautomation.com/java/
> > >
> > > CCD Barcode Scanners:
> > > http://www.idautomation.com/ccdreaders/
> > >
> > >
> > > > -----Original Message-----
> > > > From: tamer [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, March 16, 2001 9:03 AM
> > > > To: IDAutomation.com, Inc.
> > > > Subject: please, coud you help me with barcodeservlet.java
> > and CreateGIF
> > > > ?
> > > > Importance: High
> > > >
> > > >
> > > > hello,
> > > > im having problems with program test BarCodeServlet.java and
> > > > CreateGIF.class
> > > >
> > > > Im already put LinearBarCode.jar on classpath.
> > > >
> > > > below i pasted 2 erros : one using servlet and other using
> > java command
> > > >
> > > > please, reply for me . it´s very urgent.
> > > >
> > > >
> > > > [tamer@argo WEB-INF]$ java CreateGIF
> > > > Exception in thread "main" java.lang.InternalError: Can't
> > connect to X11
> > > > window server using ':0.0' as the value of the DISPLAY variable.
> > > > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> > > > at
> > > >
> > sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58)
> > > > at java.lang.Class.forName0(Native Method)
> > > > at java.lang.Class.forName(Class.java:120)
> > > > at
> > > > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsE
> > > > nvironment
> > > > .java:58)
> > > > at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:57)
> > > > at java.lang.Class.forName0(Native Method)
> > > > at java.lang.Class.forName(Class.java:120)
> > > > at java.awt.Toolkit$2.run(Toolkit.java:498)
> > > > at java.security.AccessController.doPrivileged(Native
Method)
> > > > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
> > > > at java.awt.Component.getToolkitImpl(Component.java:657)
> > > > at java.awt.Component.getToolkit(Component.java:641)
> > > > at IDABarCode.BarCode.<init>(IDABarCode/BarCode)
> > > > at CreateGIF.main(simpleGIF.java:5)
> > > >
> > > >
> > > > my request:
> > > > http://164.41.67.135/servlet/BarCodeServlet
> > > > my response:
> > > > 500 Servlet Exception
> > > > java.lang.NoClassDefFoundError
> > > > at java.lang.Class.forName0(Native Method)
> > > > at java.lang.Class.forName(Class.java:120)
> > > > at
> > > > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsE
> > > > nvironment
> > > > .java:58)
> > > > at
> > java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1011)
> > > > at barcode.BarCodeServlet.doGet(BarCodeServlet.java:83)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:102)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:83)
> > > > at com.caucho.server.http.Invocation.service(Invocation.java:272)
> > > > at
> > > >
> > com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:123)
> > > > at
> > > >
> >
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:349)
> > > > at
> > > > com.caucho.server.http.RunnerRequest.handleConnection(RunnerReques
> > > > t.java:265
> > > > )
> > > > at com.caucho.server.TcpConnection.run(TcpConnection.java:142)
> > > > at java.lang.Thread.run(Thread.java:484)
> > > > ------------------------------------------------------------------
> > > > ----------
> > > > ----
> > > > Resin 1.2.2 -- Tue Jan 16 09:53:18 PST 2001
> > > >
> > > >
>
>
>
> ------------------------------ LISTA SOUJAVA ----------------------------
> http://www.soujava.org.br - Sociedade de Usuários Java da Sucesu-SP
> dúvidas mais comuns: http://www.soujava.org.br/faq.htm
> regras da lista: http://www.soujava.org.br/regras.htm
> para sair da lista: envie email para [EMAIL PROTECTED]
> -------------------------------------------------------------------------
>
------------------------------ LISTA SOUJAVA ----------------------------
http://www.soujava.org.br - Sociedade de Usuários Java da Sucesu-SP
dúvidas mais comuns: http://www.soujava.org.br/faq.htm
regras da lista: http://www.soujava.org.br/regras.htm
para sair da lista: envie email para [EMAIL PROTECTED]
-------------------------------------------------------------------------