Running demo apps

Gary Benson gbenson at redhat.com
Mon Apr 6 06:48:37 PDT 2009


Neale Ferguson wrote:
> Now that I have a clean build I was just trying to run a couple of
> the demo apps. For SampleTree I am seeing the following:
> 
> [neale at aussie-3 - SampleTree]
> PATH=openjdk/control/build/linux-s390x/bin:$PATH java -jar SampleTree.jar
> Exception in thread "main" java.lang.ExceptionInInitializerError
>    at java.lang.Class.initializeClass(natClass.cc:792)
>    at java.lang.Class.initializeClass(Class.h:742)
>    at java.lang.reflect.Method.invoke(Class.h:742)
>    at javax.swing.UIDefaults.getUI(UIDefaults.java:748)
>    at javax.swing.UIManager.getUI(UIManager.java:840)
>    at javax.swing.JTree.updateUI(JTree.java:1685)
>    at javax.swing.JTree.<init>(JTree.java:1572)
>    at SampleTree.<init>(SampleTree.java:105)
>    at SampleTree.main(SampleTree.java:602)
> Caused by: java.awt.IllegalComponentStateException: component java.awt.Label
> not showing
>    at java.awt.Component.getLocationOnScreen(Component.java:1361)
>    at java.awt.event.MouseEvent.<init>(MouseEvent.java:251)
>    at java.awt.event.MouseEvent.<init>(MouseEvent.java:275)
>    at javax.swing.plaf.basic.BasicTreeUI.<clinit>(BasicTreeUI.java:286)
>    at java.lang.Class.initializeClass(natClass.cc:780)
>    ...8 more

I haven't seen this one before.

> Now I'm running the app directly out of the build directory - i.e. I
> haven't done whatever the equivalent of "make install" is for the
> build (speaking of which what is the mechanism of installing the
> code?).

There isn't a "make install" for IcedTea or OpenJDK, you just run it
from the build directory.  When I'm debugging I usually use the ecj
build, to save waiting forever for a full build to complete.  So, the
first time around I do "make icedtea-against-ecj" to build everything,
then after that, when I change things I do "make hotspot" which
rebuilds only HotSpot.

Cheers,
Gary

-- 
http://gbenson.net/



More information about the zero-dev mailing list