Description of problem: jruby fails on startup with the following error; [danh@dan java]$ jruby -v jruby 1.1.3 (ruby 1.8.6 patchlevel 114) (2008-07-29 rev 6586) [i386-java] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/TypeMapper at org.jruby.ext.posix.POSIXFactory$1.<init>(POSIXFactory.java:13) at org.jruby.ext.posix.POSIXFactory.<clinit>(POSIXFactory.java:12) at org.jruby.Ruby.init(Ruby.java:854) at org.jruby.Ruby.newInstance(Ruby.java:158) at org.jruby.Main.run(Main.java:164) at org.jruby.Main.run(Main.java:91) at org.jruby.Main.main(Main.java:82) [danh@dan java]$ rpm -ql jna /usr/lib/jna /usr/lib/jna/libjnidispatch.so /usr/share/doc/jna-3.0.4 /usr/share/doc/jna-3.0.4/LICENSE.txt /usr/share/java/jna-3.0.4.jar /usr/share/java/jna.jar
I'm pretty sure this was my old 1.1.3-1 package; get the newer one from updates and this should be fixed.
Thanks for the prompt reply Conrad. There is no package in updates, the output from yum info is below. [danh@dan java]$ sudo yum info jruby Loaded plugins: refresh-packagekit Available Packages Name : jruby Arch : noarch Version : 1.1.3 Release : 2.fc10 Size : 4.7 M Repo : fedora Summary : Pure Java implementation of the Ruby interpreter URL : http://jruby.codehaus.org/ License : (CPL or GPLv2+ or LGPLv2+) and ASL 1.1 and MIT and Ruby Description: JRuby is an 100% pure-Java implementation of the Ruby programming language. Features: * A 1.8.5 compatible Ruby : interpreter * Most builtin Ruby classes provided * Support for interacting with and defining Java classes from within : Ruby * Bean Scripting Framework (BSF) support Cheers Dan
Bummer, then it's not something I've run into already :(. Well, I've got 1.1.5 working locally (on F-9), it's just blocking on a review of a package. See bug 473451.
Hi, can you try installing jruby 1.1.6-1 from rawhide? It should work. Thanks!
Conrad, I have tried to install the version of Jruby from rawhide but I don't get 1.1.6-1, I get 1.1.3-2 (and that doesn't work either)! Here is the output; ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: jruby noarch 1.1.3-2.fc10 rawhide 4.7 M Transaction Summary ======================================================================================================================== Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 4.7 M Is this ok [y/N]: y Downloading Packages: jruby-1.1.3-2.fc10.noarch.rpm | 4.7 MB 00:26 ================================================== Entering rpm code =================================================== Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : jruby 1/1 =================================================== Leaving rpm code =================================================== Installed: jruby.noarch 0:1.1.3-2.fc10 Complete! [danh@dan ~]$ jruby -v jruby 1.1.3 (ruby 1.8.6 patchlevel 114) (2008-07-29 rev 6586) [i386-java] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/TypeMapper at org.jruby.ext.posix.POSIXFactory$1.<init>(POSIXFactory.java:13) at org.jruby.ext.posix.POSIXFactory.<clinit>(POSIXFactory.java:12) at org.jruby.Ruby.init(Ruby.java:854) at org.jruby.Ruby.newInstance(Ruby.java:158) at org.jruby.Main.run(Main.java:164) at org.jruby.Main.run(Main.java:91) at org.jruby.Main.main(Main.java:82) Should I be looking at the rawhide for FC11 instead of 10 or has is not filtered down to the mirrors yet? Hope you can help, Cheers Dan.
Rawhide lags about a day behind Koji -- 1.1.6-1 works. If you want to grab 1.1.6-1 from Koji to try it out before Rawhide gets it, you can grab it from here: http://koji.fedoraproject.org/koji/buildinfo?buildID=82773 Note you'll also need new builds of constantine, bytelist, joni, and jcodings. I may be forgetting something, but here are links to those 4: http://koji.fedoraproject.org/koji/buildinfo?buildID=82820 http://koji.fedoraproject.org/koji/buildinfo?buildID=74519 http://koji.fedoraproject.org/koji/buildinfo?buildID=82802 http://koji.fedoraproject.org/koji/buildinfo?buildID=73819 Hope that works!
(Or you can wait a day or two, and install it using "yum --enablerepo=rawhide install jruby" as you were trying before.)
Conrad, installed using your instructions and I now have a fully functional Jruby install. I will leave it a day or two and then test from rawhide to make sure that all is well. Will this get rolled back into FC10 seeing as it is non-functional or will it be left to FC11? Thanks for all your efforts, it is much appreciated. Cheers, Dan.
The packages from rawhide will be bit-for-bit identical to the ones you got from koji. Sure, I will try to get this into F-10 as well. I'll leave this bug open until I get that done, does that work?
Fine by me. Cheers Dan
Installed and fully functional from FC10 rawhide after removing the manual installation.
Cool, closing.
jruby-1.1.6-1.fc10, joni-1.1.2-1.fc10, bytelist-1.0.1-0.1.svn9177.fc10, jcodings-1.0.1-1.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.