Compiled Java class in jar file .how to from jr

Hai all .Could you please some one guide me .I have compile java class in jar.i uploaded in to the Jasper report server.how to call in jar file contains method from Jasper report server ,I mean From JRXML File.

netti royala's picture
Joined: Oct 28 2013 - 11:43pm
Last seen: 8 years 9 months ago

2 Answers:

STEP 1: l upload you JAR to jasper server as given below:

- STEP 2: Then go to "Control & Resources" page of a report and there add the resource created in STEP 1 as given below.

 

- After this you can call access any java methods from JRXML file

sambitgudu's picture
Joined: Sep 26 2012 - 3:25am
Last seen: 7 years 4 months ago

Thank you so much sambitgudu.I uploaded like that but got Errors like
1.can't call com.td.IPName class.
2.minor version 50 something like that got a error.(I Think This is Because JDK Version And JRE Version)
Suppose My Class name is IPTest and Method name is getResult().i Called IPTest.getResult().Because getResult() is Static method.one thing i have to mention ,Jasper server is installed in Another system.I Uploaded in my System.Is There any Problem?
Could you please provide proper answer.

netti royala - 9 years 10 months ago

Try to recompile the java class under Java 6. If compiled under Java 7 and then executed under Java 6. There will be a "major minor" type of exception.

tkavanagh's picture
16386
Joined: Jul 7 2006 - 8:54am
Last seen: 9 years 4 weeks ago

Thank you ,I will try it now

netti royala - 9 years 10 months ago

Thank you

netti royala - 9 years 10 months ago
Feedback
randomness