alisson_gomesc Posted December 5, 2007 Share Posted December 5, 2007 Hi,Im using jasper/ireport 2.0.1, compile whitouterrors, but in execute error occur with BigDecimal relations. I thinking is because the contructor: jdk 1.5BigDecimal(String val) BigDecimal(double val) BigDecimal(long val) BigDecimal(int val) jdk 1.4BigDecimal(String val) BigDecimal(double val) How way fix this? somebody known? Thanks. Link to comment Share on other sites More sharing options...
ojha Posted December 5, 2007 Share Posted December 5, 2007 u sould first compile with jdk 1.5then try to run Link to comment Share on other sites More sharing options...
alisson_gomesc Posted December 5, 2007 Author Share Posted December 5, 2007 Sorry, I forget say my system execute in jdk 1.4. There solution is: new BigDecimal(0)->new BigDecimal(0.0)ornew BigDecimal(0)->new BigDecimal("0") Extra cautionnew BigDecimal($F{mybigDecimal}.doubleValue()/100) -> new BigDecimal($F{mybigDecimal}.doubleValue()/100.0) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now