LINUX.ORG.RU

Запуск стороннего приложения под Ubuntu


0

0

Здравствуйте Уважаемые пользователи данного форума. Хочу предупредить, что я не очень силен в Linux, но по мере возможности пытаюсь образовываться :). Вопрос в том: У меня под VMWare стоит Ubuntu Server 9.04 под ним работал java сервер LineAge2 (для личного боловства). Все было отлично, пока у разработчика L2jserver не появилась возможность настраивать сервер с помощью графической утилиты. Я установил на Ubuntu Server KDE с помощью команды apt-get install xserver-xorg kdm kde И попробовал запустить эту оболочку, но получил ругательный ответ:

root@LineAge2-Server:/Gracia/login# ./L2JConfig.sh

No protocol specified Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.ja va:68) at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at java.awt.Toolkit$2.run(Toolkit.java:834) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826) at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:126) at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel. java:1556) at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130) at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1591) at javax.swing.UIManager.setLookAndFeel(UIManager.java:541) at javax.swing.UIManager.setLookAndFeel(UIManager.java:581) at net.sf.l2j.configurator.ConfigUserInterface.main(ConfigUserInterface.java:93)

Вот, огромная просьба помочь разобраться в чем дело. Если это сможет как то помочь вот ссылка на утилиту http://www.l2jserver.com/2009/06/new-gui-tools/

Re: Запуск стороннего приложения под Ubuntu

Жабовских либ не хватает. Поставь сановский jre и сделай его по умолчанию:

sudo apt-get install sun-java6-bin sun-java6-jre
sudo update-java-alternatives -s java-6-sun

JB ★★★★★ ()

Re: Запуск стороннего приложения под Ubuntu

К сожалению ничего не изменилось :(

Вот что произошло:

root@LineAge2-Server://# apt-get install sun-java6-bin sun-java6-jre Reading package lists... Done Building dependency tree Reading state information... Done sun-java6-bin is already the newest version. sun-java6-bin set to manually installed. sun-java6-jre is already the newest version. sun-java6-jre set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.

root@LineAge2-Server://# update-java-alternatives -s java-6-sun No alternatives for firefox-javaplugin.so. No alternatives for iceape-javaplugin.so. No alternatives for iceweasel-javaplugin.so. No alternatives for midbrowser-javaplugin.so. No alternatives for mozilla-javaplugin.so. No alternatives for xulrunner-1.9-javaplugin.so. No alternatives for xulrunner-javaplugin.so. Using '/usr/lib/jvm/java-6-sun/bin/appletviewer' to provide 'appletviewer'. Using '/usr/lib/jvm/java-6-sun/bin/apt' to provide 'apt'. Using '/usr/lib/jvm/java-6-sun/bin/extcheck' to provide 'extcheck'. Using '/usr/lib/jvm/java-6-sun/bin/HtmlConverter' to provide 'HtmlConverter'. Using '/usr/lib/jvm/java-6-sun/bin/idlj' to provide 'idlj'. Using '/usr/lib/jvm/java-6-sun/bin/jarsigner' to provide 'jarsigner'. Using '/usr/lib/jvm/java-6-sun/bin/jar' to provide 'jar'. Using '/usr/lib/jvm/java-6-sun/bin/javac' to provide 'javac'. Using '/usr/lib/jvm/java-6-sun/bin/javadoc' to provide 'javadoc'. Using '/usr/lib/jvm/java-6-sun/bin/javah' to provide 'javah'. Using '/usr/lib/jvm/java-6-sun/bin/javap' to provide 'javap'. Using '/usr/lib/jvm/java-6-sun/bin/java-rmi.cgi' to provide 'java-rmi.cgi'. Using '/usr/lib/jvm/java-6-sun/bin/jconsole' to provide 'jconsole'. Using '/usr/lib/jvm/java-6-sun/bin/jdb' to provide 'jdb'. Using '/usr/lib/jvm/java-6-sun/bin/jhat' to provide 'jhat'. Using '/usr/lib/jvm/java-6-sun/bin/jinfo' to provide 'jinfo'. Using '/usr/lib/jvm/java-6-sun/bin/jmap' to provide 'jmap'. Using '/usr/lib/jvm/java-6-sun/bin/jps' to provide 'jps'. Using '/usr/lib/jvm/java-6-sun/bin/jrunscript' to provide 'jrunscript'. Using '/usr/lib/jvm/java-6-sun/bin/jsadebugd' to provide 'jsadebugd'. Using '/usr/lib/jvm/java-6-sun/bin/jstack' to provide 'jstack'. Using '/usr/lib/jvm/java-6-sun/bin/jstatd' to provide 'jstatd'. Using '/usr/lib/jvm/java-6-sun/bin/jstat' to provide 'jstat'. Using '/usr/lib/jvm/java-6-sun/bin/native2ascii' to provide 'native2ascii'. Using '/usr/lib/jvm/java-6-sun/bin/rmic' to provide 'rmic'. Using '/usr/lib/jvm/java-6-sun/bin/schemagen' to provide 'schemagen'. Using '/usr/lib/jvm/java-6-sun/bin/serialver' to provide 'serialver'. Using '/usr/lib/jvm/java-6-sun/bin/wsgen' to provide 'wsgen'. Using '/usr/lib/jvm/java-6-sun/bin/wsimport' to provide 'wsimport'. Using '/usr/lib/jvm/java-6-sun/bin/xjc' to provide 'xjc'. Using '/usr/lib/jvm/java-6-sun/jre/bin/ControlPanel' to provide 'ControlPanel'. Using '/usr/lib/jvm/java-6-sun/jre/bin/java' to provide 'java'. Using '/usr/lib/jvm/java-6-sun/jre/bin/java_vm' to provide 'java_vm'. Using '/usr/lib/jvm/java-6-sun/jre/bin/javaws' to provide 'javaws'. Using '/usr/lib/jvm/java-6-sun/jre/bin/jcontrol' to provide 'jcontrol'. Using '/usr/lib/jvm/java-6-sun/jre/lib/jexec' to provide 'jexec'. Using '/usr/lib/jvm/java-6-sun/jre/bin/keytool' to provide 'keytool'. Using '/usr/lib/jvm/java-6-sun/jre/bin/orbd' to provide 'orbd'. Using '/usr/lib/jvm/java-6-sun/jre/bin/pack200' to provide 'pack200'. Using '/usr/lib/jvm/java-6-sun/jre/bin/policytool' to provide 'policytool'. Using '/usr/lib/jvm/java-6-sun/jre/bin/rmid' to provide 'rmid'. Using '/usr/lib/jvm/java-6-sun/jre/bin/rmiregistry' to provide 'rmiregistry'. Using '/usr/lib/jvm/java-6-sun/jre/bin/servertool' to provide 'servertool'. Using '/usr/lib/jvm/java-6-sun/jre/bin/tnameserv' to provide 'tnameserv'. Using '/usr/lib/jvm/java-6-sun/jre/bin/unpack200' to provide 'unpack200'. No alternatives for firefox-javaplugin.so. No alternatives for iceape-javaplugin.so. No alternatives for iceweasel-javaplugin.so. No alternatives for midbrowser-javaplugin.so. No alternatives for mozilla-javaplugin.so. No alternatives for xulrunner-1.9-javaplugin.so. No alternatives for xulrunner-javaplugin.so.

Ezhikoff ()

Re: Запуск стороннего приложения под Ubuntu

Сори вот:

root@LineAge2-Server://# apt-get install sun-java6-bin sun-java6-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
sun-java6-bin is already the newest version.
sun-java6-bin set to manually installed.
sun-java6-jre is already the newest version.
sun-java6-jre set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.


root@LineAge2-Server://# update-java-alternatives -s java-6-sun
No alternatives for firefox-javaplugin.so.
No alternatives for iceape-javaplugin.so.
No alternatives for iceweasel-javaplugin.so.
No alternatives for midbrowser-javaplugin.so.
No alternatives for mozilla-javaplugin.so.
No alternatives for xulrunner-1.9-javaplugin.so.
No alternatives for xulrunner-javaplugin.so.
Using '/usr/lib/jvm/java-6-sun/bin/appletviewer' to provide 'appletviewer'.
Using '/usr/lib/jvm/java-6-sun/bin/apt' to provide 'apt'.
Using '/usr/lib/jvm/java-6-sun/bin/extcheck' to provide 'extcheck'.
Using '/usr/lib/jvm/java-6-sun/bin/HtmlConverter' to provide 'HtmlConverter'.
Using '/usr/lib/jvm/java-6-sun/bin/idlj' to provide 'idlj'.
Using '/usr/lib/jvm/java-6-sun/bin/jarsigner' to provide 'jarsigner'.
Using '/usr/lib/jvm/java-6-sun/bin/jar' to provide 'jar'.
Using '/usr/lib/jvm/java-6-sun/bin/javac' to provide 'javac'.
Using '/usr/lib/jvm/java-6-sun/bin/javadoc' to provide 'javadoc'.
Using '/usr/lib/jvm/java-6-sun/bin/javah' to provide 'javah'.
Using '/usr/lib/jvm/java-6-sun/bin/javap' to provide 'javap'.
Using '/usr/lib/jvm/java-6-sun/bin/java-rmi.cgi' to provide 'java-rmi.cgi'.
Using '/usr/lib/jvm/java-6-sun/bin/jconsole' to provide 'jconsole'.
Using '/usr/lib/jvm/java-6-sun/bin/jdb' to provide 'jdb'.
Using '/usr/lib/jvm/java-6-sun/bin/jhat' to provide 'jhat'.
Using '/usr/lib/jvm/java-6-sun/bin/jinfo' to provide 'jinfo'.
Using '/usr/lib/jvm/java-6-sun/bin/jmap' to provide 'jmap'.
Using '/usr/lib/jvm/java-6-sun/bin/jps' to provide 'jps'.
Using '/usr/lib/jvm/java-6-sun/bin/jrunscript' to provide 'jrunscript'.
Using '/usr/lib/jvm/java-6-sun/bin/jsadebugd' to provide 'jsadebugd'.
Using '/usr/lib/jvm/java-6-sun/bin/jstack' to provide 'jstack'.
Using '/usr/lib/jvm/java-6-sun/bin/jstatd' to provide 'jstatd'.
Using '/usr/lib/jvm/java-6-sun/bin/jstat' to provide 'jstat'.
Using '/usr/lib/jvm/java-6-sun/bin/native2ascii' to provide 'native2ascii'.
Using '/usr/lib/jvm/java-6-sun/bin/rmic' to provide 'rmic'.
Using '/usr/lib/jvm/java-6-sun/bin/schemagen' to provide 'schemagen'.
Using '/usr/lib/jvm/java-6-sun/bin/serialver' to provide 'serialver'.
Using '/usr/lib/jvm/java-6-sun/bin/wsgen' to provide 'wsgen'.
Using '/usr/lib/jvm/java-6-sun/bin/wsimport' to provide 'wsimport'.
Using '/usr/lib/jvm/java-6-sun/bin/xjc' to provide 'xjc'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/ControlPanel' to provide 'ControlPanel'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/java' to provide 'java'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/java_vm' to provide 'java_vm'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/javaws' to provide 'javaws'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/jcontrol' to provide 'jcontrol'.
Using '/usr/lib/jvm/java-6-sun/jre/lib/jexec' to provide 'jexec'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/keytool' to provide 'keytool'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/orbd' to provide 'orbd'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/pack200' to provide 'pack200'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/policytool' to provide 'policytool'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/rmid' to provide 'rmid'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/rmiregistry' to provide 'rmiregistry'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/servertool' to provide 'servertool'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/tnameserv' to provide 'tnameserv'.
Using '/usr/lib/jvm/java-6-sun/jre/bin/unpack200' to provide 'unpack200'.
No alternatives for firefox-javaplugin.so.
No alternatives for iceape-javaplugin.so.
No alternatives for iceweasel-javaplugin.so.
No alternatives for midbrowser-javaplugin.so.
No alternatives for mozilla-javaplugin.so.
No alternatives for xulrunner-1.9-javaplugin.so.
No alternatives for xulrunner-javaplugin.so.

Ezhikoff ()

Re: Запуск стороннего приложения под Ubuntu

>root@LineAge2-Server:/Gracia/login# ./L2JConfig.sh
>root


>No protocol specified Exception


перевести, или сам догадаешься?

iSage ★★★★ ()

Re: Запуск стороннего приложения под Ubuntu

Никакой протокол не определил Исключение чето типа того. Я понял что скорее всего я неправильно запускаю приложение, можно если неотвлекаю немножко поподробнее.

Ezhikoff ()

Re: Запуск стороннего приложения под Ubuntu

>Could not initialize class sun.awt.X11GraphicsEnvironment

иксы джава не может найти скорее всего. они хотя бы запущены?

Lucky1 ★★★ ()
Ответ на: Re: Запуск стороннего приложения под Ubuntu от Ezhikoff

Re: Запуск стороннего приложения под Ubuntu

либо запускай от себя, либо через судо, либо
DISPLAY=:0.0 ./L2JConfig.sh
либо
xhost +local:root (от себя)
и запускать.

подробнее: х-сервер запущен от тебя. сессия рута либо не знает о нем, либо не имеет права на доступ к нему. надеюсь понятно, что из приведенного выше что лечит?



iSage ★★★★ ()

Re: Запуск стороннего приложения под Ubuntu

Огромное спасибо, все помогло. Я просто пытался запуститься от roota a когда запустил это приложение от обычного пользователя все получилось. Еще раз спасибо за помощь.

Ezhikoff ()

Re: Запуск стороннего приложения под Ubuntu

Я бы пробросил иксы. Так будет меньше проблем с серверной осью, главное чтоб иксовые либы были.

PolarFox ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.