"No Java interpreter found"-error while trying to install JMagick
I need to install JMagick because I want to use ImageMagick in Java, but there occurs a problem...
Code:
[root@server04 JMagick-6.0.4-0]# ./configure --with-java-home=/usr/java/j2sdk1.4.2 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking for getconf... /usr/bin/getconf checking whether large file support needs explicit enabling... yes checking for X... no checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking jni.h usability... yes checking jni.h presence... yes checking for jni.h... yes checking for java... not_found configure: error: 'No Java interpreter found' [root@server04 JMagick-6.0.4-0]#
Code:
4. Make sure that java, javac, jar, gcc are in your path. Run the configuration script. > ./configure The configuration script has the following options: --prefix=<path> The root path where the installation goes. For example, to install the libraries into /usr/local/jmagick/lib, use --prefix=/usr/local/jmagick --with-magick-home=<path> Use this if your have ImageMagick install in non-standard places. E.g. ./configure --with-magick-home=/usr/local/ImageMagick --with-java-home=<path> Use this to specify where your JDK is installed. This is NOT necessary if you have the JAVA_HOME environment set. E.g. ./configure --with-java-home=/usr/local/java --with-java-includes=<path> Use this to specify a Java include directory. --with-jikes If you wish to use the IBM Jikes compiler instead --enable-diagnostic If you want verbose messages. Only a few messages are available at the moment. --with-javadoc-dir=<path> To specify a directory path for the javadoc. 5. Then make everything.
PS. I am on a FC2-box running Plesk.