MATLAB: Error while installing Toolbox (java.lang​.NoClassDe​fFoundErro​r)

errorimage acquisitioninstallationjava

I am trying to install a trial of the Image Acquisition Toolbox, but keep getting an error on ~90%. Apparently it has something to do with org.apache.lucene.analysis.core.SimpleAnalyzer (see below for message from log file).
Even though it fails, it shows on 'ver', but 'imaqtool' freezes and gives an error (see below).
Any help would be much appreciated. Thanks
%% Excerpt from log file
(May 20, 2020 16:46:29) Task MATLAB R2019b Startup Accelerator for E:\Program Files\MATLAB\bin\win64\MATLABStartupAccelerator.exe exists
(May 20, 2020 16:46:29) Stopping task MATLAB R2019b Startup Accelerator
(May 20, 2020 16:46:29) Download thread pool size = 4
(May 20, 2020 16:46:29) Installing Product: Image Acquisition Toolbox
(May 20, 2020 16:46:34) java.lang.NoClassDefFoundError: org/apache/lucene/analysis/core/SimpleAnalyzer
at com.mathworks.install.command.doc.BuildSharedDocController.getSubCommands(BuildSharedDocController.java:51)
at com.mathworks.install.command.doc.BuildSharedDocController.execute(BuildSharedDocController.java:37)
at com.mathworks.install.command.doc.BuildSharedDocCommand.execute(BuildSharedDocCommand.java:50)
at com.mathworks.install_impl.InstallModule$1.installProducts(Unknown Source)
at com.mathworks.install_impl.InstallerImpl.install(Unknown Source)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.install_task.AbstractInstallTask.call(AbstractInstallTask.java:50)
at com.mathworks.install_task.AbstractInstallTask.call(AbstractInstallTask.java:18)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.analysis.core.SimpleAnalyzer
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
%% Error shown after executing 'imaqtool'
Error using iatbrowser.ROIGUIElementsController (line 47)
Invalid default value for property 'HImrect' in class 'iatbrowser.ROIRect':
imrect requires a Image_Toolbox license.
Error in iatbrowser.Browser/initialize
Error in iatbrowser.Browser
Error in imaqtool (line 24)
browser = iatbrowser.Browser;
%% Output from 'ver'
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.7.0.1190202 (R2019b)
MATLAB License Number: 40839756
Operating System: Microsoft Windows 7 Professional Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.7 (R2019b)
Deep Learning Toolbox Version 13.0 (R2019b)
Image Acquisition Toolbox Version 6.1 (R2019b)
Image Processing Toolbox Version 11.0 (R2019b)
MATLAB Compiler Version 7.1 (R2019b)
Parallel Computing Toolbox Version 7.1 (R2019b)
Signal Processing Toolbox Version 8.3 (R2019b)
Statistics and Machine Learning Toolbox Version 11.6 (R2019b)

Best Answer

I have finally been able to run the toolbox installation without problems. This is what I did.
  1. Downloaded lucene version 4.6.1 from https://archive.apache.org/dist/lucene/java/4.6.1/
  2. In the Image Acquisition Toolbox folder (after downloading and decompressing it), one can find the folder /java/jarext
  3. In that folder there are 8 files called lucene-*****.jar, which I replaced with the files found in 4.6.1
I still haven't thoroughly tested everything, but at least the install was smooth. I'll post if there's any other problem. Thanks for your help, Walter.
Related Question