Jump to content
Changes to the Jaspersoft community edition download ×

ClassNotFoundException and System.setProperty

Recommended Posts

By: Julie Bé²µbé­ orlibou

ClassNotFoundException and System.setProperty

2003-01-24 07:54



I have a chart with a scriptlet.

I have a web application.


Like in the exemple I set my jasper.reports.compile.class.path


System.setProperty( "jasper.reports.compile.class.path",

context.getRealPath("/WEB-INF/lib/jasperreports.jar") +

System.getProperty("path.separator") + context.getRealPath("/WEB-INF/classes/")



I would like to have a directory report with my chart.xml and my chartScriptlet.class.


Is it possible to change "/WEB-INF/classes/" for "/WEB-INF/report" ?


I tried this, but when my .class is'nt in "/WEB-INF/classes/", I have java.lang.ClassNotFoundException.








By: Teodor Danciu - teodord

RE: ClassNotFoundException and System.setProperty

2003-01-24 08:17




The /WEB-INF/classes directory is a very special

one because the Web server will automatically

load the classes placed there when running

your Web application.

If you place the scriptlet class in other directory,

the Web server would not be able to load the class

and therefore you get the error.


It is like placing one of your servlet classes into

some other location.


The same thing for the /WEB-INF/lib directory

in which you normally place your Web application

jar files.


I hope this helps.







By: Julie Bé²µbé­ orlibou

RE: ClassNotFoundException and System.setProperty

2003-01-27 11:14

I understand.


Thank you!

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