You are not logged in.

Search results

Search results 1-20 of 24.

Thursday, June 3rd 2010, 9:39am

Author: Roger L

Jabaco and izPack

Unpacked the jar files for JasperReports - then re-jar'd them with compression. The jar files were slightly larger. Then rebuilt my izPack installer with Pack200 compression. Same old problem - nice small 2Mb installer (8Mb without the Pack200) - but my executable jar installed was 15Mb compared to 8Mb in the original. If I make the installer without Pack200 compression I get an 8Mb installer still, but only an 8Mb executable jar installed. In all cases my app worked fine. As I'm not that unhapp...

Wednesday, June 2nd 2010, 10:12am

Author: Roger L

Jabaco and izPack

Thanks, I'll do as you suggest! Roger L

Tuesday, June 1st 2010, 11:47pm

Author: Roger L

Jabaco and izPack

That sounds sensible. I'll also contact the Jasper people to suggest that they rename the files - I can't be the only person to use izPack with the Jasper Report Viewer etc. As a newby to the java environment can you expand on the re-jar process - or point me somewhere I can read up on it. Thanks Roger L

Tuesday, June 1st 2010, 12:26pm

Author: Roger L

Jabaco and izPack

Resolved (sort of) the issue with files being twice the size (roughly) when installed from izPack compared to the original files (particularly the jar file from the Jabaco project). If I turn pack200 off in izPack then while the installer is much bigger (about 4X), the files installed on the target machine match the size of the originals. Obviously a problem with pack200 in izPack. Roger L

Tuesday, June 1st 2010, 3:16am

Author: Roger L

Jabaco and izPack

Problem resolved. 1/ JasperReports has LICENSE.txt and NOTICE.txt in the META-INF folder of many (but not all) of its .jar files. It also has some files duplicated between .jars (in particular some of the collections files appear in both the collections and beanutils .jar files that are needed to show a Jasper Report in a Jabaco project. (in org.apache.commons.collections) 2/ When Jabaco builds a .jar file for the project it includes the duplicated files. This does not affect the ability of the ...

Tuesday, June 1st 2010, 12:09am

Author: Roger L

Jabaco and izPack

Went back to Basics! I removed all references to JasperReports in my project and tried again - no duplicated files in the Meta-INF - created the installer OK and it works 'as advertised'. So the problem appears to be an incompatability between izPack and Jasper Reports. Going forward it would appear that I have 3 options - find an alternative for izPack, find an alternative for Jasper Reports, or try to find a way to fix the .jar file produced by Jabaco so that izPack will work with it (ie by re...

Monday, May 31st 2010, 9:30am

Author: Roger L

Jabaco and izPack

When I say they all went - I mean that I highlighted 4 of the 5 files and then clicked on delete - all 5 files disappeared from the directory listing. I then renamed the zip back to a jar - double clicked - worked fine. Then rebuilt the installer with the new .jar file - when I ran it I got a different error - duplicate entry: org/apache/commons/collections/ArrayStack.class Everything is working fine when I just run Jabaco - it is only when running the izPack installer that I am running into pro...

Monday, May 31st 2010, 8:53am

Author: Roger L

Jabaco and izPack

Further - I tried to delete all but one copy of the duplicated files - but they all went. The licence files were all headed Apache. Very strange behaviour!

Monday, May 31st 2010, 8:47am

Author: Roger L

Jabaco and izPack

Hi, Did what you suggested - the MATA-INF directory in the Jabaco produced .jar file has 5 files called LICENSE.txt and 4 files called NOTICE.txt. I wonder if they come from the other .jar files needed by the application ie the jar files included for Jasper Reports and also the H2 database driver? Roger L

Monday, May 31st 2010, 4:47am

Author: Roger L

Jabaco and izPack

Hi, I have got my small sample file maintenance program going including a Jasper report etc. Compiles fine to a jar file - and I have copied just the .jar file, H2 database and report definition files to another PC without Jabaco installed and it all works fine. Thought I would try to set up an installer for the program and izPack (using PackJacket) seemed like a reasonable tool to use. It creates an installer OK, but when I run the installer I get the following error :- ERROR duplicate entry: M...

Thursday, May 27th 2010, 2:41am

Author: Roger L

Jasper Report and Jabaco

Thanks for the comments - I'll take them on board! I am starting Jabaco with a shortcut pointing to the project file in an attempt to overcome path problems. What I am trying to do is avoid coding full paths by having all files in the same directory and running in that directory - this seems a good way to simplify code and allow the final app to be installed anywhere without the need to change any paths in the code or elsewhere. Perhaps I'm trying to follow the KISS principle too closely! Thanks...

Wednesday, May 26th 2010, 6:19am

Author: Roger L

Jasper Report and Jabaco

Very strange! I shut down Jabaco and left my project for a couple of hours. I was hoping for a reply to my query above - but failing that I thought I would have another go at the project. No change to code (I promise) - but when I try to run it now everything works as intended - the error shown above does not occur. The only conclusion I can come to is that there may be a need under certain circumstances to exit Jabaco and restart in order for registered libraries to work - but that doesn't soun...

Wednesday, May 26th 2010, 12:21am

Author: Roger L

Jasper Report and Jabaco

Hi, I have written a Jasper report using iReport and my H2 database - all works fine in iReport. I am then using the following code to try to run the report from a button in my Jabaco application :- Dim jd As JasperDesign=JRXmlLoader.load("TypeList.jrxml") Dim jr As JasperReport=JasperCompileManager.compileReport(jd) Dim jp As JasperPrint=JasperFillManager.fillReport(jr,Null,con) JasperViewer.viewReport(jp,False) I have set up all the references as described in the post on using JasperReports wi...

Sunday, May 9th 2010, 12:36pm

Author: Roger L

ListBox

Looking at my last reply - it seems a little obvious that one would need to enter the index numberof the list item that has to be visible - what I had assumed was that the currently selected list item was always the one to be made visible. Roger L

Sunday, May 9th 2010, 12:30pm

Author: Roger L

ListBox

Couldn't wait - I gave it a go before leaving - I had thought that ensureIndexIsVisible took a value of 1 (true) to be enabled or else it was false ie not enabled - as soon as I used the index of the selected list item as the parameter all was working fine! I can now go on holiday and not keep thinking about it! Thanks Roger L

Sunday, May 9th 2010, 12:18pm

Author: Roger L

ListBox

Many Thanks - I'll give that a go on my return from holiday - back in 2 weeks! Roger L

Sunday, May 9th 2010, 1:55am

Author: Roger L

ListBox

Further - I tried making the listbox two rows long instead of the one I had before - it then displayed selected key fine except for the last one! The last record key was highlighted, but stayed off the bottom of the lisbox until I scrolled to it. For all other keys the listbox moved to a position in the list where the selected key was visible!

Sunday, May 9th 2010, 1:05am

Author: Roger L

ListBox

Hi, I'm using a listbox as a lookup on a master file maintenance (add/change/delete) screen. I have the list as just one row high so that I can scroll up and down the primary keys for the records and select which one I want to edit. I can also navigate via forward and backward (and first and last) arrow keys as well. I put in some code to set the index of the listbox so that if the record on the screen changes so does the lookup field as follows :- List1.ListIndex = recNum List1.ensureIndexIsVis...

Sunday, May 9th 2010, 12:02am

Author: Roger L

Tab Sequence

Thanks for the suggestion - I'll have a look at it. What I suspect I will have to do is specifically program my data entry field sequence by putting in some code to set the focus to the next field as each field loses the focus (It's a good spot to put in the field validation code anyway). Roger L

Saturday, May 8th 2010, 1:14am

Author: Roger L

Tab Sequence

Hi, Suprised there was no-one who could help me on what I thought was a fairly simple and basic, but important, topic in the usability of data entry screens, I have managed to roughly solve my problem by using the 'CanGetFocus' property of the controls on my screen - but its not exactly what I wanted and I'm sure there must be a better way. I guess I must investigate Swing a little more - but surely I won't have to drop back to java code for this! Roger L

WoltLab Burning Board