----- Original Message ----- > > > Adityadham wrote: > > > > Thanks for your reply Xerxes. I made 2 different changes while > > compiling > > GNU Classpath. Both compiled successfully. > > ... > > 2. This was another variation which I tried in which I disabled gtk > > and > > default toolkil I gave of X. > > GNU Classpath > > ./configure --host=arm-xscale-linux-gnueabi --prefix=/usr/local > > --disable-examples --with-x --disable-qt-peer --disable-gtk-peer > > --disable-gconf-peer --disable-plugin --enable-alsa --disable-dssi > > --with-escher=/home/warrior/java-project/escher-0.3/src > > --enable-local-sockets --enable-collections --enable-xmlj > > --disable-Werror > > --enable-tools > > --enable-default-toolkit=gnu.java.awt.peer.x.XToolkit > > > > After transferring the above compiled gnu classpath and jamvm to > > the > > device, when I run a sample swing application, it gives me > > following > > error: > > > > Exception in thread "main" java.lang.ExceptionInInitializerError > > at > > gnu.java.awt.peer.x.XToolkit.getClasspathFontPeer(XToolkit.java:208) > > at java.awt.Font.getPeerFromToolkit(Font.java:329) > > ... > > Caused by: java.lang.NullPointerException > > at java.io.InputStreamReader.<init>(InputStreamReader.java:208) > > at java.util.Properties.load(Properties.java:380) > > at > > gnu.java.awt.font.OpenTypeFontPeer.<clinit>(OpenTypeFontPeer.java:93) > > at > > gnu.java.awt.peer.x.XToolkit.getClasspathFontPeer(XToolkit.java:208) > > > > > > I am still not able to figure out what I am missing. Can you please > > give > > me further pointers to that I can move in correct direction. > > > > Thanks > > > > The error above at > gnu.java.awt.font.OpenTypeFontPeer.<clinit>(OpenTypeFontPeer.java:93) > if you > look at the source code for gnu classpath you can see that the null > pointer > is caused by some issue for gnu classpath to locate the > font.properties > resource file, that contains a list of system fonts to use for awt > and > swing. > Most likely you have missed to copy some required file to your arm > board or > the classpath do not contain the jar containing the > resource/gnu/java/awt/font/fonts.properties . > Remember that custom gnu classpath configure setups with lots of > --enable > and --disable options are naturally much less tested by other gnu > classpath > developers compared to using the default settings without any extra > --enable > or --disable options. > $ jar tf /home/andrew/build/classpath/share/classpath/glibj.zip |grep fonts\.properties gnu/java/awt/font/fonts.properties gnu/java/awt/peer/x/xfonts.properties gnu/java/awt/peer/x/fonts.properties > None of these errors looks to be JamVM related therefore I recommend > you to > ask classpath swing setup and configure questions on the GNU > Classpath > mailinglist: > http://savannah.gnu.org/mail/?group=classpath > http://developer.classpath.org/mailman/listinfo/classpath actually. > You may want to try run JamVM in combination with the OpenJDK classes > that > also provide AWT and Swing support. > > Cheers > Xerxes > -- > View this message in context: > http://old.nabble.com/Unable-to-run-GUI-application-using-cross-compiled-jamvm-for-arm-tp35205711p35212571.html > Sent from the JamVM mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Jamvm-general mailing list > Jamvm-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/jamvm-general > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07