verJAVA

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CODING/DEVELOP
Introduced first in SolidGeometry 5.4, Creation date: 2024-07-04, Last change: 2025-08-18

fnct to check the JAVA Version of Matlab and OSX

Description

After serious Problems with 2024a and Mac Sonoma 14.5 on a MacBook Air, with a spinning disc, and the commandwindowTL command or whatelse, Reinstalling 20244 Update 4 getting the information it would be 2024 Update 3 and more nonsense time wasting, I decided to swtich to corretto 11.
It as necessary to delete the JAVA path (which means matlab ist not starting anymore) and set it again by the terminal (see inside code)

The final result were two code lines for startup function:
set(groot, 'defaultFigureCloseRequestFcn', 'pause(0.05); close(gcf)');
warning off MATLAB:Figure:RecursionOnClose;


See Also: stamp , verSG , verOSX , verML

Example Illustration

 missing image of verJAVA()

Syntax

varargout=verJAVA([])

Output Parameter

[mlj.Version]:
[- fnct to check the JAVA Version of Matlab and OSX % (by Tim Lueth, SG-Lib, 2024-JUL-04 as class: CODING/DEVELOP) % % After serious Problems with 2024a and Mac Sonoma 14.5 on a MacBook Air, with a % spinning disc, and the commandwindowTL command or whatelse, Reinstalling 20244 % Update 4 getting the information it would be 2024 Update 3 and more nonsense % time wasting, I decided to swtich to corretto 11. % It as necessary to delete the JAVA path (which means matlab ist not starting % anymore) and set it again by the terminal (see inside code) % % The final result were two code lines for startup fnctn: % set(groot, 'defaultFigureCloseRequestFcn', 'pause(0.05)]:

Examples


[a,b]=system('/usr/libexec/java_home -V')
verJAVA
a=verJAVA




Copyright 2024-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21