java class path错误,将这个设置到你的工作目录

解决方案 »

  1.   

    classpath设置错误改为:.;c:\jbuilder6\jdk1.3.1\lib\dt.jar;c:\jbuilder6\jdk1.3.1\lib\tools.jar;c:\jbuilder6\jdk1.3.1\lib\dt.jar;c:\jbuilder6\jdk1.3.1\jre\lib
      

  2.   

    把你的程序(.class)加入当前的classpath
      

  3.   

    public static void  main(String[] args) {
       Applet1 applet = new Applet1();
        applet.isStandalone = true;
        Frame frame;
        frame = new Frame() {
          protected void processWindowEvent(WindowEvent e) {
            super.processWindowEvent(e);
            if (e.getID() == WindowEvent.WINDOW_CLOSING) {
              System.exit(0);
            }
          }
          public synchronized void setTitle(String title) {
            super.setTitle(title);
            enableEvents(AWTEvent.WINDOW_EVENT_MASK);
          }
        };
        frame.setTitle("程序示例");
        frame.setResizable(false);
        frame.add(applet, BorderLayout.CENTER);
        applet.init();
        applet.start();
        frame.setSize(540,480);
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
        frame.setVisible(true);
      }
      

  4.   

    各位大侠,我用的不是Jbuilder,是IBM公司的一个JAVA的产品。
    我试过改了,可是不行,我的机器里搜都搜不到dt.jar 
    呜~~~~~~~~~~~
      

  5.   

    搞掂啦。这个工具不用加什么path的。