erer Posted September 14, 2006 Share Posted September 14, 2006 Hi, I've problem since iReport > 1.2.3 when i double click on JRXML file i have an error "Could not find the main class. Program will exit"What is wrong? I have no idea, but when I get back to iReport 1.2.3 the problem is gone.BTW, 1.2.3 version was the first iReport version that i've installed, maybe it has something to do with that. Thanks for any replyBest regards - Emil Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted September 16, 2006 Share Posted September 16, 2006 You did some kind of association between a jrxml files and iReport. Check what is executed when you click on a jrxml file. Anyway I preatty sure that the problem is the current directory used when you start iReport: you need to use as current directory the ireport home. Giulio Link to comment Share on other sites More sharing options...
ernie Posted October 17, 2006 Share Posted October 17, 2006 I also get this error after upgrading from iReports 1.2.3 to 1.2.7. Initially with 1.2.3, ".jrxml" files were associated with iReports 1.2.3 and I could double click on a .jrxml file from the Windows Explorer and lauch iReports. After installing 1.2.7, I got the error. I uninstalled both versions. After rebooting I checked the registry. There were several references to iReports 1.2.3 left, which I didn't remove. I installed iReports 1.2.7, there were no such references to iReports 1.2.7. It appears the Windows installer no longer adds the necessary registry entries. I even tried modifying all references in the registry from iReports 1.2.3 to 1.2.7, but still get the error. Is it possible that the executable for 1.2.3 changed directories to the .exe directory before proceeding and now it no longer does? Any suggestions on getting iReport's file association back? Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted October 17, 2006 Share Posted October 17, 2006 Don't use ireport.exe, but use ireport.bat for file association. Let me know giulio Link to comment Share on other sites More sharing options...
ernie Posted October 17, 2006 Share Posted October 17, 2006 Unfortunately, that doesn't work either. The batch file returns the following: The system cannot find the path specified.'startup.bat' is not recognized as an internal or external command,operable program or batch file. Again, a problem with the working directory not being the default ("C:/Program Files/JasperSoft/iReport-1.2.7"). I 'tweaked' it to change to the actual install directory, but then you have an Command Window open for the duration of the iReport session. Apparently the 1.2.3 executable did something different in order to work properly. Any chance of getting source to iReport.exe for 1.2.3 and 1.2.7 to determine the difference? Post edited by: ernie, at: 2006/10/17 18:41Post edited by: ernie, at: 2006/10/17 18:42 Link to comment Share on other sites More sharing options...
ernie Posted October 18, 2006 Share Posted October 18, 2006 I downloaded the JSmooth package and experimented. I noticed that iReports 1.2.3 had all jars in the lib directory listed in it's "etc/ireport.jsmooth" file, and that was not the case with iReports 1.2.7 "etc/ireport.jsmooth" file. I added all the jar files in iReports 1.2.7 lib directory to it's "etc/ireport.jsmooth" file and rebuilt the executable. This seems to have done the trick in a way. The problem seems to be that if you launch the executable directly, iReports hangs at the "Loading Plugins" phase. If you double click on a .jrxml file, it loads properly. Maybe someone more familiar with the JSmooth/iReport build can find a solution :whistle: Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted October 18, 2006 Share Posted October 18, 2006 I use a modified skeleton that loads in the classpath all the content of the lib directory. See the skeleton in <ireport>/etc/skeletons Giulio Link to comment Share on other sites More sharing options...
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