JAVA_HOME not defined but it is

Hello,

I'm trying to get Apache FOP to run on my SuSe 9 server.  For whatever 
reason, it does not like my path for the JDK.

Here is my linux path:

PATH=/usr/vsifax/obin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/tmp/ApacheF 
  OP/fop-1.0:/opt/java/jdk1.6.0_23:/usr/vsifax/bin:/usr/vsifax/lbin

The Apache and Java directories are both included...

Here is my "JAVA_HOME" environment variable:

JAVA_HOME=:/opt/java/jdk1.6.0_23



plastics2:/opt # java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

I thought the instructions said I could just enter 'fop' at the command 
line.  I receive 'command not found'.

When I run  fop  I receive the following ... I'm running this from the 
directory when the FOP is installed.

Error: JAVA_HOME is not defined correctly.
  We cannot execute :/opt/java/jdk1.6.0_23/bin/java

The directory is correct for the Java. 

Any help would be greatly appreciated...

Also, after I do verify that this is running properly can I simply convert 
an xml file to a pdf with the following command...

fop -xml anyxmlfile.xml -pdf anypdfile.pdf

Thanks,

Todd

Received on Monday, 27 December 2010 21:43:43 UTC