Jump to content

cannot resolve symbol class MathContext


llaconde

Recommended Posts

hello everybody,

 

I'm using the method divide in my report.

When i compile it in iReport there is not problem but when I try to generate my report in my java code I have the following error:

cannot resolve symbol

symbol : class MathContext

..........

cannot resolve symbol

symbol : method divide (java.math.BigDecimal)

location: class java.math.BigDecimal

 

Does this mean I miss a jar or something?

 

Thank you.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I resolve my problem.

I'm not using the same JDK, (1.4.2 instead of 1.5) so I'm not allowed to use MathContext, I have to use the ROUND_.... of BigDecimal and also the divide method is different between the two JDK versions.

Sorry for bothering...

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...