2002 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: Ruben Misrahi - rnmisrahi Where do we get the sample DB used? 2003-02-26 08:58 To understand JasperReports, I'd like to be able to use the DB sample used (Northwind orders, CustomBEanFactory, whatever). Is there a place where we can get that sample DB? By: Teodor Danciu - teodord RE: Where do we get the sample DB used? 2003-02-26 09:08 Hi, A HSQL database is supplied in the /demo/hsqldb directory of the project. To start the server, you just go to that directory and launch this from the command prompt: >ant or >ant runServer You only have to have ANT installed on your system. Some of the samples connect to this database when filling the reports. I hope this helps. Teodor By: Ruben Misrahi - rnmisrahi RE: Where do we get the sample DB used? 2003-02-26 11:58 Thanks. That did it, but now I get: java.lang.ClassCastException at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:101) at JasperApp.main(JasperApp.java:159) Link to comment Share on other sites More sharing options...
Solution kkumlien Posted August 12, 2015 Solution Share Posted August 12, 2015 The Sample DB available in Jaspersoft Studio used to be available here: http://anonsvn:anonsvn@code.jaspersoft.com/svn/repos/jasperreports/trunk/jasperreports/demo/hsqldb/The repo was then moved to GitHub: https://github.com/TIBCOSoftware/jasperreports/tree/master/jasperreports/demo/hsqldbThe file test.script can be run on any SQL database with minimal modification. Link to comment Share on other sites More sharing options...
joeylovett1 Posted September 24, 2018 Share Posted September 24, 2018 Excuse me but your link is failing. Did you check it before posting it ;-) Link to comment Share on other sites More sharing options...
kkumlien Posted January 22, 2019 Share Posted January 22, 2019 Hi Joey, I posted my answer nearly 4 years ago :D Things tend to move fast in software. The repo moved to GitHub since, I've updated the answer. Link to comment Share on other sites More sharing options...
kkumlien Posted September 22, 2021 Share Posted September 22, 2021 Alternatively:Run HSQLDB locally by downloading this folder, then cd into it and run "ant" on the command lineSet up Data Source in JRS: top-menu Create > Data Source, then select Other in JDBC DriverJDBC Driver (class): org.hsqldb.jdbc.JDBCDriverURL: jdbc:hsqldb:hsql://localhostUser Name: saPassword: (empty)Click Add Driver... > pick the file hsqldb-jdk8.jar (extract from e.g. this zip or latest version)Save Data Source and link it to Report when publishing from Studio 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