• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Import Google JForum2 source to Eclipse

Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since JForum3 is a major upgrade, a bugfix (and minor upgrade) of JForum has been posted in a Google-based svn repository,


The downloads, for several releases, have only been been binary distributions, that is to say, JForum code has been compiled to a .jar,

appBase > WEB-INF > jforum.x.x.x.jar

though users are free to build around the webApp structure.

I've found I could get a long way with this binary download. But for a couple of items, I would have been more than happy with binary and, in other circumstances, it would be all I needed. But what if I want to go for source? What do I have to do?

The svn download of trunk displays a structure I do not recognise in in the binary. It has a .war inside a .war. Also, it has a .pom file, so builds using Maven.

I'll leave others to explain, if they wish, why the nested structure, and what might be done with Maven...?

There is a double issue here, because the aim of this post is to import JForum into Eclipse. Maybe something can be done with the source code's Maven controls? But the best way I've found to get a binary JForum into Eclipse is to generate a .war then wholesale import. That will not work with this source code. Here's what I did...

Download both a binary and a source version of a chosen svn tag

Use the published site download.

check tags,
svn list http://jforum2.googlecode.com/svn/

svn co http://jforum2.googlecode.com/svn/tags/v2.3.4

War up the binary, import into Eclipse
Navigate into the binary, then,

jar -cvf jforum-x.x.x.war *

(the name can be anything)

In Eclipse

File > import > Web > War File > Next ...

Browse for the war created earlier, and name the project, then "Finish"

Modify the new Eclipse project to work from source code
Remove this .jar from the library,

appBase > WEB-INF > jforum.x.x.x.jar

Now go into the downloaded source code, and copy the folder "net" (and all code contents) from inside source,


Using a filebrowser I pasted this into,


Then refreshed in the Eclipse File Explorer. If you trust Eclipse's copy and paste, paste the folder straight in.

Follow the usual Eclipse/JForum manual setup
Maybe check /src is set as the build folder.
Do project > build, or set to automatic.
[Right click] Server > Add/Remove
Publish the new project.

It won't work yet. Run through the steps in,


to set up a database, pre-populate the database, and set at least some basic config (now is an opportune time to change the big hash property).

Proof of accurate configuration,




my version, 2.3.4, threw an exception. It was a one line fix. In,



//Enumeration<Object> getParameterNames();
Enumeration<String> getParameterNames();

I don't want to publish this until others look at it.
author & internet detective
Posts: 41904
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Would a screenshot fo your Eclipse directory structure help?
robert crowther
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Below is a screenshot of a .war wrapped *binary* imported into Eclipse. Some modifications can be seen already (the forum being constructed has users who can probably use the custom error pages, even if they are an overhead).
[Thumbnail for eclipse_tomcat_src_labeled.jpg]
Binary war ready to convert to compiled src
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic