Thread: Re: [Java-gnome-developer] problem installing the bindings
Brought to you by:
afcowie
From: manyoso <ma...@ya...> - 2001-04-01 18:37:14
|
I'm sorry. The makeERROR file I attached did not have any errors as you said... However, when I ran "make > makeERROR" their were lot's of errors but they did not output to the makeERROR. I will try all of this again and email the actual errors. On 01 Apr 2001 10:58:44 +0200, Philipp Haller wrote: > I had kind of the same problem. I had installed Sun jdk1.3 and set my $JAVA_HOME to /usr/java/jdk1.3. So Java-gnome detected my jdk. But, just as with your configuration it searched in /usr/java/bin for javac, jar and javadoc. I just put an symlink with ln -s /usr/java/jdk1.3/bin /usr/java/bin before the make. So everything worked fine from then on. > > You attached a file "makeERROR" that contains output from your make. > I can't see any errors in it! > It just compiles all .java and .c files, creates a jar and a lib and that's all, basicly. > > You should try compiling and running some examples, I should work! You just have to tell Java-gnome where to look for the libraries. So you need to do something like this (after make install the libs are in /usr/local/lib): > $ java -Djava.library.path=/usr/local/lib class > > I didn't figure out why you need this command line switch if /usr/local/lib is in LD_LIBRARY_PATH... > Can somebody explain this? > > > On 31 Mar 2001 15:30:14 -0500 > manyoso <ma...@ya...> wrote: > > > 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? > > > > > -- > http://www.javacraft.de - Programmieren in Java _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
From: manyoso <ma...@ya...> - 2001-04-01 22:40:10
Attachments:
makeERROR1
|
OK, here is the full output when I type make and then make install: On 01 Apr 2001 14:42:50 -0400, manyoso wrote: > I'm sorry. The makeERROR file I attached did not have any errors as you > said... However, when I ran "make > makeERROR" their were lot's of > errors but they did not output to the makeERROR. I will try all of this > again and email the actual errors. > > On 01 Apr 2001 10:58:44 +0200, Philipp Haller wrote: > > I had kind of the same problem. I had installed Sun jdk1.3 and set my $JAVA_HOME to /usr/java/jdk1.3. So Java-gnome detected my jdk. But, just as with your configuration it searched in /usr/java/bin for javac, jar and javadoc. I just put an symlink with ln -s /usr/java/jdk1.3/bin /usr/java/bin before the make. So everything worked fine from then on. > > > > You attached a file "makeERROR" that contains output from your make. > > I can't see any errors in it! > > It just compiles all .java and .c files, creates a jar and a lib and that's all, basicly. > > > > You should try compiling and running some examples, I should work! You just have to tell Java-gnome where to look for the libraries. So you need to do something like this (after make install the libs are in /usr/local/lib): > > $ java -Djava.library.path=/usr/local/lib class > > > > I didn't figure out why you need this command line switch if /usr/local/lib is in LD_LIBRARY_PATH... > > Can somebody explain this? > > > > > > On 31 Mar 2001 15:30:14 -0500 > > manyoso <ma...@ya...> wrote: > > > > > 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? > > > > > > > > > -- > > http://www.javacraft.de - Programmieren in Java > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > http://lists.sourceforge.net/lists/listinfo/java-gnome-developer |