开发工具是jdk +  uledit

解决方案 »

  1.   

    在我的机子上运行正常的呀。
    C:\down>java Property
    good
    Thu Oct 04 15:51:50 CST 2001
    -- listing properties --
    java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
    sun.boot.library.path=C:\Program Files\JavaSoft\JRE\1.4\bin
    java.vm.version=1.4.0-beta-b65
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    sun.os.patch.level=
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C:\down
    java.runtime.version=1.4.0-beta-b65
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    os.arch=x86
    java.io.tmpdir=E:\DOCUME~1\gxj\LOCALS~1\Templine.separator=java.vm.specification.vendor=Sun Microsystems Inc.
    java.awt.fonts=
    os.name=Windows 2000
    java.library.path=E:\WINNT\system32;.;E:\WINNT\System32...
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFac...
    os.version=5.0
    user.home=E:\Documents and Settings\gxj
    user.timezone=Asia/Shanghai
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=GBK
    java.specification.version=1.4
    user.name=gxj
    java.class.path=.;E:\bea\wlserver6.0\lib\weblogic.jar...
    java.vm.specification.version=1.0
    sun.arch.data.model=32
    java.home=C:\Program Files\JavaSoft\JRE\1.4
    java.specification.vendor=Sun Microsystems Inc.
    user.language=zh
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.0-beta
    java.ext.dirs=C:\Program Files\JavaSoft\JRE\1.4\lib...
    sun.boot.class.path=C:\Program Files\JavaSoft\JRE\1.4\lib...
    java.vendor=Sun Microsystems Inc.
    file.separator=java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...
    sun.cpu.endian=little
    sun.io.unicode.encoding=UnicodeLittle
    user.region=CN
    sun.cpu.isalist=pentium i486 i386
    ---Memory Usage:
    ToTal Memory =2031616 Free Memory = 1509872
      

  2.   

    上述代码保存为Property.java
    然后javac Property.java
    java Property.class
    运行后就出现Exception in thread "main" java.lang.NoClassDefFoundError: Property/class
    操作系统是win98.下载的是sun jdk windows版
      

  3.   

    你是不是classpath没有设置
    要把当前目录“./”加进去。这个要自己手工加
      

  4.   

    path里已经加上了C:\JDK1.4\BIN 
    文件保存目录和运行目录都在d:\javatest里。
      

  5.   

    运行java Property,java propert(不存在的文件)等等出的提示一样。
    Exception in thread "main" java.lang.NoClassDefFoundError: propert
      

  6.   

    如何设置classpath?
    在autoexec.bat的path里,我只增加了;c:\jdk1.4\bin,其它没变。
      

  7.   

    set classpath=c:\jdk\lib;
    set path=c:\jdk\bin;
    把以上两句加到atuoexec.bat里~
    然后javac Property.java
    把编译好的CLASS文件放到CLASSPATH里
    java Property
    就可以啦~