Jump to content
Changes to the Jaspersoft community edition download ×

Images in JAR - How?


Recommended Posts

By: Mark Wilson - markwil

Images in JAR - How?

2003-03-17 02:36

Hi,

how can I reference an image in a jar when the compiles report is in the same jar??

TIA.

-Mark

 

 

 

 

By: Teodor Danciu - teodord

RE: Images in JAR - How?

2003-03-17 11:27

 

Hi,

 

You use paths relative to the root of the JAR,

knowing that the engine searches for the images

as resources in the classpath.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Mark Wilson - markwil

RE: Images in JAR - How?

2003-03-17 11:46

Hi Teodor,

structure of my client.jar:

config

de/wilsoncom/......

img

report_templates

 

I tried using path relative to root of jar in the compiled report:

"..//img//logo.gif"

 

and still got an error message.

 

Any ideas?

TIA.

- Mark

 

 

 

 

By: Teodor Danciu - teodord

RE: Images in JAR - How?

2003-03-17 13:45

 

Hi,

 

Why do you put double slashes?

Try this:

 

"img/logo.gif"

 

I hope this helps.

Teodor

 

 

 

 

 

By: Mark Wilson - markwil

RE: Images in JAR - How?

2003-03-18 01:44

Hi Teodor,

it now works. ("img/logo.gif").

I read somewhere in this forum that you needed double slashes because of the esc-char - but that is of course and not /.

 

Thanks anyway.

-Mark

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...