I had a problem when I ant build the Buddi accounting open source software. Please do some help.
I did the following: svn co https://buddi.svn.sourceforge.net/svnroot/buddi/trunk@1801
and then I go to the workspace and do the build step: ant
But it gives me the compilation message:
compile:
[mkdir] Created dir: /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build/classes
[javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build.xml:473: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 252 source files to /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/build/classes
[javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/src/org/homeunix/thecave/buddi/Const.java:23: ?Ҳ???????
[javac] ???ţ? ?? AccountBalance
[javac] λ?ã? ?????? org.homeunix.thecave.buddi.plugin.builtin.report
[javac] import org.homeunix.thecave.buddi.plugin.builtin.report.AccountBalance;
[javac] ^
[javac] /Users/LeoLi/Documents/UMD/Master Study/Fall 2012/CMSC737/Buddi-3.4.1.3.src/src/org/homeunix/thecave/buddi/Const.java:213: ?Ҳ???????
[javac] ???ţ? ?? AccountBalance
[javac] λ?ã? ?? org.homeunix.thecave.buddi.Const
[javac] AccountBalance.class.getCanonicalName(),
[javac] ^
[javac] 2 ????
Then I tried to find AccountBalance.java inside the report directory, and no surprising, there is no such file there.
Maybe we need to do something before ant build the Buddi project?
Update: Have downloaded the version 1800, but has the compile time error as follows when built it:
[javac] /var/lib/jenkins/jobs/Buddi/workspace/build.xml:473: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 252 source files to /var/lib/jenkins/jobs/Buddi/workspace/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] /var/lib/jenkins/jobs/Buddi/workspace/src/org/homeunix/thecave/buddi/view/dialogs/ScheduledTransactionEditorDialog.java:136: error: getType() in ScheduledTransactionEditorDialog cannot override getType() in Window
[javac] public String getType(){
[javac] ^
[javac] return type String is not compatible with Type
[javac] Note: /var/lib/jenkins/jobs/Buddi/workspace/src/org/homeunix/thecave/buddi/plugin/builtin/preference/PluginPreferences.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
[javac] 1 warning
Seems like a deprecated API stuff. Previously, this method is protected, and I have changed it to be public. Not sure how to resolve this.
The author of the latest changes forgot to add a file to SVN. It happens. It is clear after commands:
svn blame src/org/homeunix/thecave/buddi/Const.java
svn log -r1800:1801
You could notify him about it. To build, use the previous revision, 1800
.
However I still have problems when windows
target is executed. So I did
ant generic
java -jar build/Buddi-3.4.1.2.jar