JPO Java Picture Organizer
Build your own with Netbeans
Start Netbeans and click the menu item
Team > Other CVS > Checkout. Into the CVS Root field paste the following:
:pserver:firstname.lastname@example.org:/cvsroot/j-poClick Next Click Finish. On the dialog that appears click Open Project. To compile and run the application press the F6 key.
Installing the source:
Do you have the prerequisites?
I've had my fair share of issues with the prerequisites. Here is how to test your set-up:
Test it with this command:
If you get something like the following it's ok, otherwise sort out your Java SDK installation first!
Check you have a working Java compiler with:
Now check that your ant works properly (and you might have to set the ANT_HOME environment variable):
Use the following command to checkout the latest cvs source from sourceforge:
You would then cd to the Jpo directory:
In order to run the unit tests (without which you can't build) you need a working JUnit installation. Check this out with the following command:
The line with "Testing if JUnit is present: true" is the key here.
Now compile the code:
And then run it with
In order to build and deply the jar files you need to generate a key with which you can sign the jar files
See the Java Web Start developers guide for details: http://java.sun.com/products/javawebstart/docs/developersguide.html
For convenience used to use a shell script that sets up my environment. I used to run it with the
#!/bin/sh JAVA_HOME=JAVA_HOME=/usr/lib64/jvm/java-1.7.0 IS_UNIX=true JAVA_KEY_STORE=/path_to_my_keystore/javaKeyStore JAVA_KEY_STORE_KEY=my_secret_key export JAVA_HOME export JAVA_DEV_ROOT export IS_UNIX export JAVA_KEY_STORE export JAVA_KEY_STORE_KEY cd /path_to_my_sources/Jpo
The following targets are supported by the ant buildfile:
Sourcefore also have some notes about downloading with cvs: http://sourceforge.net/cvs/?group_id=71359
Sourceforge has a neat tool to browse the source code which also highlights differences between version very nicely: http://j-po.cvs.sourceforge.net/j-po/
Set up Eclipse and install the CVS plug-in
File > New > Other... > expand CVS > Projects from CVS
Repository path: /cvsroot/j-po
Password: leave empty
Connection type: leave on pserver
leave radio button on "Use default port"
Use specified module name: Jpo
Put radiobutton into "Check out as a project in the workspace"
Project Name: Jpo
Next right-click on the build.xml file > Run/Debug Settings > Make sure you have a JRE selected.
To run right-click on the build.xml file and click run-as Ant Build file.
Last update to this page: 4 July 2014