W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2010

JAVA_HOME not defined but it is

From: <tpatterson@grand-t.com>
Date: Mon, 27 Dec 2010 11:52:34 -0500
To: www-xsl-fo@w3.org
Message-ID: <OF1A09FF51.9741263B-ON85257806.005C0CB8-85257806.005CB457@grand-t.com>

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:


The Apache and Java directories are both included...

Here is my "JAVA_HOME" environment variable:


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


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:10:13 UTC