Java executable not found although available

Lentes, Bernd bernd.lentes at helmholtz-muenchen.de
Wed Nov 9 18:23:58 UTC 2016


Hi,

i have a server which is started by a script. Ubuntu is 14.04. In the script the java executable is launched with some parameters.
bash complains about not finding the file although it is available at exact that position:

root at PC62470:/usr/local/GenePattern# ./StartGenePatternServer
/usr/local/GenePattern/jre/bin/java   -Xmx1024m -Xms256m  com.zerog.lax.LAX /usr/local/GenePattern/./StartGenePatternServer.lax /tmp/env.properties.3685

./StartGenePatternServer: 1715: exec: /usr/local/GenePattern/jre/bin/java: not found


This are the respective lines in the script:

 if [ $cpArg  ]; then
                exec "$actvm" $options $cpArg "$CLASSPATH" $lax_nl_java_launcher_main_class "$propfname" "$envPropertiesFile" $cmdLineArgs
        else
                echo ""$actvm" $options $lax_nl_java_launcher_main_class "$propfname" "$envPropertiesFile" $cmdLineArgs \n"
                exec "$actvm" $options $lax_nl_java_launcher_main_class "$propfname" "$envPropertiesFile" $cmdLineArgs       <===== line 1715
        fi

As you see i added an echo before line 1715.

The script is launching /usr/local/GenePattern/jre/bin/java. Exactly this file is avaible:

root at PC62470:/usr/local/GenePattern# ll /usr/local/GenePattern/jre/bin/java
-rwxrwxrwx 1 root root 47308 Sep 15  2010 /usr/local/GenePattern/jre/bin/java*

root at PC62470:/usr/local/GenePattern# file /usr/local/GenePattern/jre/bin/java
/usr/local/GenePattern/jre/bin/java: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

Launching java manually also does not work:

root at PC62470:/usr/local/GenePattern# /usr/local/GenePattern/jre/bin/java
-bash: /usr/local/GenePattern/jre/bin/java: No such file or directory

Same via relative path:

root at PC62470:/usr/local/GenePattern# jre/bin/java
-bash: jre/bin/java: No such file or directory

Any ideas ?


Bernd

-- 
Bernd Lentes 

Systemadministration 
institute of developmental genetics 
Gebäude 35.34 - Raum 208 
HelmholtzZentrum München 
bernd.lentes at helmholtz-muenchen.de 
phone: +49 (0)89 3187 1241 
fax: +49 (0)89 3187 2294 

Erst wenn man sich auf etwas festlegt kann man Unrecht haben 
Scott Adams
 

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671





More information about the ubuntu-users mailing list