Menu

tokentool-1.0M2.b4.jar Manifest mismatch

Help
byrdca
2006-11-09
2013-05-23
  • byrdca

    byrdca - 2006-11-09

    Just wanted to mention to anyone who may be having class not found issues with tokentool-1.0M2.b4.jar from the zip release that the reason for the error is an incorrect entry in the MANIFEST file.

    If you type:  java -jar tokentool-1.0M2.b4.jar
    and get the following message

    Exception in thread "main" java.lang.NoClassDefFoundError: net/rptools/common/swing/ImagePanelModel

    you should update the MANIFEST.MF file.  First extract the manifest from the jar file and open it in a text editor, you will see the following:

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.5
    Created-By: 1.5.0_04-b05 (Sun Microsystems Inc.)
    Main-Class: net.rptools.tokentool.TokenTool
    Class-Path:    lib/rplib-1.0.b1.jar   lib/looks-1.3b1.jar

    You need to change Class-Path entry to read:

    Class-Path:    lib/rplib-1.0.b6.jar   lib/looks-1.3b1.jar

    Once that has been done update the jar file in the following way:

    jar umf <modified-manifest-filename> tokentool-1.0M2.b4.jar

    where <modified-manifest-filename> is the name of the newly updated manifest file.

     
    • Trevor Croft

      Trevor Croft - 2006-11-09

      Thanks for the note :)  Actually that's an oooooold file, check out the latest happenings in our new forums: http://forums.rptools.net/index.php

       
    • byrdca

      byrdca - 2006-11-09

      Sorry I realized too late how dated the last comments here were.  I'll check out the new forum.

       

Log in to post a comment.