Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu重装后Java环境的设置

java下载地址在这里,检测你是否有 java 路径的方法是在终端中运行 which java,我得到了/usr/bin/java如果Ubuntu下安装了sun java用下面的命令
export MATLAB_JAVA=/usr/lib/jvm/jdk1.6.0_10/jre/
如没没有,使用matlab自带的
export MATLAB_JAVA=/home/matlab2008b/sys/java/jre/glnx86/jre
参考自
ust to follow up on this, in case anyone out there is interested, I am now using Compiz version 0.6.3~git20080115.0ea58487-1 on Debian Lenny with kernel 2.6.24-1-amd64, and I am running Matlab 2008a. I have found that the latest snapshot of the JRE is working relatively well with Matlab, which you can find at http://download.java.net/jdk6/binaries/. I instruct Matlab to use this JRE by adding this lineexport MATLAB_JAVA=/usr/lib/jvm/jdk1.6.0_10/jre/ to the Matlab startup script which for me is located at /usr/local/matlab76/bin/matlab (your Matlab root may differ, and the location of your JRE may differ). One key requirement is that you create the symbolic link from motif21 to motif12 in the amd64 directory which for me is located in /usr/lib/jvm/jdk1.6.0_10/jre/lib/amd64 (again your location may differ). I have found that the old workaround "export AWT_TOOLKIT=MToolkit" cannot be set for any of this to work. Also know that the motif12 link is a
total kluge that I don"t understand, so proceed at your own risk. Good luck!红旗Linux桌面6.0 SP3 新特性介绍Ubuntu下交叉编译tslib-1.4记录相关资讯      Ubuntu知识 
  • Ubuntu 有这功能吗?-回答4个新用  (10/14/2014 16:54:49)
  • Ubuntu小知识总结  (07/08/2013 17:02:10)
  • 万圣节Halloween与Ubuntu  (10/31/2012 07:59:01)
  • Ubuntu系统诞生10周年:让Linux更  (10/14/2014 16:53:00)
  • Ubuntu 官方发布 Ubuntu 应用程序  (02/15/2013 21:49:58)
  • Ubuntu内置捐款选项:为掌握用户需  (10/11/2012 13:57:23)
本文评论 查看全部评论 (0)
表情: 姓名: 字数