{"id":7499,"date":"2016-11-26T23:59:05","date_gmt":"2016-11-26T22:59:05","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=7499"},"modified":"2022-03-16T18:48:07","modified_gmt":"2022-03-16T17:48:07","slug":"warum-laeuft-die-osgi-konsole-in-neueren-versionen-nicht-mehr-so-wie-frueher","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=7499","title":{"rendered":"Warum l\u00e4uft die OSGI-Konsole in neueren Versionen nicht mehr so wie fr\u00fcher?"},"content":{"rendered":"<p>In \u00e4lteren OSGI Versionen konnte die Konsole einfach \u00fcber einen Aufruf:<\/p>\n<pre class=\"lang:default decode:true \" >java -jar org.eclipse.osgi_VERSION.jar -console<\/pre>\n<p>gestartet werden. In neueren Versionen l\u00e4uft es nicht mehr. D.h. es gibt noch nicht einmal eine Fehlermeldung.<\/p>\n<p>Die neue Konsole ist nun Teil von der Apache Felix Gogo shell. Ab dem Eclipse Release 4.4 (Luna) ist die Built-in OSGi-Konsole komplett von dem Equinox Framework entfernt worden.<!--more--><\/p>\n<p>Wenn das <a href=\"https:\/\/download.eclipse.org\/equinox\/\" target=\"_blank\" rel=\"noopener noreferrer\">Equinox SKD <\/a><\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.03.32.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.03.32.png\" alt=\"bildschirmfoto-2016-11-26-um-10-03-32\" width=\"1044\" height=\"381\" class=\"aligncenter size-full wp-image-7500\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.03.32.png 1044w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.03.32-300x109.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.03.32-768x280.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.03.32-1024x374.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a> geladen und entpackt wurde, muss noch eine <strong>config.ini<\/strong> Datei im Verzeichnis <strong>configuration<\/strong> mit folgenden Inhalt angelegt werden:<\/p>\n<pre class=\"lang:default decode:true \" >osgi.bundles=.\/org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar@start,\\\r\n    .\/org.apache.felix.gogo.command_0.10.0.v201209301215.jar@start,\\\r\n    .\/org.apache.felix.gogo.shell_0.10.0.v201212101605.jar@start,\\\r\n    .\/org.eclipse.equinox.console_1.1.200.v20150929-1405.jar@start,\\\r\nosgi.console=1234 <\/pre>\n<p>Das Verzeichnis sieht dann so aus:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.08.54.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.08.54.png\" alt=\"bildschirmfoto-2016-11-26-um-10-08-54\" width=\"502\" height=\"266\" class=\"aligncenter size-full wp-image-7501\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.08.54.png 502w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.08.54-300x159.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/a><\/p>\n<p>Nun kann auch die OSGI-Konsole wieder gestartet werden, z.B. mit:<\/p>\n<pre class=\"lang:default decode:true \" >\r\n\/Library\/Java\/JavaVirtualMachines\/jdk1.8.0_51.jdk\/Contents\/Home\/bin\/java -jar org.eclipse.osgi_3.11.0.v20160603-1336.jar -console\r\n<\/pre>\n<p>Ein <strong>ss<\/strong> liefert dann das gew\u00fcnschte Ergebnis:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.14.28.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.14.28.png\" alt=\"bildschirmfoto-2016-11-26-um-10-14-28\" width=\"791\" height=\"302\" class=\"aligncenter size-full wp-image-7502\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.14.28.png 791w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.14.28-300x115.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2016\/11\/Bildschirmfoto-2016-11-26-um-10.14.28-768x293.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Weitere Infos zu der neuen Konsole gibt es auf der <a href=\"https:\/\/help.eclipse.org\/latest\/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fconsole_shell.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Eclipse Online Hilfe Seite<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In \u00e4lteren OSGI Versionen konnte die Konsole einfach \u00fcber einen Aufruf: java -jar org.eclipse.osgi_VERSION.jar -console gestartet werden. In neueren Versionen l\u00e4uft es nicht mehr. D.h. es gibt noch nicht einmal eine Fehlermeldung. Die neue Konsole ist nun Teil von der Apache Felix Gogo shell. Ab dem Eclipse Release 4.4 (Luna) ist die Built-in OSGi-Konsole komplett &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=7499\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eWarum l\u00e4uft die OSGI-Konsole in neueren Versionen nicht mehr so wie fr\u00fcher?\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2678],"tags":[2680,346,2177,2178,345,2679,2182],"class_list":["post-7499","post","type-post","status-publish","format-standard","hentry","category-eclipse","category-osgi","tag-bundel","tag-console","tag-eclipse","tag-java","tag-konsole","tag-osgi","tag-programmierung"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/7499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7499"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/7499\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7499"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}