Bug 151819 - Scripts in java
Summary: Scripts in java
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-29 20:35 UTC by FL
Modified: 2022-11-03 10:53 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
ods with java macro (15.13 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-10-29 20:37 UTC, FL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FL 2022-10-29 20:35:10 UTC
Description:
After version 6.3 java language scripts cannot use classes other than the one containing the method started with the macro, despite being in the same jar file.

Steps to Reproduce:
I am attaching an ods file



Actual Results:
Type: com.sun.star.reflection.InvocationTargetException
Message: Scripting Framework error executing script 
TargetException:
  Type: com.sun.star.script.provider.ScriptExceptionRaisedException
  Message: java.lang.NoClassDefFoundError: com/mypackages/lo/Test$InnerClass.

Expected Results:
No error


Reproducible: Always


User Profile Reset: No

Additional Info:
No other information
Comment 1 FL 2022-10-29 20:37:50 UTC
Created attachment 183332 [details]
ods with java macro
Comment 2 raal 2022-11-02 22:17:05 UTC
No error }all button works] in Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cfc8a8f5d841b3f84d207196153be67da7f60652
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

and Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Calc: threaded

please test with actual version. Thank you.
Comment 3 FL 2022-11-03 09:15:51 UTC
Works.
I'm sorry.
I haven't tested my macros on the latest version of libreoffice.