把a,或者a的jar(zip)加到你的classpath里
然后在b的程序开头写
import a.*;

解决方案 »

  1.   

    我是刚刚接触JBUILDER,不明白你的说法具体应该怎么操作,再详细点点好!
      

  2.   

    1、首先你的工程A中的类要属于某个包,使用package语句;
    2、可以将工程A的类打入.jar文件,当然要包括package语句所指定的目录,设classpath指向.jar文件;
    3、或者直接设classpath指向package语句所指定的目录
    4、在B中使用import语句。
      

  3.   

    把你的类打成jar包,然后加入到你的新工程中就可以了呀
      

  4.   

    可是我不知道用什么工具打成jar,当然更不知道怎么用什么classpath之类的了,你们就当我什么都不知道,只精通JAVA语言而已,关于JBUILDER的环境是一窍不通,这样的前提下,再给我个好解答吧,要快!!
      

  5.   

    将A的类建立一个包,例如a,然后再b的第一行写:import a.*;
      

  6.   

    选择导出,在格式的地方选择.jar 文件,就可以了
      

  7.   

    打包成jar的方法:Tools->Archive wizard->select the basic ....Then your can add the jar to the other project:
    In the left preject viewer, right click to the root directory,in the context mene, select the properties, then you can see the list of "Required libraries" label, here press the "Add" button to add the jar to the project by the wizard.
    Ok, if you don't know yet, you can ask me for help, I will send you the .doc documentation(as this doc has picture and I can't put it here) by the email([email protected]), the documentation is written by someone who has provide the database develop package.
      

  8.   

    我用的是JB 7,找到了Archive wizard选项,但一步一步走下去完成后,怎么也找不到那个生成的.jar文件?
      

  9.   

    In the project's root direcotry, Just now, I have make a mistake.Wizard -> archive build...
      

  10.   

    我在工程A中生成了a.jar,将a.jar复制到f盘的根目录,f盘的根目录有另外一个工程B的文件夹:F:\B,在jbuilder的环境中,当前的工程是B,怎样在工程B中使用a.jar??我是一个菜鸟,请各位大侠详细的写出步骤或语句,急用,谢了!!!
      

  11.   

    我也来问一个怎样改变jButton的大小。我怎么也实现不了!!!!
    刚接触JAVA。
    谢谢了!