问题:GUIDE guis缺少常用功能(下拉菜单,按钮等)。它们只显示为带有边框的空窗口,描绘了以前不同按钮的位置。该问题似乎与我正在使用的jre版本有关。我不知道该怎么办。
这是matlab正在使用的环境变量。 / usr / java / default指向jre_1.7.0_05的根目录,包含bin,lib等。
------------------------------------------------------------------------
-> (.matlab7rc.sh) sourced from directory (DIR = $MATLAB/bin)
-> DIR = /opt/matlab/R2011b/bin
------------------------------------------------------------------------
a = argument e = environment r = rcfile s = script
------------------------------------------------------------------------
-> r MATLAB = /opt/matlab/R2011b
-> LM_LICENSE_FILE = (variable not defined)
-> MLM_LICENSE_FILE = (variable not defined)
-> s AUTOMOUNT_MAP =
-> e DISPLAY = :0.0
-> r ARCH = glnxa64
-> s TOOLBOX = /opt/matlab/R2011b/toolbox
-> r XAPPLRESDIR = /opt/matlab/R2011b/X11/app-defaults
-> r XKEYSYMDB = /opt/matlab/R2011b/X11/app-defaults/XKeysymDB
-> e MAX_OPEN_FILES = 1024
-> s _JVM_THREADS_TYPE =
-> e MATLAB_JAVA = /usr/java/default
-> s MATLAB_MEM_MGR =
-> s MATLAB_DEBUG =
-> s LD_LIBRARY_PATH = /opt/matlab/R2011b/sys/os/glnxa64:/opt/matlab/R2011b/bin/glnxa64:/opt/matlab/R2011b/extern/lib/glnxa64:/us
r/java/default/lib/amd64/native_threads:/usr/java/default/lib/amd64/server:/usr/java/default/lib/amd64
-> a arglist =
-> e SHELL = /bin/bash
-> e PATH = /usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin
答案 0 :(得分:1)
底线是MATLAB打破Java 7的很多东西,还原到最新的Java 6(你可以同时安装)。
只需将$MATLAB_JAVA
环境变量设置为指向JRE6安装。