Jump to content
Changes to the Jaspersoft community edition download ×

Recommended Posts

I am having following problem while running a custom visualization sample report from the following URL.

Problem: net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: No script provided for the Custom Visualization component.

URL: https://community.jaspersoft.com/wiki/custom-visualization-component-jaspersoft-studio

I am using JasperSoft Studio 6.0.1 in windows environment. I set up the jasperStudio properties paths according to the wiki. For example: C:/dev/java/workspace/MyReports/scripts/scripts/highcharts/highcharts-3.0.7.src.js   

I have tried with either "file://" or without it. Also tried both "/" and "" in the path strings and none of them works.

Can anybody help me please? 

- Thanks in advance for any help or comments!! 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The Custom Visualization Component has changed in 6.0.1.

To get a working starting point do this: File -> New -> Other, then select Jaspersoft Studio -> Custom Visualization Component. Click Next, choose one of the provided samples, give it a name, and click through the rest.

You should now have a new project in your workspace with one jrxml and several Javascript and maybe some CSS files. To preview the jrxml you need to compile everything first. For that, right-click on "build.js" and select "Build Component". Then preview the report. You have to compile every time you change something in the Javascript.

Once you have this running, you can put in your own code.

Link to comment
Share on other sites

Thanks a lot. I followed your solution, created a separate project with a sample (d3). It works fine. Later I copied all the files to my existing project, and it works as well. However, I could not still run my samples (downloaded from the URL). I changed the build.js accordingly, but still not working. I am trying to figure out what I missed. Thanks again.
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...