![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
selvarasus
-
Posts
2 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by selvarasus
-
-
I couldn't see the design view and print view from the following ant build file, but there is no error. I am able to create .jasper and .jrprint files. Please let me know if I missed anything.
<project name="FirstReport XML Design Preview" default="viewDesignXML" basedir=".">
<description>Previews our First Report XML Design</description><property name="file.name" value="FirstReport" /><!-- Directory where the JasperReports project file was extracted needs to be changed to match the local environment --><property name="jasper.dir" value="C:\\Jasper\\jasperreports-4.0.2" /><property name="classes.dir" value="${jasper.dir}/build/classes" /><property name="lib.dir" value="${jasper.dir}/lib" /><path id="classpath"><pathelement location="./" /><pathelement location="${classes.dir}" /><fileset dir="${lib.dir}"><include name="**/*.jar" /></fileset></path><target name="viewDesignXML" description="Launches the design viewer to preview the XML 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><target name="compile" description="Compiles the XML report design and produces the .jasper file."><taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask"><classpath refid="classpath" /></taskdef><jrc destdir="."><src><fileset dir="."><include name="**/*.jrxml" /></fileset></src><classpath refid="classpath" /></jrc></target><target name="view" description="Launches the report viewer to preview the report stored in the .JRprint file."><java classname="net.sf.jasperreports.view.JasperViewer" fork="true"><arg value="-F${file.name}.jrprint" /><classpath refid="classpath" /></java></target>
</project>
Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
in Products
Posted
Have you fixed this issue. I am getting the same error on server. Please provide me the solution.