JMTF - JAR execution error

Help
benryanau
2011-12-04
2013-04-15
  • benryanau
    benryanau
    2011-12-04

    Firstly, great idea! Been looking for something like this for years.

    Unfortunately this build won't execute for me (and google tells me others have this issue too).
    While I'm (deliberately) ignorant of Java I know enough to get around, sadly I can't get JMTF to work.
    My environment is Win2k3 x32, path variables are correct.

    Here's my JRE info, and a dump of the errors I get when trying to run the JAR and the run.bat from the src.

    C:\temp>java -showversion
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

    C:\temp>java -jar jmtf.jar
    Exception: java.lang.NullPointerException
    java.lang.NullPointerException
            at java.io.RandomAccessFile.<init>(Unknown Source)
            at java.io.RandomAccessFile.<init>(Unknown Source)
            at com.codechimp.jmtf.JMTFReader.readMTFFile(Unknown Source)
            at com.codechimp.jmtf.JMTFReader.main(Unknown Source)

    C:\temp>

    C:\temp>java -cp ./bin com.codechimp.jmtf.JMTFReader
    Exception in thread "main" java.lang.NoClassDefFoundError: com/codechimp/jmtf/JM
    TFReader
    Caused by: java.lang.ClassNotFoundException: com.codechimp.jmtf.JMTFReader
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: com.codechimp.jmtf.JMTFReader.  Program will exit