Jump to content

java code for invoks reports from jasper server by REST_v2


Go to solution Solved by plambert_1,

Recommended Posts

Posted

Hi,

I created a jasper report and add it into the jasper server, now i need to invoke the reports from jasper server by REST v2. So please give me the java code for doing this. and also tell me the required jar files and necessery thing to do.

jasper report - TIBCO jaspersoft studio-6.2.0.final

Regards,

Nikhil 

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

but i am getting this error while running

C:UsersUrava-PC-01oracle1221oracle_commonjdkbinjavaw.exe -server -classpath "C:JDevelopermyworkJasper.adf;C:JDevelopermyworkJasperJasperclasses;C:UsersUrava-PC-01Desktopjar for jasper javacommons-beanutils-1.9.0.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-collections-3.2.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-digester-1.7.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-logging-api-1.1.jar;C:UsersUrava-PC-01Desktopjar for jasper javagroovy-all-2.4.3.jar;C:UsersUrava-PC-01Desktopjar for jasper javaitext-2.1.7.js3.jar;C:UsersUrava-PC-01Desktopjar for jasper javajasperreports-6.1.1.jar;D:UravaAlbarrakAlbarrakCommonLibUravaCommonCode.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpclient-4.1.2-sources.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpclient-4.3.4.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpcore-4.0-beta3.jar" -Djavax.net.ssl.trustStore=C:UsersURAVA-~1AppDataLocalTemptrustStore1258780266524574807.jks com.uravatech.jasper.Jasper
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/util/Args
at org.apache.http.auth.UsernamePasswordCredentials.<init>(UsernamePasswordCredentials.java:78)
at com.uravatech.jasper.Jasper.main(Jasper.java:23)
Caused by: java.lang.ClassNotFoundException: org.apache.http.util.Args
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 2 more
Process exited with exit code 1.
 

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