Jump to content
Changes to the Jaspersoft community edition download ×

Jasper Report Compatible with jdk 1.4


2004 IR Help

Recommended Posts

By: Devavratt - devavratt

Jasper Report Compatible with jdk 1.4

2005-09-16 11:17

Hello,

I have tried using jasperrerports ver 0.6.3 with jdk 1.3 and it runs very successfully.

But when I try to run jasperreports 0.6.3 with jdk 1.4.2_05, I get an error saying -

 

$Jasperreports.java:25: cannot access java.lang.Object

bad class file: $jdk142_05jrelibrt.jar(java/lang/Object.class)

class file has wrong version 48.0, should be 47.0

Please remove or make sure it appears in the correct subdirectory of the classpath.

 

Did anyone had faced similar problem earlier and you know what the solution is ?

That would be of great help.

 

Regards,

Dev

 

 

 

 

By: deep_k - deep_k

Merged field

2005-09-15 14:03

Hi,

 

How could I merge a field based on a type ?

 

For example given the following:

 

type subtype cost

------------------------------------

pizza cheese $10

pizza pepperoni $10

pizza cheese $10

potato baked $20

potato baked $20

potato fried $20

veggie tomato $5

soup bean $5

soup lentil $5

 

 

I would like cost to be "merged" based on type, which will give :

type subtype cost

------------------------------------

pizza cheese $10

pizza pepperoni

pizza cheese

potato baked $20

potato baked

potato fried

veggie tomato $5

soup bean $5

soup lentil

 

Please help me!!! Thanks!!!!!

 

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Merged field

2005-09-16 07:17

 

Hi,

 

Use isPrintRepeatedValues="false" for the text field

displaying the price.

 

I hope this helps.

Teodor

 

 

 

 

 

By: deep_k - deep_k

RE: Merged field

2005-09-16 07:37

Hi Teodor,

Thank you very much for responding to my question so quickly!

I tried what you recommended but it doesn't give me the results that I want.

 

Given:

type | subtype |cost

-----------------------------------

veggie | tomato |$5

soup | bean |$5

soup | lentil |$5

 

 

By setting isPrintRepeatedValues="false" for the field cost I get the following result :

 

type | subtype |cost

-----------------------------------

veggie | tomato |$5

soup | bean |

soup | lentil |

 

However I want the cost not to repeat given the *type* , thus my result should look like this:

 

type | subtype |cost

-----------------------------------

veggie | tomato |$5

soup | bean |$5

soup | lentil |

 

Where cost doesn't repeat for soup, since I'm "merging" the fields based on the type.

Is there a way of doing isPrintRepeatedValues="false" for 3 combined fields?

 

Thanks for you help!

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Merged field

2005-09-16 07:54

 

Hi,

 

Try create 3 nested groups in this order:

type, subtype and cost

 

Then use the header band of the "cost" group to display

all three fields.

In the detail band put only the same content, except for

the cost field which you want to suppress.

 

This way you would have the first record of each

group repeated, but you could suppress the one that

repeats by using the <printWhenExpression> on the

detail band and test the "cost_COUNT" built-in variables for values greater than 1.

 

I hope this helps.

Teodor

 

 

 

 

 

By: deep_k - deep_k

RE: Merged field

2005-09-16 09:00

Thank you again Teodor it works perfectly now!

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I have same issue , It is working fine when I am using 1.4, now i changed to 1.5, and it give me following error:

 

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

1. The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

/*

^

1 errors

 

at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193)

at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:131)

at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)

at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:197)

==================

 

Any suggestions?

 

 

Thanks:(

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