[opensuse] More about installation of the Jikes compiler
Sorry I am unable to thread this message with those that have gone before. I
have to use a different mail client, which is a consequence of the progress
of "Jikes".
To review: I had been unable to install Jikes, and Bogdan was kind enough to
direct me to
http://benjiweber.co.uk:8080/webpin/index.jsp?searchTerm=Jikes&distro=openSUSE_102,
which contains a pointer to a site at which the jikes package is available. I
found and selected the x86_64 flavor of the program, to match my hardware.
Installing the package seemed successful (there was a notice announcing this).
I rebooted, to assure myself that the installation actually "took".
Writing "jikes" in the Search field of the lizard menu brought up a line
reading
How do you have installed Jikes? I recommend using yast or zypper by adding the url where the package is located and then install it. Using zypper from CLI, the commands are (run as root): zypper sa http://download.opensuse.org/distribution/10.2/repo/oss/suse zypper in jikes For other java programs, you could try to update your installation using the above method. On Sunday 02 September 2007 20:28, Stan Goodman wrote:
Sorry I am unable to thread this message with those that have gone before. I have to use a different mail client, which is a consequence of the progress of "Jikes".
To review: I had been unable to install Jikes, and Bogdan was kind enough to direct me to <http://benjiweber.co.uk:8080/webpin/index.jsp?searchTerm=Jikes&distro=open SUSE_102>, which contains a pointer to a site at which the jikes package is available. I found and selected the x86_64 flavor of the program, to match my hardware.
Installing the package seemed successful (there was a notice announcing this). I rebooted, to assure myself that the installation actually "took". Writing "jikes" in the Search field of the lizard menu brought up a line reading
, and I clicked on it -- which produced nothing visible. (Running jikes with no arguments is supposed to bring up a help screen). Much worse, the three Java programs on which I rely no longer start; clicking on their desktop icons does nothing whatever. Apparently jikes, which is itself a Java program has done somehow screwed up the Java installation.
I tried to start one of the java programs manually, by which is easy to do, and which I have done before. The result is as follows:
***** stan@poblano:~/bin/jftp> java -jar lib/jftp.jar Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7) at java.awt.Font.tk(libgcj.so.7) at java.awt.Font.getPeerFromToolkit(libgcj.so.7) at java.awt.Font.<init>(libgcj.so.7) at javax.swing.plaf.FontUIResource.<init>(libgcj.so.7) at javax.swing.plaf.metal.DefaultMetalTheme.<clinit>(libgcj.so.7) at java.lang.Class.initializeClass(libgcj.so.7) at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(libgcj.so.7) at javax.swing.plaf.metal.MetalLookAndFeel.<init>(libgcj.so.7) at javax.swing.UIManager.<clinit>(libgcj.so.7) at java.lang.Class.initializeClass(libgcj.so.7) at com.myjavaworld.jftp.JFTPPreferences.<init>(Unknown Source) at com.myjavaworld.jftp.am.n(Unknown Source) at com.myjavaworld.jftp.am.<clinit>(Unknown Source) at java.lang.Class.initializeClass(libgcj.so.7) at com.myjavaworld.jftp.JFTPApplication.<init>(Unknown Source) at com.myjavaworld.jftp.JFTPApplication.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit at java.lang.Class.forName(libgcj.so.7) at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7) ...16 more *****
I have no idea how to proceed in this case, and would be grateful for any advice or comment.
-- Stan Goodman Qiryat Tiv'on Israel
-- Bogdan Cristea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stan Goodman wrote:
Installing the package seemed successful (there was a notice announcing this). I rebooted, to assure myself that the installation actually "took".
Rebooted? but why? To ensure that the installation took, it is necessary only to run the program. if it runs, the installation was successful.
Writing "jikes" in the Search field of the lizard menu brought up a line reading
, and I clicked on it -- which produced nothing visible. (Running jikes with no arguments is supposed to bring up a help screen).
Right - to get the help text, I'd open a terminal and type "jikes"
Much worse, the three Java programs on which I rely no longer start; clicking on their desktop icons does nothing whatever. Apparently jikes, which is itself a Java program has done somehow screwed up the Java installation.
I tried to start one of the java programs manually, by which is easy to do, and which I have done before. The result is as follows:
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
Ouch - looks like jikes has done something. I've never used jikes, but that does not sound at all kosher. If your java is all installed from rpm packages, you can check them to see what, if anything, has been damaged. I'm starting from ignorance about jikes, and assuming a worst-case scanario here. So I'd first remove jikes, then generate a list of the main java packages to check. On my box, I get: lucy: /home/jjs (tty/dev/pts/3): bash: 1031 > rpm -qa | grep '^java' java-1_5_0-sun-alsa-1.5.0_update12-3.1 java-1_4_2-gcj-compat-devel-1.4.2.0-66 java-1_5_0-sun-1.5.0_update12-3.1 java-1_4_2-cacao-devel-0.96-22 java-1_5_0-sun-jdbc-1.5.0_update12-3.1 java-1_5_0-sun-devel-1.5.0_update12-3.1 javamail-1.4-16 java-1_5_0-sun-plugin-1.5.0_update12-3.1 java-1_4_2-gcj-compat-1.4.2.0-66 java-1_4_2-cacao-0.96-22 I'd then check each of these with rpm -V to see which files might be missing or damaged. I'll put the above list into a file called "java-pkgs" and issue the following command: for i in `cat java-pkgs `do echo $i rpm -V $i echo 'next?' read junk done If any of these shows damage, I'd reinstall it... and no reboot. Was jikes installed with yast or zypper, or was it downloaded and installed with an rpm command? were there any warnings? Just for giggles, I downloaded jikes and took a look. Here is the list of files in the jikes which I just installed with zypper: lucy: /home/jjs (tty/dev/pts/3): bash: 1045 > rpm -ql jikes /usr/bin/jikes /usr/include/jikesapi.h /usr/share/doc/packages/jikes /usr/share/doc/packages/jikes/AUTHORS /usr/share/doc/packages/jikes/COPYING /usr/share/doc/packages/jikes/ChangeLog /usr/share/doc/packages/jikes/NEWS /usr/share/doc/packages/jikes/README /usr/share/doc/packages/jikes/TODO /usr/share/doc/packages/jikes/license.htm /usr/share/man/man1/jikes.1.gz I see absolutely no possibility of conflict with any installed java files here. After installing jikes, I still have no problem running any of my java programs - editix, limerwire, azureus all work as before. I suspect there may be something else going on with your system. Happy hunting and good luck! Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 02 September 2007 22:24, joe wrote:
Stan Goodman wrote:
Installing the package seemed successful (there was a notice announcing this). I rebooted, to assure myself that the installation actually "took".
Rebooted? but why? To ensure that the installation took, it is necessary only to run the program. if it runs, the installation was successful.
It is the result of long habit from a pre-Linux existence. It certainly didn't create the subsequent problem.
Writing "jikes" in the Search field of the lizard menu brought up a line reading
, and I clicked on it -- which produced nothing visible. (Running jikes with no arguments is supposed to bring up a help screen). Right - to get the help text, I'd open a terminal and type "jikes"
Too late. The bloody thing is gone.
Much worse, the three Java programs on which I rely no longer start; clicking on their desktop icons does nothing whatever. Apparently jikes, which is itself a Java program has done somehow screwed up the Java installation.
I tried to start one of the java programs manually, by which is easy to do, and which I have done before. The result is as follows:
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
Ouch - looks like jikes has done something. I've never used jikes, but that does not sound at all kosher. If your java is all installed from rpm packages, you can check them to see what, if anything, has been damaged. I'm starting from ignorance about jikes, and assuming a worst-case scanario here. So I'd first remove jikes, then generate a list of the main java packages to check. On my box, I get:
lucy: /home/jjs (tty/dev/pts/3): bash: 1031 > rpm -qa | grep '^java' java-1_5_0-sun-alsa-1.5.0_update12-3.1 java-1_4_2-gcj-compat-devel-1.4.2.0-66 java-1_5_0-sun-1.5.0_update12-3.1 java-1_4_2-cacao-devel-0.96-22 java-1_5_0-sun-jdbc-1.5.0_update12-3.1 java-1_5_0-sun-devel-1.5.0_update12-3.1 javamail-1.4-16 java-1_5_0-sun-plugin-1.5.0_update12-3.1 java-1_4_2-gcj-compat-1.4.2.0-66 java-1_4_2-cacao-0.96-22
Just for laughs (no giggling), here is a list of checked packages that the Software Management tool turns up when searched for "java"; classpath gcc41-gij gcc41-gij_32bit gcc-gij java-1_4_2-gcj-compat java-1_4_2-gcj-compat_32bit jre (with a padlock; this is jre v1.6.0_02) libgcj41 libgcj41-32bit
I'd then check each of these with rpm -V to see which files might be missing or damaged. I'll put the above list into a file called "java-pkgs" and issue the following command:
for i in `cat java-pkgs `do echo $i rpm -V $i echo 'next?' read junk done
As you probably read in a previous note to Bogdan, I've localized the problem to Java v1.4.2, which I intend to uninstall, so that v1.6.0 will be the default jvm. Everything I have works fine with 1.6.0.
If any of these shows damage, I'd reinstall it... and no reboot.
Was jikes installed with yast or zypper, or was it downloaded and installed with an rpm command? were there any warnings?
It was installed automatically from the website where it was found, using Zeninstaller. There were no warnings. The first thing the installation told me was "Success!".
Just for giggles, I downloaded jikes and took a look. Here is the list of files in the jikes which I just installed with zypper:
lucy: /home/jjs (tty/dev/pts/3): bash: 1045 > rpm -ql jikes /usr/bin/jikes /usr/include/jikesapi.h /usr/share/doc/packages/jikes /usr/share/doc/packages/jikes/AUTHORS /usr/share/doc/packages/jikes/COPYING /usr/share/doc/packages/jikes/ChangeLog /usr/share/doc/packages/jikes/NEWS /usr/share/doc/packages/jikes/README /usr/share/doc/packages/jikes/TODO /usr/share/doc/packages/jikes/license.htm /usr/share/man/man1/jikes.1.gz
I see absolutely no possibility of conflict with any installed java files here. After installing jikes, I still have no problem running any of my java programs - editix, limerwire, azureus all work as before. I suspect there may be something else going on with your system. Happy hunting and good luck!
OK, there was no possibility. Still, Java was working fine minutes before the installation, and was fouled up right afterward.
Joe
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Bogdan Cristea
-
joe
-
Stan Goodman