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

john_1

Members
  • Posts

    2
  • Joined

  • Last visited

john_1's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I have written some custom Java code using Eclipse and Java 1.7.0_u17 on Windows 7, to provide special formatting in an iReport. It's nothing very special, and uses quite standard Java functions that should run under any moderately recent version of Java. When I deploy the report and the custom code to JasperServer and try to run it, I get a runtime error (major/minor version error 51.0) which seems to suggest that there's a version incompatibility between what JasperReports Server is running (which seems to be Java v1.6_u20) and either the custom code .jar, or my report designed in iReport 5.0.1 for Windows, also which I guess is also using Java 1.7.0_u17 as I think that's the only version on the Windows machine. How can I get JasperServer to use the (installed) Java 1.7, which is in /usr/java/default/java (the same as /usr/java/jdk1.7.0_17) ? I've tried editing /scripts/setenv.sh and also /apache-tomcat/scripts/ctl.sh, to set the variables JAVA_HOME and JRE_HOME, but to no effect - tomcat still shows JRE_HOME as [jasperinstall]/java (or /opt/jasperreports-server-cp-5.0.0/java). Should I set the environment variables $JAVA_HOME and $JRE_HOME instead? If so, how do I do that so they are set permanently and will survive a server reboot? Or should I just recompile and re-package the custom code in Eclipse under Java 1.6_u20 to match JasperReports Server? Thanks in advance for any advice to help me resolve this error. John McC
  2. I've apparently successfully 'installed' ireport on a Linux (CentOS 5.x) server, which is running 'headless' without a graphics environment. When I try to run it from a remote SSH login, using the command ./ireport in the /bin directory I get a warning DISPLAY Environment Variable not set. I guess this means that the graphics output doesn't know where to go. How do I use this copy of iReport from a remote Windows terminal or browser? Do I need some sort of X-Windows client? Alternatively, how can I run a pre-designed report from the command line, or a click on a button in a web browser pointing to the site? In particular, I'm trying to connect it to an application in Wavemaker running on the same server, which maintains the database that I am using iReport to generate reports from. I've had no trouble installing or using iReport on Windows to design and view reports; now I want to do it remotely on the server, but can't find any relevant instructions that I can understand for how to do this. Thanks if anyone can point me to an existing post on this subject, or advise me directly. John McC [LATER] Maybe I'm asking the wrong question. To deploy reports designed in iReport (v5.0.1) on Windows, should I be installing JasperServer on Linux instead of seeing how to use iReport on Linux? John McC
×
×
  • Create New...