LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2010, 09:16 AM   #1
zeratul111
LQ Newbie
 
Registered: Sep 2010
Posts: 19

Rep: Reputation: Disabled
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.

Last edited by zeratul111; 10-15-2010 at 09:17 AM.
 
Old 10-15-2010, 10:54 AM   #2
sylvainsf
LQ Newbie
 
Registered: Aug 2010
Location: San Francisco
Distribution: CentOS
Posts: 7

Rep: Reputation: 1
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.
 
Old 10-18-2010, 12:30 AM   #3
zeratul111
LQ Newbie
 
Registered: Sep 2010
Posts: 19

Original Poster
Rep: Reputation: Disabled
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
...
 
Old 10-19-2010, 06:24 PM   #4
zeratul111
LQ Newbie
 
Registered: Sep 2010
Posts: 19

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-25-2019, 12:46 PM   #5
LinAppAdm18
LQ Newbie
 
Registered: Oct 2019
Location: Ottawa, Canada
Distribution: Ubuntu, CentOS
Posts: 3

Rep: Reputation: Disabled
Lightbulb 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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
[SOLVED] booting a newly compiled kernel error :"invalid or unsupported executable format" shivanth Linux - Kernel 1 09-16-2009 06:57 AM
Runtime.getRuntime().exec("cd") returns java.io.IOException, error 2 in java tatarin Programming 4 03-28-2008 07:42 PM
Getting ERROR "no valid devices were found ..." on Installation of RedHat Linux 9 salil.mehta Linux - Laptop and Netbook 16 07-25-2006 08:45 PM
error loading a kernel module, "compiled using gcc2" taozilla Linux - Software 0 11-21-2003 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration