I am having a hell of a time installing the Java-Gnome bindings. I am
running a RedHat 7.0 system with Ximian Gnome 1.4 beta (from the
red-carpet channel ;) and I have three different JDK's installed.
IBM1.3 and Kaffe (from the rpm) and Sun's JDK1.3
Here is my $PATH:
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/manyoso/bin: No
such file or directory
The Kaffe tools are installed in /usr/bin and the IBM and SUN JDK's are
installed in /usr/java/IBMJava2-13 and /usr/java/jdk1.3 respectively. I
did not have the JAVA_HOME variable set nor the CLASSPATH. I downloaded
the src.rpm and installed. Then i took the tar file and put it in my
home directory.
I untarred java-gnome into my home directory and cd into that directory.
Then I ran ./configure --libdir=/usr/lib as the INSTALL file said. This
was the output:
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install
-c
checking for java... (cached) /usr/java/bin/java
checking for Java - version >= 1.1.7... no
***
*** If you have Java installed and it is a newer version than 1.1.7,
either set
*** the JAVA_HOME variable or add the directory where the Java
binaries are to
*** the PATH. Alternatively try "./configure
--with-java-prefix=<java_home>",
*** e.g. "./configure --with-java-prefix=/usr/jdk".
***
*** Also make sure that configure does not find the wrong version of
Java by
*** looking at the output of "which java".
***
I then set my JAVA_HOME variable to point to /usr/java/jdk1.3 and ran
the ./configure script again. This was the output:
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install
-c
Add /usr/java/IBMJava2-13/bin to path and check again.
checking for java... /usr/java/jdk1.3/bin/java
checking for Java - version >= 1.1.7... yes
checking for javadoc... (cached) /usr/java/bin/javadoc
checking for javac... (cached) /usr/java/bin/javac
checking for java... (cached) /usr/java/jdk1.3/bin/java
checking for jar... (cached) /usr/java/bin/jar
checking for main in -libs... (cached) no
checking for gtk-config... (cached) /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking for gnome-config... (cached) /usr/bin/gnome-config
checking for GNOME - version >= 1.2.0... yes
checking for libglade-config... (cached) /usr/bin/libglade-config
checking for libglade... yes
checking for working const... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
updating cache ./config.cache
creating ./config.status
creating test/Makefile
creating src/Makefile
creating src/tools/Makefile
creating Makefile
creating java-gnome.spec
creating java-gtk.spec
Obviously, it detected my JAVA_HOME variable, but it set the path for
javac and other tools to /usr/java/bin... I then ran make and it barfed
when looking for javac.
I tooled around in the configure script looking for help, but i was
lost. I then made a symbolic link from /usr/java/bin to
/usr/java/jdk1.3/bin and untarred everything and started over. This
time when I ran make, it detected my javac and everything, but it failed
with all kinds of errors... I've attached some of the output from the
make command. I am wondering if this is because I am using Gnome1.4
beta from Ximian.
Any suggestions?
|