怎么在eclipse编译jforum啊,把源码导入进开发环境还是不行啊,我想在本地修改文件查看修改结果就是2次开发。这个要怎么做?谢谢
jforum is generally built by the build.xml ant script. However, it's no hard to set up eclipse to compile jforum. First, in the Eclipse build properties, you need to tell Eclipse that the src directory is a source directory. For convenience, you'll want to set the classes directory to the WEB-INF/classes directory. Next, you'll need to add all the jars that jForum is dependant on. The easy way to do this is to get the source distribution zip. It should have all the jars in it. Add all the jars in the WEB-INF/lib directory to your build path. Then add the jars in the lib directory (these are things that are not needed in production or provided by the app engine. You can either point to them in some external location or just import them into your Eclipse project. If you're using Tomcat, one trick is to set up a jforum.xml context file in your config/Catalina/localhost directory so that the jforum webapp context uses your Eclipse root directory for it's doc directory. If you have Tomcat set up to autoload on class changes, this make for a nice development environment.

解决方案 »

  1.   

    jforum is generally built by the build.xml ant script. However, it's no hard to set up eclipse to compile jforum. 
    一般是用ant脚本build.xml编译,但你用eclipse来编译也不难First, in the Eclipse build properties, you need to tell Eclipse that the src directory is a source directory. For convenience, you'll want to set the classes directory to the WEB-INF/classes directory. 
    首先,eclipse的build properties等要设置正确 比如src文件夹,classes文件夹Next, you'll need to add all the jars that jForum is dependant on. The easy way to do this is to get the source distribution zip. It should have all the jars in it. 
    其次,加入所有依赖jar包Add all the jars in the WEB-INF/lib directory to your build path. Then add the jars in the lib directory (these are things that are not needed in production or provided by the app engine. You can either point to them in some external location or just import them into your Eclipse project. 
    把所有lib文件夹下jar包都加入你的build pathIf you're using Tomcat, one trick is to set up a jforum.xml context file in your config/Catalina/localhost directory so that the jforum webapp context uses your Eclipse root directory for it's doc directory. If you have Tomcat set up to autoload on class changes, this make for a nice development environment.
    如果你使用的是tomcat,一个技巧是把jforum.xml放在 config/Catalina/localhost 文件夹下,这样jforum网络程序上下文环境就会使用eclipse的根目录作为它的文档目录,如果tomcat自动加载类变化,就更好了