# JasperSoft Studio can't resolve edu.ku.brc.specify.config.Scriptlet

**URL:** <https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281>\
**Category:** Get Help\
**Created:** [August 23, 2023, 10:26am UTC](https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281 "2023-08-23T10:26:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedoras](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/fedoras/32/455_2.png) [@fedoras](https://speciforum.org/u/fedoras)\
**Post date:** [August 23, 2023, 10:26am UTC](https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281/1 "2023-08-23T10:26:16Z")

</div>

I was excited to use JasperSoft Studio to start editing labels, but following the instructions and loading the label it gives me the following error message:

> edu.ku.brc.specify.config.Scriptlet cannot be resolved to a type

Also there’s something about a browser configuration:

![image](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/2/2507a599eded29082c4cde34fea00c27e91e0d0e.png)

Is this a known issue with a simple solution?

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [August 24, 2023, 1:34pm UTC](https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281/2 "2023-08-24T13:34:15Z")

</div>

Hi @fedoras,

Can you send a copy of the JRXML report definition file for us to take a look at?

The issue could be due to Specify 7 [not supporting some scriptlets in Specify 6](https://github.com/specify/specify7/issues/557) or a misconfiguration in the JRXML definition.

The issue with the `Edge browser engine is not setup` seems to be specific to that installation of Jaspersoft Studio, see below:

> **[Error code: "Edge browser engine is not setup. HTML and JRIO Preview will not...](https://community.jaspersoft.com/questions/1216071/error-code-edge-browser-engine-not-setup-html-and-jrio-preview-will-not-work-fine)**
>
> I recently downloaded Jaspersoft Studio, but the preview window is blank while I get the error message "Edge browser engine is not setup. HTML and JRIO Preview will not work fine". I use Microsoft Edge as my browser, so it seemed reasonable to follow...

Thank you!

---

<div class="post-metadata">

**Author:** ![fedoras](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/fedoras/32/455_2.png) [@fedoras](https://speciforum.org/u/fedoras)\
**Post date:** [August 24, 2023, 3:16pm UTC](https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281/3 "2023-08-24T15:16:31Z")

</div>

It’s any of our definition files that I’ve tried with in any case.

[MSJN Loan Invoice.jrxml](https://speciforum.org/uploads/short-url/d0IdrxitIKyy6RzknoRmPd2tVuh.jrxml) (15.0 KB)

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [August 24, 2023, 4:54pm UTC](https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281/4 "2023-08-24T16:54:59Z")

</div>

Hi @fedoras,

After taking a look, it appears that the `scriptletClass="edu.ku.brc.specify.config.Scriptlet"` XML attribute causes Jaspersoft Studio to be unable to render a preview of the report.

```xml
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="MSJN Loan Invoice v5" pageWidth="595" pageHeight="842" whenNoDataType="NoPages" columnWidth="483" leftMargin="56" rightMargin="56" topMargin="42" bottomMargin="20" scriptletClass="edu.ku.brc.specify.config.Scriptlet" uuid="ec85af8d-e1c0-4f9b-9f91-711a6aade1ec">

```

It looks like you added this scriptlet to the report at some time in the past using SpiReport:

**[Printing with Specify 6’s Scriptlet Functions](https://speciforum.org/t/printing-with-specify-6s-scriptlet-functions/720)**

> ### Configuring Your Report For Scriptlets
> 
> The report must know where to get the scriptlet and this is set in the ‘Report Properties.’ In the SpecifyiReports application click on the ‘Edit’ menu and then ‘Report Properties.’ The dialog will have a tab named ‘Scriptlet Class’, click on the tab. In the dropdown list select 'Use this scriptlet class…" and then enter the following value:
> 
> `edu.ku.brc.specify.config.Scriptlet`

It does not prevent Specify 7 from running the report, but you will not be able to compile the report in Jaspersoft Studio to ensure your changes are working before moving back into Specify 7.

You can remove the `scriptletClass="edu.ku.brc.specify.config.Scriptlet"` component if you are not using any scriptlets in the report itself.

Thank you for the report!

---

<div class="post-metadata">

**Author:** ![fedoras](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/fedoras/32/455_2.png) [@fedoras](https://speciforum.org/u/fedoras)\
**Post date:** [August 25, 2023, 5:11am UTC](https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281/5 "2023-08-25T05:11:34Z")

</div>

All the reports were indeed created in SpiReport and I was looking forward to using a better program, because SpiReport is excruciatingly slow and clunky.

The previewing in JS Studio works by removing that attribute, but think I do use the scriptlet for that particular report. But it’s hard to test in JasperSoft Studio, since I cannot figure out how to set up the data connection. I have added the Data Adapter to a localhost db server copy that is running, but it’s unclear how to get the fields filled with actual data from it.

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [June 4, 2025, 3:20pm UTC](https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281/6 "2025-06-04T15:20:13Z")

</div>

A post was split to a new topic: [Jaspersoft Studio 7.0.3 trouble](https://speciforum.org/t/jaspersoft-studio-7-0-3-trouble/2587)

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [June 4, 2025, 3:20pm UTC](https://speciforum.org/t/jaspersoft-studio-cant-resolve-edu-ku-brc-specify-config-scriptlet/1281/7 "2025-06-04T15:20:21Z")

</div>


