JAVA_HOME not defined but it is

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JAVA_HOME not defined but it is

tpatterson
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


Reply | Threaded
Open this post in threaded view
|

Re: JAVA_HOME not defined but it is

Dave Pawson-2
> Here is my "JAVA_HOME" environment variable:
>
> JAVA_HOME=:/opt/java/jdk1.6.0_23


> 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.

The message is 'not defined *correctly*' rather than
not defined at all.
:/directory is not a valid path AFAIK?

try /opt/java...


HTH




--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk