Why does javaclasspath.txt not set the static javaclasspath when I re-start MATLAB

3 ビュー (過去 30 日間)
Julian
Julian 2018 年 6 月 12 日
回答済み: Julian 2018 年 6 月 12 日
Here's a neat shortcut to restart MATLAB shared ed by Sean de Wolski . I added a shortcut onto my desktop to do just this!
But here's my problem:
Suppose I start MATLAB normally my static javaclasspath matches the file javaclasspath.txt stored in my userpath. Now I type at the command line
system('matlab &');
and a new instance of MATLAB gets going but this one has a different static javaclasspath - items that I added in my javaclasspath.txt don't appear and consequently my database links don't work.
  1 件のコメント
Julian
Julian 2018 年 6 月 12 日
More info
Turns out that the javaclasspath.txt isn't read in if MATLAB starts in a different folder to that of userpath. I get the same behaviour by double-clicking on a MAT file in some other folder on my system. When MATLAB starts it always runs startup.m in my userpath, it adds my userpath onto the MATLAB path and it can locate javaclasspath.txt using the which command, although it does not set javaclasspath using this file.....

サインインしてコメントする。

採用された回答

Julian
Julian 2018 年 6 月 12 日
Answering my own question (because it showed up on the automated Related Content search) - see this Answer

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBar Plots についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by