Jump to content
We've recently updated our Privacy Statement, available here ×

Running iReport on OS/X with Oracle JDK7


wethippie

Recommended Posts

With the oracle JDK installed it appears that iReport is not functioning correctly due to some class or AWT changes.  The Quit iReport menu item doesn't work at all, and there's no Preferences option on the application menu. Preferences don't appear to show up anywhere else on menus that I can find either. To quit the application, I have to use Force Quit.  My install is required to use Java7 due to the integration of some third party Java custom data sources, so using the stock Java 6 that comes with OS/X doesn't help at all. Right now, to do any configuration, I have to hand-edit the ireport.properties file. I've tried several tips, such as manually setting a few command line parameters to try to get it to understand that this is a normal JDK version, not the Apple platform version, but none seem to help.

Any suggestions on how to get this thing functioning like it should? Attached is a screen grab of the app menu showing the missing bits.

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

I don't know which version of iReport you are using but this will works with all the 4.x and 5.x versions. I had iReport installed on my Mac before the Java7 update so I did not see any issues. What you can do is tell iReport to use the 1.6 or 1.5 JDK or JRE

If you go to your application folder Applications/iReportPro-5.0.0/. Right click on Jaspersoft iReport Designer Professional.app and select "Show package Contents".

Once there navgate to /Contents/Resources/ireportpro/etc/ and open ireportpro.conf in your favorite text editor. And edit the default JDK/JRW location to point to the Previous JDK/JRE version. Sample below:

 

---
# ${HOME} will be replaced by user home directory according to platform
default_userdir="${HOME}/.${APPNAME}/5.0.0"
default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/5.0.0"
 
# options used by the launcher by default, can be overridden by explicit
# command line switches
default_options="-J-Xms24m -J-Xmx512m -J-Dorg.netbeans.ProxyClassLoader.level=1000 -J-XX:MaxPermSize=256m"
# for development purposes you may wish to append: -J-Dnetbeans.logger.console=true -J-ea
 
# default location of JDK/JRE, can be overridden by using --jdkhome switch
jdkhome="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home"
 
# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#extra_clusters=
---
Link to comment
Share on other sites

I saw that it got released a few days ago. Shied away from 1.x because it was horribly unstable, particularly for use with business users. I'm going to give it a go and see if the stability is better. Will report back in a few days.

 

The dependencies are on a collection of custom query executors and data sources. Thankfully no query designers or stuff at the desktop tool level that would need to be ported.

Link to comment
Share on other sites

  • 11 months later...

iReport Designer 5.5.0 com jdk 7

No Mac OS X Maverick, altere o arquivo ireport.conf no diretorio /Applications/Jaspersoft iReport Designer.app/Contents/Resources/ireport/etc

Altere a linha  #jdkhome="/path/to/jdk"

para  jdkhome="/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home"

 

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...