Java environment setting after Ubuntu is reinstalled

Source: Internet
Author: User
Java here, the method to check whether you have a java path is to run whichjava in the terminal, I got/usr/bin/java. If sunjava is installed in Ubuntu, run the following command: exportmat_java =/usr/lib/jvm/jdk1.6.0 _ 10/jre/. If no, use the exportmat_java =/home/matlab 2008b/sys/

Java here, the method to check whether you have a java path is to run which java in the terminal. I get/usr/bin/java

If sun java is installed in Ubuntu, run the following command:
Export maid =/usr/lib/jvm/jdk1.6.0 _ 10/jre/
If not, use the built-in matlab
Export maid =/home/maid/sys/java/jre/glnx86/jre
Reference
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 line

Export maid =/usr/lib/jvm/jdk1.6.0 _ 10/jre/

To the Matlab startup script which for me is located at/usr/local/matlab 76/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
Total kluge that I don't understand, so proceed at your own risk. Good luck!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.