i've downloaded jcurses 0.9.3 and try with a simple test. It compiles without problem, but won't run. I'm testing with the source version and place the dll in a pathed directory (tried c:\windows; and elsewhere such as jre's lib ). BTW, the precompile jcurses.jar is empty, thus I didn't set CLASSPATH to it.
The included jcurses.tests.Test also won't run. All src java compile without any error message.
my os : win98
jdk version 1.3.1_01 and 1.4.0 beta 3.
I'm suspecting I may have place wrongly the dll file.
Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.Null
PointerException
at jcurses.system.Toolkit.getLibraryPath(Toolkit.java:237)
at jcurses.system.Toolkit.<clinit>(Toolkit.java:71)
at jcurses.system.InputChar.<clinit>(InputChar.java:25)
at jcurses.widgets.Window.<clinit>(Window.java:209)
at testwin.main(testwin.java:7)
with jdk1.4
Exception in thread "main" java.lang.ExceptionInInitializerError
at jcurses.system.InputChar.<clinit>(InputChar.java:25)
at jcurses.widgets.Window.<clinit>(Window.java:209)
at testwin.main(testwin.java:7)
Caused by: java.lang.NullPointerException
at jcurses.system.Toolkit.getLibraryPath(Toolkit.java:237)
at jcurses.system.Toolkit.<clinit>(Toolkit.java:71)
... 3 more
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello,
i've downloaded jcurses 0.9.3 and try with a simple test. It compiles without problem, but won't run. I'm testing with the source version and place the dll in a pathed directory (tried c:\windows; and elsewhere such as jre's lib ). BTW, the precompile jcurses.jar is empty, thus I didn't set CLASSPATH to it.
The included jcurses.tests.Test also won't run. All src java compile without any error message.
my os : win98
jdk version 1.3.1_01 and 1.4.0 beta 3.
I'm suspecting I may have place wrongly the dll file.
// testwin.java ------------
import jcurses.widgets.Window;
public class testwin {
public static void main(String[] para) {
Window win = new Window( 10,10, 20,20, true, "Win" );
win.show();
}
}
// --------------------------
with jdk 1.3
Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.Null
PointerException
at jcurses.system.Toolkit.getLibraryPath(Toolkit.java:237)
at jcurses.system.Toolkit.<clinit>(Toolkit.java:71)
at jcurses.system.InputChar.<clinit>(InputChar.java:25)
at jcurses.widgets.Window.<clinit>(Window.java:209)
at testwin.main(testwin.java:7)
with jdk1.4
Exception in thread "main" java.lang.ExceptionInInitializerError
at jcurses.system.InputChar.<clinit>(InputChar.java:25)
at jcurses.widgets.Window.<clinit>(Window.java:209)
at testwin.main(testwin.java:7)
Caused by: java.lang.NullPointerException
at jcurses.system.Toolkit.getLibraryPath(Toolkit.java:237)
at jcurses.system.Toolkit.<clinit>(Toolkit.java:71)
... 3 more
jcurses.system.Toolkit looks at the location of jcurses.jar, and expects the libjcurses.dll to be in the same location.
thank you. i've build the jcurses.jar from src and place the dll at the same location and is working fine now.