Description: Java Applet was a nice way of running complex applications inside browsers that supported them. https://en.wikipedia.org/wiki/Java_Applet This feature was deprecated in 2017 by JEP 289 in Java 9. The plugin was removed from the browsers, and the Java API was eventually removed in 2021 by JEP 398 in Java 17. There are many places in Java and C++ code of LibreOffice that handle Java applets. Those parts of the code can be considered dead, and should be removed. The task here is to find those places of the code that are dedicated to Java applets and remove them gradually. Code pointer: To start, you should search for "applet" in the code base: $ git grep -i applet Around 600 results are printed. Some of them are unrelated, for example, APPLETURKISH is also listed there, which is obviously unrelated. Also, words in dictionary files (.dic) are not related. The best way to move forward is to go one module at a time. For example, you can start from bean module. These are the files listed for the bean module: $ git grep -li applet bean bean/com/sun/star/comp/beans/CallWatchThread.java bean/com/sun/star/comp/beans/LocalOfficeConnection.java bean/com/sun/star/comp/beans/OOoBean.java bean/test/applet/oooapplet/OOoViewer.java bean/test/applet/oooapplet/example.html bean/test/applet/oooapplet/makefile.mk You need to remove the Makefile(s), Java/C++ source code, related documentation, and also folders that were only containing those files. It is worth mentioning that there is a related ODK example in odk/examples/DevelopersGuide/OfficeBean/ folder. More information about deprecation of the Java applets can be found here: JDK 9 Release Notes - Deprecated APIs, Features, and Options https://www.oracle.com/java/technologies/javase/9-deprecated-features.html JEP 289: Deprecate the Applet API https://openjdk.org/jeps/289 JEP 398: Deprecate the Applet API for Removal https://openjdk.org/jeps/398
Set to NEW
Working on this bug
Manish Bera committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/117d31400c946538d075e85cbb4251dc9487a0a2 tdf#162563 Remove Java applet code and references from embeddedobj It will be available in 25.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Manish committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/4eacc9dc0f5c643b02fdc7364666536fc040f54b tdf#162563 Remove remaining Java applet code and references It will be available in 25.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.