Jump to content
JasperReports Library 7.0 is now available ×

Can I modify the runtime classpath?


2005 IR Help

Recommended Posts

By: Jim Yin - xpdz

Can I modify the runtime classpath?

2004-03-25 19:21

Hi,

 

As we know, we can modify the system classpath(java.class.path) by System.setProperty("jasper.reports.compile.class.path").

But I want to setup my classpath not only at compile time but also at runtime.

So, we can put master and sub reports in the same direction both at compile and run time.

 

How can I implement it?

 

TIA.

xpdz

 

 

 

 

By: David Lim - aberrant80

RE: Can I modify the runtime classpath?

2004-03-26 01:10

First, I don't understand what you mean by "same direction". What has direction got to do with compile time and runtime?

 

Second, calling System.setProperty is something done at runtime, not compile time.

 

Or maybe I just don't understand your problem.

 

 

 

 

By: Jim Yin - xpdz

RE: Can I modify the runtime classpath?

2004-03-26 01:36

Oh, sorry, It's my mistake.

I mean the same directory. :-)

 

My master report and sub report put into C:test, but this directory is not in classpath.

Since I pass the full qualified file name to Jasper Engine to fill the master report, I want Jasper can also search this dirctory to locate the subreport.

So what should I do?

 

Thanks for your reply.

xpdz

 

 

 

 

By: David Lim - aberrant80

RE: Can I modify the runtime classpath?

2004-03-28 19:16

hmm... i think it may be better to actually load your subreport into a JasperReport object and then using that object directly. that way, you don't have to bother with absolute paths in your xml. look at JRLoader classes.

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