Contributed by Niel Drummond
Start eclipse, and use the default (or a new) workspace.
Download the files jbilling-1_0_3.zip and jbilling-1_0_3-src.zip from the download page.
Alternatively, instead of the downloading jbilling-1_0_3-src.zip package you can also use subversion (which you will need if you want to contribute). Yang has written an excellent guide on this in a previous forum post, but I will re-iterate the steps here. You will still need jbilling-1_0_3.zip, because it contains dependencies.
Unzip the binary package into the workspace directory. Do _not_ create the project in eclipse beforehand, and do _not_ import the zip file into eclipse. Unzip the source package in the workspace directory, overwriting any existing files. You should now have a directory ~/workspace/jbilling/ with a load of stuff underneath.
If you wish to use subversion instead, in *nix/Mac you would enter something like this:
cd ~/workspace/jbilling
svn co https://svn.sourceforge.net/svnroot/jbilling/trunk src
In windows you would use the TortoiseSVN to download the trunk URI into the src directory (see the Yang post).
Now create the project in eclipse, and name it "jbilling" (all lowercase, like the directory). It will ask you whether to integrate the existing files, so click Finish.
This will automatically build library links for eclipse's code checking feature. However, you may notice some of the code still doesn't check properly. You will need to add some additional external libraries. Some of these libraries will only appear once the application is byte compiled.
Find build.xml in the Package Explorer of eclipse under the src/ directory. Context click the file and select Run -> Ant Build. If you have difficulties at this stage see the notes.
After a compile, you should be able to bind the necessary libraries to the eclipse interface. Select the jbilling directory in the Package Explorer, context click and select Properties -> Java Build Path -> Libraries -> Add External JARs...
You need to browse down jbilling tree to %JBILLING%/src/libs/client/WEB-INF/lib and add these three files:
struts.jar
commons-beanutils.jar
commons-validator.jar
You now need to browse into your eclipse folder. This is usually something like /usr/lib/eclipse in *nix, or C:/Program Files/Eclipse-SDK on Windows. Then %ECLIPSE%/plugins/org.apache.ant_1.6.2/lib and select the following three files:
ant-apache-log4j.jar
ant-commons-logging.jar
ant-javamail.jar
Once this is all done eclipse should be setup
* Notes: I had a series of errors appear during compile. Apparently there are two versions of build.properties in the source package. Make sure you overwrite all files when you extract the source package. I also got a strange error related to
%JBILLING%/server/jbilling/deploy/jbossweb-tomcat50.sar/ROOT.war
and had to remove the directory manually. As usual, YMMV
Submitted by cocoy on Tue, 2006-09-12 19:16.
Hi,
I been doing some testing my JBossIDE in my linux box
Using JBossIDE(includes Eclipse3.2)
I might missed something on the way, so please beware :)
JBilling project using JBOSS IDE:
-------------------------------
1. Download jbilling server and source(via svn command)
2. Open New Project-> J2EE1.4 Project -> Click Next
a. Project name type jbilling
b. Location: browse your jbilling directory.
ex. /home/cocoy/sf/jbilling
c. Click Next, then click Finish.
3. On Properties-> Builders -> Uncheck Validation
(I've unchecked this to skip html/xml/jsp validations)
a. Click new builder -> choose Ant -> type jbilling_builder for Name.
b. Browse workspace, find src/build.xml
c. Set the ANT Targets for clean, build etc.
d. click OK.
e. On Builders -> choose jbilling_builder -> click Move Up
f. Click ok.
4. Click Project-> Build All.
JBoss Server inside JBOSS IDE:
-----------------------------
1. Click windows-> Customize ->Perspective-> Click ShortCut-> check Server
2. Creating new Server Configurations:
File-> New -> Server -> Choose JBoss Inc -> JBoss3.2
a.) Unique Identifier: Jboss3.2
b.) Jboss home directory: /home/cocoy/sf/jbilling
c.) Click Finish
3. Show JBoss Server View:
Window-> Show Perspective-> Other-> Server-> JBoss Server View
4. Start your jboss inside jbilling,
From your JBoss Server View, Right click JBoss and choose start.
cheers,
cocoy