{"id":963,"date":"2004-12-22T10:46:00","date_gmt":"2004-12-22T01:46:00","guid":{"rendered":"\/?p=963"},"modified":"2004-12-24T07:12:26","modified_gmt":"2004-12-23T22:12:26","slug":"fedora-core-3-java","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/963.html","title":{"rendered":"Fedora Core 3 Java"},"content":{"rendered":"<p>Fedora Core 3 \u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u6b21\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3042\u3063\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3059\u304b\uff1f<br \/>\nSun\u306eJDK\u3092\u4f7f\u308f\u306a\u3044\u3067gcc-java\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u3068\u3053\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u51fa\u4f1a\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u81ea\u5206\u306f\u3001Fedora Core 1 \u304b\u3089Fedora Core 3\u3078\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u305f\u30de\u30b7\u30f3\u3067\u3001\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u307f\u307e\u3057\u305f\u3002<\/p>\n<div class=\"code\"># \/usr\/bin\/javac Hello.java<br \/>\nlibgcj-javac-placeholder.sh<\/p>\n<p>This script is a placeholder for the \/usr\/bin\/javac<br \/>\nmaster link required by jpackage.org conventions.  libgcj&#8217;s<br \/>\nrmiregistry, rmic and jar tools are now slave symlinks to these<br \/>\nmasters, and are managed by the alternatives(8) system.<\/p>\n<p>This change was necessary because the rmiregistry, rmic and jar tools<br \/>\ninstalled by previous versions of libgcj conflicted with symlinks<br \/>\ninstalled by jpackage.org JVM packages.<br \/>\n\/usr\/bin\/javac: line 13: exec: gcj: not found\n<\/p><\/div>\n<p>Fedora Core 3 \u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3088\u3063\u3066\u3001Java\u30b3\u30de\u30f3\u30c9\u95a2\u4fc2\u306e\u6319\u52d5\u304c\u5fae\u5999\u306b\u9055\u3046\u3088\u3046\u3067\u3059\uff08\u6b63\u78ba\u306a\u8868\u73fe\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\uff09\u3002\u3053\u3053\u306e\u4f8b\u306e\u5834\u5408\u306f\u3001gcj\u30b3\u30de\u30f3\u30c9\u304c\u306a\u3044\u305f\u3081\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001gcc-java\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">yum install gcc-java<\/div>\n<p>\u3053\u306e\u4f5c\u696d\u3092\u3059\u308b\u3068\u3001\u6b21\u306e1\u884c\u306f\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u4ed6\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3042\u3044\u304b\u308f\u3089\u305a\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"code\">\/usr\/bin\/javac: line 13: exec: gcj: not found\n<\/div>\n<p><!--more--><br \/>\n\u305d\u3053\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u306a\u304b\u3092\u306e\u305e\u3044\u3066\u307f\u308b\u3068\u3001gcj\u3092\u547c\u3073\u51fa\u3059\u3060\u3051\u306e\u30b3\u30de\u30f3\u30c9\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002echo\u30b3\u30de\u30f3\u30c9\u3067\u5f37\u5236\u7684\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u3044\u308b\u306e\u3067\u3069\u3046\u3057\u3088\u3046\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3001gcj\u304c\u5b9f\u884c\u3067\u304d\u308b\u74b0\u5883\u3067\u3042\u308c\u3070\u3001\u304d\u3061\u3093\u3068\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308b\u306e\u3067\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6c17\u306b\u3057\u306a\u3051\u308c\u3070\u305d\u306e\u307e\u307e\u4f7f\u3048\u305d\u3046\u3067\u3059\u3002<\/p>\n<div class=\"code\"># cat \/usr\/bin\/javac<br \/>\n#!\/bin\/sh<\/p>\n<p>echo &#8220;libgcj-javac-placeholder.sh&#8221;<br \/>\necho<br \/>\necho &#8220;This script is a placeholder for the \/usr\/bin\/javac&#8221;<br \/>\necho &#8220;master link required by jpackage.org conventions.  libgcj&#8217;s&#8221;<br \/>\necho &#8220;rmiregistry, rmic and jar tools are now slave symlinks to these&#8221;<br \/>\necho &#8220;masters, and are managed by the alternatives(8) system.&#8221;<br \/>\necho<br \/>\necho &#8220;This change was necessary because the rmiregistry, rmic and jar tools&#8221;<br \/>\necho &#8220;installed by previous versions of libgcj conflicted with symlinks&#8221;<br \/>\necho &#8220;installed by jpackage.org JVM packages.&#8221;<br \/>\nexec gcj -C &#8220;$@&#8221;<\/p><\/div>\n<p>\u3068\u3053\u308d\u304c\u3001\u624b\u5143\u306b\u3042\u308b\u3082\u3046\u3072\u3068\u3064\u306eFedora Core 3 \u3067\u306f\u3053\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e2d\u3092\u306e\u305e\u3044\u3066\u307f\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u307e\u3063\u305f\u304f\u9055\u3044\u307e\u3059\u3002<\/p>\n<div class=\"code\"># cat \/usr\/bin\/javac<br \/>\n#!\/bin\/sh<\/p>\n<p>case $CLASSPATH in<br \/>\n\/usr\/share\/java\/ecj.jar) ;;<br \/>\n*) export CLASSPATH=$CLASSPATH${CLASSPATH:+:}\/usr\/share\/java\/ecj.jar<br \/>\nesac<\/p>\n<p>exec \/usr\/bin\/gij<br \/>\n    org.eclipse.jdt.internal.compiler.batch.Main<br \/>\n        -bootclasspath \/usr\/share\/java\/libgcj-3.4.2.jar<br \/>\n        ${1+&#8221;$@&#8221;}<\/p><\/div>\n<p>\u5ff5\u306e\u305f\u3081\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308brpm\u3092\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u9055\u3044\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u304c\u539f\u56e0\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u6700\u521d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3067\u308b\u65b9\u306f\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<div class=\"code\"># rpm -qa | grep java<br \/>\ngcc-java-3.4.2-6.fc3<br \/>\n# rpm -qa | grep gcj<br \/>\nlibgcj-devel-3.4.2-6.fc3<br \/>\nlibgcj-3.4.2-6.fc3<\/div>\n<p>\u3082\u3046\u4e00\u3064\u306eFedora Core 3 \u3092\u30af\u30ea\u30a2\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u65b9\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<div class=\"code\"># rpm -qa | grep java<br \/>\njava-1.4.2-gcj-compat-devel-1.4.2.0-11jpp<br \/>\ncompat-gcc-java-8-3.3.4.2<br \/>\ngcc-java-3.4.2-6.fc3<br \/>\njava-1.4.2-gcj-compat-1.4.2.0-11jpp<br \/>\ndb4-java-4.2.52-6<br \/>\n# rpm -qa | grep gcj<br \/>\ncompat-libgcj-8-3.3.4.2<br \/>\njava-1.4.2-gcj-compat-devel-1.4.2.0-11jpp<br \/>\nlibgcj-devel-3.4.2-6.fc3<br \/>\njava-1.4.2-gcj-compat-1.4.2.0-11jpp<br \/>\nlibgcj-3.4.2-6.fc3<br \/>\ncompat-libgcj-devel-8-3.3.4.2<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Fedora Core 3 \u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u6b21\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3042\u3063\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3059\u304b\uff1f Sun\u306eJDK\u3092\u4f7f\u308f\u306a\u3044\u3067gcc-java\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u3068\u3053\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u51fa\u4f1a\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u81ea\u5206\u306f\u3001Fedora Co &hellip; <a href=\"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/963.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,6],"tags":[],"class_list":["post-963","post","type-post","status-publish","format-standard","hentry","category-java","category-linux"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=963"}],"version-history":[{"count":0,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/963\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}