How to set locale in Jasksoft Studio Eclipse plugin
How do I set the locale used by the Eclipse "Jaspersoft Studio" plug-in to run reports?
There are message files for locales like 'en' and 'pt', but my system is on 'de'. So when previewing, I get:
net.sf.jasperreports.engine.JRException: java.util.MissingResourceException: Can't find bundle for base name org/uci/opus/report/messages, locale de_AT
NB: iReport has a parameter for the report locale (under options → compilation and execution), but where is this parameter in Jaspersoft Studio?
+3
source to share
1 answer
To solve this problem:
- define the report class path:
- create a folder in the JasperReports Project Explorer
- move all resource packs and JRXML.
- right click on the folder and select Build Path> Use as Source Path
MissingResourceException
will disappear when the report is run
- If you don't have specific configurable options, it might not be obvious where to change the locale:
- open the report in preview mode.
- on the left side you will see a panel with a small triangle (pin) on it: click on it, it will expand the input options panel
- at the top you will see a toolbar, the second icon from the left (report parameter) allows yoy to customize Max # of records, Locale report , report timezone
+4
source to share