# The better way to storage jasper reports.

**URL:** <https://forum.servoy.com/t/the-better-way-to-storage-jasper-reports/15858>\
**Category:** Classic Servoy\
**Created:** [April 25, 2012, 7:07am UTC](https://forum.servoy.com/t/the-better-way-to-storage-jasper-reports/15858 "2012-04-25T07:07:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pentamsi](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@pentamsi](https://forum.servoy.com/u/pentamsi)\
**Post date:** [April 25, 2012, 7:07am UTC](https://forum.servoy.com/t/the-better-way-to-storage-jasper-reports/15858/1 "2012-04-25T07:07:20Z")

</div>

What is the better way to storage the reports and make it accesible from desktop and webclient, because the webclient application is executed in the server, and the smart client is executed in the computer of each user, for this reasons the 2 paths are different. Are any solution to make one unic path?

---

<div class="post-metadata">

**Author:** ![juan.cristobo](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@juan.cristobo](https://forum.servoy.com/u/juan.cristobo)\
**Post date:** [April 26, 2012, 8:02am UTC](https://forum.servoy.com/t/the-better-way-to-storage-jasper-reports/15858/2 "2012-04-26T08:02:04Z")

</div>

The reports have to be in servoy server, whatever client (smart or web) you use. You have to define the path in _Server Admin \> Server Plugins \> jasperPluginRMI \> directory.jasper.report_.

But, in **Developer** , the path to the reports is a local path, so you have to “sync” local reports directoy and server directory if you need to test reports in developer and in client.

Regards,

---

<div class="post-metadata">

**Author:** ![danny.richadson](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@danny.richadson](https://forum.servoy.com/u/danny.richadson)\
**Post date:** [April 27, 2012, 10:49am UTC](https://forum.servoy.com/t/the-better-way-to-storage-jasper-reports/15858/3 "2012-04-27T10:49:56Z")

</div>

We place the reports in the media directory of a solution/module. In this way the reports are automatically sync with your team-provider and are also part of your solution. When deploying the application server we have a method that will get those reports from the repository and store them in the report directory. At startup we check if you are in developer-mode and if so we change the directoy to the media directory of the module.

if (application.isInDeveloper()== true) {  
var $workSpace = java.lang.System.getProperty(“osgi.instance.area”)  
if (globals.\_ayu\_isMac()) {  
if ($workSpace.substr(0, 5) == ‘file:’) {  
$workSpace = $workSpace.substr(5)  
}  
} else if ($workSpace.substr(0, 6) == ‘file:/’) {  
$workSpace = $workSpace.substr(6)  
}  
plugins.jasperPluginRMI.reportDirectory = $workSpace + ‘rep\_reports/medias’  
}

regards,

Danny Richardson

---

<div class="post-metadata">

**Author:** ![pentamsi](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@pentamsi](https://forum.servoy.com/u/pentamsi)\
**Post date:** [May 18, 2012, 8:21am UTC](https://forum.servoy.com/t/the-better-way-to-storage-jasper-reports/15858/4 "2012-05-18T08:21:14Z")

</div>

But this solution is not usefull for me, because i want to run in production mode, not in developer. What i need is to know the path to the server folder of the solutions. But actually i don’t know how to go for example to one modules folder. I used these isntructions:

application.getServerURL() and plugins.jasperPluginRMI.reportDirectory but i don’t know how to make the entire path.
