Why do PMODE and other commands requiring Java sometimes fail to start when the -nodisplay startup option is used?

1 view (last 30 days)
PMODE or other commands requiring Java might fail to start if the -nodisplay option is used on a linux machine. The following error is produced with PMODE:
>> pmode start lsf 3
??? Error using ==> pmode>iVerifyJava at 303
pmode is not supported because Java is not currently available.
Error in ==> pmode at 62
iVerifyJava();

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This error is because all Java modules except for the JVM modules are disabled with the -nodisplay option. PMODE requires that the swing Java modules are available.
The modules available are:
jvm - The Java Virtual Machine
The modules which are disabled are:
awt - Abstract Window Toolkit components (GUI components).
desktop - The MATLAB interactive desktop.
swing - Swing components. (lightweight GUI components in the Java Foundation classes)

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!