Jump to content
JasperReports Library 7.0 is now available ×

iReport.sh NullPointerException in libgcj


kiboro

Recommended Posts

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

java-1.4.2-gcj-compat-1.4.2.0-40jpp.112

java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.112

java-1.4.2-gcj-compat-javadoc-1.4.2.0-40jpp.112

libgcj-src-4.1.1-52.el5.2

libgcj-4.1.1-52.el5.2

libgcj-devel-4.1.1-52.el5.2

 

any help would be appreciated as I'll be forced to use Windows(ack!) if not.

Link to comment
Share on other sites

  • 1 month later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 version

Code:
[code]java -version

 

run iReport. it's all.

 

:)

Link to comment
Share on other sites

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 version

Code:
[code]java -version

 

run iReport. it's all.

 

:)

Link to comment
Share on other sites

  • 3 months later...

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