Jump to content

Recommended Posts

Posted

By: Moisey Blehman - rhal

Using import classes in xml

2003-01-31 01:47

Hi,

 

How can I import my own classes (not only lang and util) in order to use them inside of xml?

 

I'am aware that one can use non default classes through scriplets, but can this be done without scriplets use?

 

Thanks for advice

 

 

 

 

By: Teodor Danciu - teodord

RE: Using import classes in xml

2003-01-31 02:40

 

Hi,

 

You only have to use the entire class name in

the report expressions (including the package).

 

That's all. No import statements needed.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Moisey Blehman - rhal

RE: Using import classes in xml

2003-02-01 05:19

Thank you very much - that really helped a lot. ^_^

  • 4 years later...
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hi all,

 

I tried including the package but still get an error:

java.lang.ClassNotFoundException: abc.myservice.ClassBService

 

Any idea?

 

Thanks-

Posted

Thanks for your response...

When I included the abc.myservice.ClassBService class in the classpath. I get

java.util.zip.ZipException: error in opening zip file...

 

Weird...Dod you have any ideas?

 

Thanks-

Posted

Can somebody help...!!!!

I included the abc.myservice.ClassBService class in the classpath and when I compile the template I get

java.util.zip.ZipException: error in opening zip file...

Posted
Well, I bundled the classes into a jar file and included it in the classpath and it works fine. Couldn't include individual class though... weird, don't know why...

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