Hello,
Just tried to start JDAI 0.4 on Windows 2000 SP4 (using
java -jar jdai.jar). This was the stacktrace I was
presented with:
Exception in thread "main" java.lang.NullPointerException
at
dk.jdai.gui.JdaiSectionTreeModel.getSubSectionsCached
(JdaiSectionTreeModel.java:94)
at dk.jdai.gui.JdaiSectionTreeModel.getChildCount
(JdaiSectionTreeModel.java:44)
at dk.jdai.gui.JdaiSectionTreeModel.isLeaf
(JdaiSectionTreeModel.java:64)
at javax.swing.JTree.setModel(Unknown Source)
at javax.swing.JTree.<init>(Unknown Source)
at dk.jdai.gui.JdaiDroppableTree.<init>
(JdaiDroppableTree.java:37)
at dk.jdai.gui.JdaiSectionTree.<init>
(JdaiSectionTree.java:63)
at dk.jdai.gui.JdaiSectionTree.<init>
(JdaiSectionTree.java:80)
at dk.jdai.gui.JdaiExplorer.<init>
(JdaiExplorer.java:70)
at dk.jdai.gui.JdaiExplorer.main
(JdaiExplorer.java:405)
My Java -version replies:
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
Greetings,
Martijn
weisbeek@hotmail.com
Logged In: NO
Sorry, I already solved this problem myself. I did not yet read
that Jaa 1.4 was required. After pointing my system to the
1.4-JVM it worked fine.
Perhaps a nice feature for the next release: check what
version of JVM one is using to run JDAI and then stop or
continue. Then you can print a nice error-message instead of
this ugly stacktrace.
Or see whether you really need >= 1.4 and whether it cannot
be done wit a some functions from older Java-versions.
Greetings,
Martijn
weisbeek (at) hotmail.com