Menu

NullPointerException

Help
brian
2003-06-11
2003-06-24
  • brian

    brian - 2003-06-11

    hi everyone

    when i run the marsproject batch file,
    it creates a new simulation then says:
    exception in thread "main" java.lang.NullPointerException

    when i tried "java -cp . MarsProject" from DOS i got
    exception in thread "main"
    java.lang.NoClassDefFoundError: com/microstar/xml/Handlerbase

    i have also tried including all directories but no luck
    sorry but im kinda new to java
    thanks for your help

    Brian

     
    • brian

      brian - 2003-06-11

      this was using winxp, and latest J2RE

       
    • Scott Davis

      Scott Davis - 2003-06-24

      Brian,

      There are a couple of JAR files you'll need to include in the classpath.  Here's the line we use in the script to start it:
      java -classpath .;jars\jfreechart.jar;jars\aelfred.jar MarsProject

      Note: Be sure to put the application in a directory with no spaces in its name and has no parent directories with spaces in their names.  This causes the program not to find data files properly.

      Let me know if this helps,

      Scott Davis
      Mars Simulation Project
      http://mars-sim.sourceforge.net
      scud1@users.sourceforge.net

       

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.