You are not logged in.

#1 2014-09-29 12:12:31

rassibassi
Member
Registered: 2014-09-29
Posts: 2

[Solved] Matlab R14 installation fails

Same problem as here, but I still get an error even with "-javadir".

Using the Linux 64 Bit version from Mathworks.com.

# sudo ./install -v -javadir /usr/lib/jvm/java-7-openjdk/jre/
Preparing installation files ...
cp: cannot stat ‘/home/rasmus/Downloads/matlab/java/*’: Not a directory
cp: cannot stat ‘/home/rasmus/Downloads/matlab/bin/glnxa64/*’: No such file or directory
find: `/tmp/mathworks_4115/java/jar': No such file or directory
find: `/tmp/mathworks_4115/java/jarext': No such file or directory
->  DVD                 = /home/rasmus/Downloads/matlab
->  ARCH                = glnxa64
->  DISPLAY             = :0
->  TESTONLY            = 0
->  JRE_LOC             = /tmp/mathworks_4115/sys/java/jre/glnxa64/jre
->  LD_LIBRARY_PATH     = /tmp/mathworks_4115/bin/glnxa64
 
Command to run:
/tmp/mathworks_4115/sys/java/jre/glnxa64/jre/bin/java -Xmx512m   -splash:"/home/rasmus/Downloads/matlab/java/splash.png" -Djava.ext.dirs=/tmp/mathworks_4115/sys/java/jre/glnxa64/jre/lib/ext com/mathworks/professionalinstaller/Launcher -root "/home/rasmus/Downloads/matlab" -tmpdir "/tmp/mathworks_4115" 
 
Installing ...
Error: Could not find or load main class com.mathworks.professionalinstaller.Launcher
Finished

I took a look in the source of "./install"
its right after 'echo "Preparing installation files ..."' when it fails sad


[...]
copyDirWritable() { 
    # Copy an entire directory.  This will create the destination 
    # directory, do a recursive copy, and then make all the files and 
    # directories writable.
    # usage: copyDirWritable src dest
    srcDir=$1
    destDir=$2

    mkdir -p "$destDir"
    cp -RLf "$srcDir"/* "$destDir"
    chmod -R +w "$destDir" 2>/dev/null

    }
#========================= java_launcher (end) ==============================
    copyJREAndJarsToTmp () {
    #
    # Copy JRE and Jars to tmp
    #
    echo "Preparing installation files ..."

    NEW_JRE_LOC="$TEMP_DIR/sys/java/jre/$ARCH/jre"
    copyDirWritable "$JRE_LOC" "$NEW_JRE_LOC"
    JRE_LOC=$NEW_JRE_LOC

    JAVA_DIR="$TEMP_DIR/java"
    JAR_LOC="$JAVA_DIR/jar"
    JAREXT_LOC="$JAVA_DIR/jarext"
    copyDirWritable "$ROOT/java" "$JAVA_DIR"
    }
[...]

Last edited by rassibassi (2014-10-01 11:25:41)

Offline

#2 2014-10-01 11:25:17

rassibassi
Member
Registered: 2014-09-29
Posts: 2

Re: [Solved] Matlab R14 installation fails

I made it work by downloading and installing from the ISO

Offline

Board footer

Powered by FluxBB