LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Matlab 7.5 compiled runtime for 64-bit Linux installation: "No JRE" error? (http://www.linuxquestions.org/questions/linux-newbie-8/matlab-7-5-compiled-runtime-for-64-bit-linux-installation-no-jre-error-838281/)

zeratul111 10-15-2010 10:16 AM

Matlab 7.5 compiled runtime for 64-bit Linux installation: "No JRE" error?
 
Hello Linux gurus,

I am trying to install the Matlab 7.5 compiled runtime for 64-bit Linux (MCRInstaller.75.glnxa64.bin) and keep getting a "No Java Runtime Environment(JRE) was found on this system." error message.

I understand the JRE is bundled with MCRInstaller and will self-compile/install. However, I don't have admin access, could this be the source of the problem? If so, how could I fix it (not sure how to direct it to install locally without going into the source code)?

I got around this error before, but stupid me didn't write down what I did and I forgot. :(

Thanks everyone.

sylvainsf 10-15-2010 11:54 AM

First off type "which java" and hopefully there's a JRE installed somewhere but matlab is looking in the wrong place. If you find a java binary such as:
/usr/local/bin/java

Use this flag with the MCRInstaller:
-is:javahome <dir> JRE home which points to directory containing bin/java.

For the above example you'd use -is:javahome /usr/local

Hope this helps.

zeratul111 10-18-2010 01:30 AM

Hi sylvainsf,

Thanks for your reply. I tried what you suggested, but unfortunately it is still not working and I am getting the same error as before: "No Java Runtime Environment(JRE) was found on this system".

I also tried the following as suggested by the documentation page on mathworks.com, but no luck:

Quote:

1.

Extract the Java Jar file from the application launcher, using the is:extract installation launcher option.

MCRInstaller.bin -is:extract

This option extracts the components, including the Jar filesetup.jar.
2.

Run the Jar file using the JRE that works with your system.

java -jar setup.jar

This starts the installer GUI.
The above gets me to the installation step, with the progress bar, but installation does not progress and I receive the following error message:

Quote:

Errors occurred during the installation.
- JVM not found
... :(

zeratul111 10-19-2010 07:24 PM

Just wanted to update that I got the 32-bit version installing perfectly. Still unsure why the 64-bit version was giving me trouble. :S


All times are GMT -5. The time now is 09:19 PM.