Sorry BJ,
That's not totaly true, release4.0 should work (compile and run) with 1.5, but
should also compile and run with 1.4. This is what
mean source="1.4" in build.xml files.
Actually it works also with 1.6. It's my workstation default running java
version and the server running at
http://docs.ofbiz.org/display/OFBIZ/Alternative+Demo+Servers#AlternativeDemoServers-Release4.0 runs also with 1.6.0_03 (as you can
check in Webtools/threadList). I did not see any problems for a long time now.
Jacques
From: "BJ Freeman" <[EMAIL PROTECTED]>
that is because release4.0 does not work with 1.5 only 1.4
Hansen Wang sent the following on 2/29/2008 2:33 PM:
The follow error happen when run 'ant run-install'. I am using jdk1.5 and
ant 1.7. The problem is due to the conflict between the code and build.xml.
The code is using auto-boxing while the build.xml javac task has source="1.4".
Was I doing something wrong or this is a known issue.
Thanks,
Hansen
[javac] Compiling 33 source files to
/opt/ofbiz/release4.0/applications/order/build/classes
[javac]
/opt/ofbiz/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java:1527:
incompatible types
[javac] found : java.lang.Double
[javac] required: double
[javac] double cashAmount = cart.getPaymentAmount
(cashId);
[javac] ^
[javac] 1 error
[subant] Failure for target 'null' of:
/opt/ofbiz/release4.0/applications/build.xml
[subant] The following error occurred while executing this line: