subramanyaks79 Posted April 24, 2017 Share Posted April 24, 2017 I've installed Jasper Reports Server 6.3.0 using "jasperreports-server-6.3.0-windows-x64-installer". Affter my installation folder doesn't contain dist and lib folders in the main folder. And I'm using ant command to build the report (or to view my report template). How to do it? What should i do now? How can I build the report??I'm getting following error when I run >ant, where test is my project folder.--------------------------------------------------------------------------------------------------------C:Jaspersoftjasperreports-server-6.3.0test>antBuildfile: C:Jaspersoftjasperreports-server-6.3.0testbuild.xml viewDesignXML: BUILD FAILEDC:Jaspersoftjasperreports-server-6.3.0testbuild.xml:8: C:Jaspersoftjasperreports-server-6.3.0lib does not exist. Total time: 0 seconds -------------------------------------------------------------------------------------------------------- This is my build.xml --------------------------------------------------------------------------------------------------------<?xml version = "1.0" encoding = "UTF-8"?><project name = "JasperReportTest" default = "viewDesignXML" basedir = "."> <import file = "baseBuild.xml" /> <target name = "viewDesignXML" description = "Design viewer is launched to preview the JXML report design."> <java classname = "net.sf.jasperreports.view.JasperDesignViewer" fork = "true"> <arg value = "-XML" /> <arg value = "-F${file.name}.jrxml" /> <classpath refid = "classpath" /> </java> </target> </project>-------------------------------------------------------------------------------------------------------- My Jasper Reports folder structurejasperreports-server-6.3.0>apache-ant>apache-tomcat>apps>buildomatic>common>docs>eval-licenses>images>java>licenses>postgresql>samples>scripts>testinstallationjasperserver.licenselicensepropertiesreleaseNotesserviceinstallservicerunTIBCO-EULAuninstall.datunisntall Please help me to reolve the issue. Link to comment Share on other sites More sharing options...
swood_1 Posted April 24, 2017 Share Posted April 24, 2017 Developing and running reports with JasperReports Server is different from JasperReports.The Server does all the compilation, running and viewing. You can't use Ant to view reports with the Server.The Server process is:Develop and test your report in StudioSet up a connection to your Server in the Repository Explorer tab in StudioPublish the report from Studio to the ServerPublish is a button on the upper right of the Design tab of StudioThis will send the JRXML to the server and create other information like data sources and input controls to build a "Report Unit" in the ServerLogin to the ServerFind and run the report by clicking on itThe Server will do the JRXML compilation, connect to the data source etcThe report will display in the browserSherman Link to comment Share on other sites More sharing options...
subramanyaks79 Posted April 25, 2017 Author Share Posted April 25, 2017 hi swood_1,How can i develop the reports by writing jrxml file and java code?And is it possible to publish to jasperreport server?I want to use ANT task to generate reports. And Oracle SQL as datasource. Please help me to work on this. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now