I encountered the error 'The MATLAB Editor requires Java.'
古いコメントを表示
I encountered the error'The MATLAB Editor requires Java.'
+ Java's version on my PC is
version -java
'Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode'
And I have already installed the latest version of Java from Oracle.
The code I executed is shown below:
mywave.m
edit mywave
for i = 1:1024
A(i) = sin(i*2*pi/1024);
end
Untitled.m
job = batch('mywave')
wait(job)
load(job)
Error message in Command window is shown below:
Error using parallel.Job/load (line 36)
Error encountered while running the batch job. The error was:
Error using edit (line 73)
The MATLAB Editor requires Java.
Error in mywave (line 1)
The same issue occurred in both (R2024a) and (R2023a).
採用された回答
その他の回答 (1 件)
hassan alabasi
2025 年 5 月 31 日
0 投票
Error using parallel.Job/load (line 36)
Error encountered while running the batch job. The error was:
Error using edit (line 69)
The MATLAB Editor requires Java.
Error in mywave (line 1)
edit mywave
Error in mywave (line 7)
load(job)
^^^^^^^^^
1 件のコメント
Walter Roberson
2025 年 5 月 31 日
Remove the first line,
edit mywave
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!