关于matlab安装的一点问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
Om_o_mO
帖子: 10
注册时间: 2010-04-25 21:35

关于matlab安装的一点问题

#1

帖子 Om_o_mO » 2010-04-27 22:09

安装了matlab,但是有一点问题,从终端运行的时候提示
Warning: Cannot locate Java Runtime Environment (JRE) . . .

1. Either a correct JRE was not available for redistribution when
this release was shipped, in which case you should refer to the
Release Notes for additional information about how to get it.

2. Or you have tried to use the MATLAB_JAVA environment variable
to specify an alternate JRE, but MATLAB cannot find it. Please
run 'matlab -n' to determine what value you are using for
MATLAB_JAVA and fix accordingly.
---------------------------------------------------------------------------
Warning: MATLAB Toolbox Path Cache is out of date and is not being used.
Type 'help toolbox_path_cache' for more info
之后我输入export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.20/jre/ 后它就能打开了,但关上终端在打开的时候一切如旧。
想问一下有什么办法能一次解决这个问题吗??
头像
hawk1918
帖子: 222
注册时间: 2009-09-05 16:12

Re: 关于matlab安装的一点问题

#2

帖子 hawk1918 » 2010-04-27 22:53

编写一个py的脚本 :em04
头像
速腾1994
论坛版主
帖子: 17379
注册时间: 2008-11-01 20:43
系统: Arch+gnome

Re: 关于matlab安装的一点问题

#3

帖子 速腾1994 » 2010-04-28 9:34

:em09
sunzhaoyu2000
帖子: 700
注册时间: 2006-10-18 15:48

Re: 关于matlab安装的一点问题

#4

帖子 sunzhaoyu2000 » 2010-04-28 11:47

你们都不一句话解决这个问题么?

在 ~/.bashrc最后添加一句话
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.20/jre/

就行了
Om_o_mO
帖子: 10
注册时间: 2010-04-25 21:35

Re: 关于matlab安装的一点问题

#5

帖子 Om_o_mO » 2010-04-28 11:54

sunzhaoyu2000 写了:你们都不一句话解决这个问题么?

在 ~/.bashrc最后添加一句话
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.20/jre/

就行了
可以写的再详细点吗,刚用这个,不知道啥意思
是直接在终端输入~/.bashrc 这个吗?
头像
lhw828
帖子: 2797
注册时间: 2007-03-15 16:58
来自: 湖北武汉
联系:

Re: 关于matlab安装的一点问题

#6

帖子 lhw828 » 2010-04-28 14:55

好大的软件啊
头像
nmsfan
帖子: 18958
注册时间: 2009-10-16 22:46
来自: finland

Re: 关于matlab安装的一点问题

#7

帖子 nmsfan » 2010-04-28 15:06

Om_o_mO 写了:
sunzhaoyu2000 写了:你们都不一句话解决这个问题么?

在 ~/.bashrc最后添加一句话
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun-1.6.0.20/jre/

就行了
可以写的再详细点吗,刚用这个,不知道啥意思
是直接在终端输入~/.bashrc 这个吗?
~/.bashrc 指的是~/目录下的.bashrc文件

代码: 全选

gedit ~/.bashrc
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
头像
速腾1994
论坛版主
帖子: 17379
注册时间: 2008-11-01 20:43
系统: Arch+gnome

Re: 关于matlab安装的一点问题

#8

帖子 速腾1994 » 2010-04-28 15:10

这样的..
头像
skynow
帖子: 25
注册时间: 2007-05-23 22:13
来自: 重庆

Re: 关于matlab安装的一点问题

#9

帖子 skynow » 2010-04-28 22:44

学习学习~
回复