×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / Jabber,"Exception in thread “main” java.lang.NoClassDefFoundError: Property " still exists
    本文发表在 rolia.net 枫下论坛Hi,Jabber,
    Thank you for your help.
    I've followed your instructions. But the problem(Exception in thread “main” java.lang.NoClassDefFoundError: Property
    ) still exists. I'v no idea what's wrong.

    The following is my BAT file:
    c:\windows\alsinit.exe

    Rem TShoot: SET PATH=C:\CWW\BIN;C:\ORAMGR\ORA81\BIN;C:\ORACLE\ORA81\BIN;"C:\PROGRAM;FILES\ORACLE\JRE\1.1.7\BIN";C:\SYBASE\POWERD~1\WIN32;C:\PROGRA~1\BORLAND\DELPHI5\BIN;C:\PROGRA~1\BORLAND\VBROKER\BIN;C:\PROGRA~1\BORLAND\VBROKER\JRE\BIN;C:\PROGRA~1\BORLAND\DELPHI5\PROJECTS\BPL

    SET PATH=C:\ORAMGR\ORA81\BIN;C:\ORACLE\ORA81\BIN;"C:\PROGRAM;FILES\ORACLE\JRE\1.1.7\BIN";C:\SYBASE\POWERD~1\WIN32;C:\PROGRA~1\BORLAND\DELPHI5\BIN;C:\PROGRA~1\BORLAND\VBROKER\BIN;C:\PROGRA~1\BORLAND\VBROKER\JRE\BIN

    Rem TShoot: SET CLASSPATH=C:\PROGRA~1\BORLAND\VBROKER\lib\vbcpp.jar;.

    SET CLASSPATH=.;C:\PROGRA~1\BORLAND\VBROKER\lib\vbcpp.jar

    rem PATH=%PATH%;"C:\Program Files\Mts"

    set path=c:\jdk1.3\bin;c:\jdk1.3\lib;%PATH%

    Rem TShoot: set path=%path%;c:\jdk1.3\lib;c:\jdk1.3\jre更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • JBuilder does not allow spacebar in the PATH and CLASSPATH!!!!!!!!!
      本文发表在 rolia.net 枫下论坛If you install JBuilder, do not install it under
      C:\Programm Files\... because Jbuilder does not allow spacebars in the PATH can CLASSPATH.

      Just install in under C:\Jbuilder... using default directory.

      I am confused by you. I don't know what you have done. Did you use Jbuiler or JDK to compile your java sources?

      Definitely, your problem is a CLASSPATH problem. Now let me help you figure how the
      problem arose.

      Suppose you issued the command "java Hello" at C:\myproject. According to your CLASSPATH, Java virtual machine first tried to find Hello.class at C:\myproject because
      the current directory "." is now equalt to C:\myproject. Then, virtual machine tried to find Hello.class in the C:\PROGRA~1\BORLAND\VBROKER\lib\vbcpp.jar, which is
      the second entry in your CLASSPATH. OF course, it failed. At this stage, you are thrown an error message java.lang.NoClassDefFoundError:

      You CLASSPATH setting is incomplete.

      By the way, your BAT file is full of garbage. You defined and commented PATH and CLASSPATH many times in your .bat file.
      I sugguest you remove all the Remarks there.

      We had better have a simple life. Here is a
      sample setenv.bat file:

      set PATH=C:\JDK1.2.2\bin;
      set CLASSPATH=.; C:\project;C:jlibraries

      Just a few lines.

      On the other hand, JBuilder forms a closed environment. It uses its own JDK... It does not interfere with your JDK.

      Good luckl.更多精彩文章及讨论,请光临枫下论坛 rolia.net