Faq how to configure java files in older MATLAB

From Eigenvector Research Documentation Wiki
Revision as of 12:47, 27 January 2022 by Lyle (talk | contribs) (Created page with "===Issue:=== How to configure Java files in older versions of MATLAB? ===Possible Solutions:=== In some older versions of MATLAB, including version 7.0.4 (R14SP2), it is ne...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Issue:

How to configure Java files in older versions of MATLAB?

Possible Solutions:

In some older versions of MATLAB, including version 7.0.4 (R14SP2), it is necessary to manually add the jar files included with PLS_Toolbox to the MATLAB java class path.

  1. Open MATLAB.
  2. Navigate to the "..\PLS_Toolbox_65\extensions\javatools" folder (where "PLS_Toolbox_65" is the folder containing the version of PLS_Toolbox you are installing. The "65" will change for each version)
  3. Edit the Java class path file:
    >> edit classpath.txt
  4. At the bottom of the classpath.txt file add lines for each .jar file in the extensions folder using the correct path. In the following example, PLS_Toolbox version 6.5 (named "PLS_Toolbox_65") is installed in the "c:\Toolbox\" folder so the corresponding entries look like:
c:\Toolbox\PLS_Toolbox_65\extensions\javatools\evriJavaClasses.jar
c:\Toolbox\PLS_Toolbox_65\extensions\javatools\rsyntaxtextarea.jar
c:\Toolbox\PLS_Toolbox_65\extensions\javatools\mysql.jar
c:\Toolbox\PLS_Toolbox_65\extensions\javatools\libsvm_jre15.jar
c:\Toolbox\PLS_Toolbox_65\extensions\javatools\derby.jar
c:\Toolbox\PLS_Toolbox_65\extensions\javatools\commons-dbutils-1.3.jar
c:\Toolbox\PLS_Toolbox_65\extensions\javatools\jsoup.jar
  1. Save the file and restart MATLAB.
  2. If MIA_Toolbox is installed, any .jar files in the "..\MIA_Toolbox\utilities" folder should be added using the same procedure as above.


Still having problems? Please contact our helpdesk at helpdesk@eigenvector.com