Menu

simple test problem

Help
Albert L.
2002-01-12
2012-04-09
  • Albert L.

    Albert L. - 2002-01-12

    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

     
    • Dawie Malan

      Dawie Malan - 2002-01-15

      jcurses.system.Toolkit looks at the location of jcurses.jar, and expects the libjcurses.dll to be in the same location.

       
    • Albert L.

      Albert L. - 2002-01-15

      thank you. i've build the jcurses.jar from src and place the dll at the same location and is working fine now.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.