Problem with PJA/JAVA in Solaris
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jeyakumar_Raman
Posted On:   Thursday, February 14, 2002 06:54 AM

Hi, I am using Sun Sparc Box, JDK 1.2.2 , PJA(Pure Java AWT) kit from www.eteks.com, I am getting the following problem while trying to get only fonts from Graphics Environment. Source Code : Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); Error is : Exception in thread "main" java.lang.UnsatisfiedLinkError: validPropertiesFile at sun.java2d.SunGraphicsEnvironment.initializeProps(SunGraphicsEnvironment.java:682) at sun.java2d.SunGraphicsEnvironment.access$1(SunGraphicsEnvironment.java:579) at sun.java2d.SunGraphicsEnvironm   More>>

Hi,



I am using
Sun Sparc Box,

JDK 1.2.2 ,

PJA(Pure Java AWT) kit from www.eteks.com,




I am getting the following problem while trying to get only fonts from Graphics Environment.




Source Code :


Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();






Error is :


Exception in thread "main" java.lang.UnsatisfiedLinkError: validPropertiesFile
at sun.java2d.SunGraphicsEnvironment.initializeProps(SunGraphicsEnvironment.java:682)
at sun.java2d.SunGraphicsEnvironment.access$1(SunGraphicsEnvironment.java:579)
at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:84)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment. (SunGraphicsEnvironment.java:73)
at com.eteks.java2d.PJAGraphicsEnvironment. (PJAGraphicsEnvironment.java:66)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:241)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
at GraphicsFontTest. (Compiled Code)
at GraphicsFontTest.main(GraphicsFontTest.java:50).



Can you tell me how to resolve this problem.


Thanks
Jeyakumar Raman.    <<Less

Re: Problem with PJA/JAVA in Solaris

Posted By:   Jeyakumar_Raman  
Posted On:   Thursday, February 14, 2002 06:58 AM

I forgot to metion, I have set the following options while running the code


java -Xbootclasspath/p:./lib/pja.jar:./lib/rtgraphics.jar -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.j
ava2d.PJAGraphicsEnvironment -Djava2d.font.usePlatformFont=false -Djava.awt.fonts=/usr/java1.2/jre/lib/fonts -Duser.home=/home/jraman/temp GraphicsFontTest

Thanks
About | Sitemap | Contact