[#3593] - iReport Designer cannot open in JDK 8

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Cannot open iReport Designer with JDK 8

Error found in log:
java.lang.IllegalStateException: java.lang.IllegalAccessException: Class org.openide.util.WeakListenerImpl$ProxyListener can not access a member of class org.openide.filesystems.$Proxy0 with modifiers "public"
at org.openide.util.WeakListenerImpl$ProxyListener.<init>(WeakListenerImpl.java:413)
at org.openide.util.WeakListenerImpl.create(WeakListenerImpl.java:154)
at org.openide.util.WeakListeners.create(WeakListeners.java:268)
at org.openide.filesystems.MultiFileObject.<init>(MultiFileObject.java:116)
at org.openide.filesystems.MultiFileObject.<init>(MultiFileObject.java:133)
at org.openide.filesystems.MultiFileSystem.getMultiRoot(MultiFileSystem.java:251)
at org.openide.filesystems.MultiFileSystem.getRoot(MultiFileSystem.java:236)
at org.netbeans.core.startup.ModuleSystem.<init>(ModuleSystem.java:112)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:155)
at org.netbeans.core.startup.Main.start(Main.java:312)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalAccessException: Class org.openide.util.WeakListenerImpl$ProxyListener can not access a member of class org.openide.filesystems.$Proxy0 with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:101)
at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:295)
at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:287)
at java.lang.reflect.Constructor.newInstance(Constructor.java:398)
at org.openide.util.WeakListenerImpl$ProxyListener.<init>(WeakListenerImpl.java:403)
... 11 more

--Running Environment Info--

Oracle JDK:
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

OS:
Windows 8.1 Pro 64-bit

v5.5.1
joeydaowang's picture
Joined: Apr 28 2014 - 3:42pm
Last seen: 5 months 1 week ago

9 Comments:

#1
  • Assigned:nobody»

Me too. My system is:

OS: Ubuntu Linux 14.04
IReport 5.6.0
Java 1.8.0_11-b12

The missing class seem to have something to do with the netbeen ide environment.
I hope we don't have install netbean to run the thing.

#2
  • Resolution:Open» Works as Designed
  • Status:New» Resolved
  • Assigned:» anonymous

That's simple because JasperReports still does not support JDK 8.

#3
  • Severity:Minor» Major
  • Resolution:Works as Designed» Reopened
  • Status:Resolved» Feedback Requested

It appears the NetBeans has been hit with the same problems with respect to JDK8/openide being incompatable.
See Bug 229191 - Cannot start NetBeans on JDK8 because ISE occurs

The problem got a P1 Priority in NetBeans. Any clues as how to make the same fix in iReport. Is it just a matter of getting a new openide jar from netbeans?

#4
  • Resolution:Reopened» Won't Fix
  • Status:Feedback Requested» Resolved

Development of iReports has already ended and Jaspersoft has encouraged users to switched to Jaspersoft Studio.
FYI, Jaspersoft Studio does work with JDK8.

#5

1.- install JDK 1.7,
2.- Change this line

#jdkhome="/path/to/jdk"

into {IREPORT_HOME}\etc\ireport.conf

for this:

jdkhome="{YOUR_JAVA_1_7_HOME}"

for example:

jdkhome="C:\Archivos de programa\Java\jdk1.7.0_71\jre"

(Don't forget delete sharp caracter)

#6
  • Assigned:anonymous» giulio
#7

setting the jdkhome to jdk1.7 works great

#8
  • Resolution:Won't Fix» Open
  • Status:Resolved» New
  • Assigned:nobody»

I have install ireport 5.6.0 When starting a logo appear and then disappear. irport is not starting. What should I do.

#9

Hi Nad436, iReport development has been stopped in favor of Jaspersoft Studio several years ago. Anyway, I assume iReport may not work with java 1.8, but the problem may also be different. In your home directory you should find an ide log which may tell you what the problem is (something like <user home>/ireport/var/log.
You may also want to try to run iReport from the command line in order to have some kind of output.

Thank you

Giulio

Feedback
randomness