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. |
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. |
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:
Quote:
|
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
|
Trick to install 64-bit
The reply to this thread was correct. However, I needed the 64-bit libraries.
To install 64-bit Mathematica Compiler Runtime 7.5 when it doesn't work otherwise on recent Linux: extract both the 32-bit and 64-bit installers as below, then run the 64-bit setup.jar file with the bin/java from provided 32-bit JRE. I've confirmed in my case not possible to install 64-bit release using provided sun JRE. (I also was stumped why I could not run it with a standard JRE such as openjdk 1.7 or 1.8) # console and GUI install failed, try with extract option: ../birdsuite/birdsuite-1.5.5/MCRInstaller.75.glnxa64.bin -is:extract 4 files extracted in the directory ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800 ../birdsuite/birdsuite-1.5.5/MCRInstaller$ cd istemp1629296194800/ # FAIL: try to install setup.jar with provided 64-bit JRE: ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800$ chmod a+x ./jre1.5.0-linux-amd64.bin ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800$ ./jre1.5.0-linux-amd64.bin ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800$ bin/java -jar setup.jar Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object # FAIL: try to install seutp.jar with system java: ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800$ java -jar setup.jar -console The wizard cannot continue because of the following error: could not load wizard specified in /wizard.inf (104) WARNING: could not delete temporary file /tmp/ismp001/5786142 WARNING: could not delete temporary file /tmp/ismp001/2471200 # PASS: try to install setup.jar with 32-bit JRE: ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800$ ../birdsuite/birdsuite-1.5.5/MCRInstaller.75.glnx86.bin -is:extract 4 files extracted in the directory ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800/istemp6585296212110 ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800/istemp6585296212110$ ls JVMNotFound.txt Verify.jar linux-sun-1.5.0.bin setup.jar ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800/istemp6585296212110$ chmod a+x ./linux-sun-1.5.0.bin ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800/istemp6585296212110$ ./linux-sun-1.5.0.bin ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800/istemp658529 6212110$ ls CHANGES README bin linux-sun-1.5.0.bin COPYRIGHT THIRDPARTYLICENSEREADME.txt javaws man JVMNotFound.txt Verify.jar jvm plugin LICENSE Welcome.html lib setup.jar ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800/istemp658529 6212110$ export JAVA_HOME=$(pwd) ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800/istemp658529 6212110$ export JRE_HOME=$(pwd) ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800/istemp658529 6212110$ unset CLASSPATH ../birdsuite/birdsuite-1.5.5/MCRInstaller/istemp1629296194800$ istemp6585296212110/bin/java -jar ./setup.jar -console ------------------------------------------------------------------------------- MATLAB Component Runtime 7.7 - InstallShield Wizard Welcome to the InstallShield Wizard for MATLAB Component Runtime 7.7 The InstallShield Wizard will install MATLAB Component Runtime 7.7 on your computer. To continue, choose Next. MATLAB Component Runtime 7.7 The MathWorks http://www.mathworks.com |
All times are GMT -5. The time now is 12:43 PM. |