kiboro Posted October 10, 2007 Posted October 10, 2007 When I try to run iReport.sh on CentOS (RedHat) 5 I get a NullPointerException. This has been mentioned before in this forum but with no answer. Full message and list of gcj libs follows: Errors: Exception in thread "main" java.lang.NullPointerException at java.util.Hashtable.put(libgcj.so.7rh) at javax.swing.plaf.basic.BasicToolBarUI.setBorderToRollover(libgcj.so.7rh) at javax.swing.plaf.basic.BasicToolBarUI$ToolBarContListener.componentAdded(libgcj.so.7rh) at java.awt.Container.addImpl(libgcj.so.7rh) at javax.swing.JToolBar.addImpl(libgcj.so.7rh) at java.awt.Container.add(libgcj.so.7rh) at it.businesslogic.ireport.gui.ToolbarFormatPanel.initComponents(ToolbarFormatPanel.java:170) at it.businesslogic.ireport.gui.ToolbarFormatPanel.<init>(ToolbarFormatPanel.java:57) at it.businesslogic.ireport.gui.MainFrame.<init>(MainFrame.java:486) at it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:8016) gcj rpms installed:java-1.4.2-gcj-compat-src-1.4.2.0-40jpp.112java-1.4.2-gcj-compat-1.4.2.0-40jpp.112java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.112java-1.4.2-gcj-compat-javadoc-1.4.2.0-40jpp.112libgcj-src-4.1.1-52.el5.2libgcj-4.1.1-52.el5.2libgcj-devel-4.1.1-52.el5.2 any help would be appreciated as I'll be forced to use Windows(ack!) if not.
aarias Posted November 29, 2007 Posted November 29, 2007 You are using other version java (Centos). You need sun java. check version Code:java -version locate your installation Code:[code]find / -name java Before install sun java 5 or 6 (JRE or JDK 6u3) update variables (use your apropiate path) Code:[code]export JAVA_HOME=/usr/java/jdk1.5.0_13/export PATH=$JAVA_HOME/bin:$PATH:$HOME/bin and now check versionCode:[code]java -version run iReport. it's all. :)
aarias Posted November 29, 2007 Posted November 29, 2007 You are using other version java (Centos). You need sun java. check version Code:java -version locate your installation Code:[code]find / -name java Before install sun java 5 or 6 (JRE or JDK 6u3) update variables (use your apropiate path) Code:[code]export JAVA_HOME=/usr/java/jdk1.5.0_13/export PATH=$JAVA_HOME/bin:$PATH:$HOME/bin and now check versionCode:[code]java -version run iReport. it's all. :)
qbnronin Posted March 11, 2008 Posted March 11, 2008 Are you using Linux? I had the exact same error. I had installed iReports as root and I was trying to run it as a different user. My bad, hope that helps.
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