Jump to content
We've recently updated our Privacy Statement, available here ×

how to extract a jar file from jasper


rida_10

Recommended Posts

Hi,

if I am using a report that is using a jar file, we can add that jar file to jasper server ,so that we use it , and can be added so it is found in the repository so that if  another report need that jar file we can refer to it.

 

my question is that , is there a way in jasper server 4, so that we can get that jar file, (that we have added previoiusly)

so that i can know what classes are in that jar file.

thank you

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

I know this is kind of clunky but you can do an "export" out of the jasperserver repository (database where all resources are stored).

Go to the buildomatic folder.

cd <js-install>/buildomatic

Try running: js-export.sh --help  (or js-export.bat --help)

To make it easy to export resources (for the first time), probably you can just do:

./js-export.sh --everything --output-dir js-catalog-my-export

This should create a directory: "js-catalog-my-export"

Then you can look inside the export xml and .data files to find your jar. You jar will be stored as a .data file. There should be also be an .xml file the same name as your jar.

All resources are stored under the "resources" folder

Link to comment
Share on other sites

  • 2 weeks later...

Thanks tkvanagh,

i located the jar file in the exported folder, where the jar file is the same,

but this time is .data, I renamed the extension from .data to .jar, then i extracted it, using winrar, and get the .class files in my jar file

Link to comment
Share on other sites

  • 3 months later...
For anyone else looking, another way is to browse to the jar in the iReport repository navigator, double click on the jar, and on the properties dialog then displayed, select the Resource tab. There you will find an 'Export File' button.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...