Jump to content
Changes to the Jaspersoft community edition download ×

load object and class loader issue


martyn at hiss

Recommended Posts

I have a jar file containing all the classes my applicatie uses.

 

The only things outside this jar file are the 6 jasper files that I have compiled. My code loads the jasper files and immediately I get an error Class not found while loading .....

 

2 Things:

 

1. The error message needs to be improved. No offence but saying class not found and not menthioning which one is a bit lazy and gives developers like me a real headache.

 

2. I think that loadObject cant handel classes in a jar file. I'm not sure how loadObject tries to load any used classes but it should use the class loader of the application. Then it should be able to read the classes from the jar file.

 

Anybody else got these problems or anybody know how to solve this problem?

 

B.T.W When I run the application from eclipse then the jasper files do load successfully so I'm guessing it has something to do with the classloader.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

No problems at all!

 

I think you should:

 

1. Post your exception (where surely the class that can't be found is mentioned)

 

and

 

2. check your classpath for your application that is passed when starting

 

seems to be a simple newbie problem!??!?

;)

 

hth

C-Box

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