Page 1 of 1

Linux Permissions? Issue

Posted: Sat Aug 27, 2011 1:49 am
by Paean
I've downloaded the "illarion_client.jnlp" file and have Java RE 7 installed. I run the file using "javaws illarion_client.jnlp" and it pops up the box asking where I want to store character and config information. I select a folder (or leave the default, doesn't matter) and hit ok. Instead of bringing up the login box the process dies. In other words, after pressing okay the program "crashes" so to speak. I get no error output in the console.

If I run as root user I can get through the folder selection screen and to the login screen. I have set it (24 bit color, have tried both windowed and fullscreen), put in my password and submit. I get an error box "Unable to launch the application." Viewing detail I see: "Unexpected exception: java.lang.reflect.InvocationTargetException". The full error message is:

Code: Select all

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.UnsatisfiedLinkError: /root/.java/deployment/cache/6.0/62/484ccb3e-6c7ae918-n/liblwjgl.so: libjawt.so: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
	at java.lang.Runtime.loadLibrary0(Runtime.java:845)
	at java.lang.System.loadLibrary(System.java:1084)
	at org.lwjgl.Sys$1.run(Sys.java:72)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
	at org.lwjgl.Sys.loadLibrary(Sys.java:81)
	at org.lwjgl.Sys.<clinit>(Sys.java:98)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:129)
	at illarion.client.IllaClient.init(IllaClient.java:204)
	at illarion.client.IllaClient.<init>(IllaClient.java:148)
	at illarion.client.IllaClient.main(IllaClient.java:612)
	... 9 more
So basically there are two issues:

1. I can't get to the login screen as a regular user.
2. As root user I can get to the login screen, but I can't actually login without a java error.

Thoughts?

Thanks in advance for any help. :)

Re: Linux Permissions? Issue

Posted: Sat Aug 27, 2011 2:34 am
by Achae Eanstray
Probably no one will be around that can help tonight, in searching the support forum found this http://illarion.org/community/forums/vi ... =3&t=34411, though don't know how helpful it is...there may be others.

Re: Linux Permissions? Issue

Posted: Sat Aug 27, 2011 3:22 am
by Paean
Thanks for the thoughts Achae.

Anyways, I've solved the second issue ... just put in:

export LD_LIBRARY_PATH="/opt/java/jre/lib/i386"

Pretty stupid thing of me to miss actually.

The first issue is all that remains now. Why does the program fail to run as a normal user? Gah. I'll try to figure this out and post back.

Re: Linux Permissions? Issue

Posted: Wed Aug 31, 2011 11:44 pm
by Nitram
It seems the application was installed into the cache of the root user. I have no idea why this happend. Was the webstart installer run as root when you installed the client or something like that?

Re: Linux Permissions? Issue

Posted: Thu Sep 01, 2011 7:43 am
by Paean
Hi Nitram,

Thanks for the reply. The application was installed into the root user's cache because I did run it as root, yes. I am actually able to launch, install and login and play as the root user. Obviously I don't want to do this. :wink:

The main issue now is that I can't "install" the game as a normal user. I run the webstart installer (as a normal user) and am asked to pick where I want the config files. I just use the default selection and hit ok. After that everything dies. I don't get the login screen, but the directory for config files is created. No files or anything in it. Nothing is installed into the cache. No output from Java.

I did just notice two new files in the log folder.

.log:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE log SYSTEM "logger.dtd">
<log>
<record>
  <date>2011-09-01T00:29:03</date>
  <millis>1314854943646</millis>
  <sequence>0</sequence>
  <logger>com.sun.deploy</logger>
  <level>FINE</level>
  <class>com.sun.deploy.trace.LoggerTraceListener</class>
  <method>print</method>
  <thread>8</thread>
  <message>Detected from bootclasspath: /opt/java/jre/lib/deploy.jar
</message>
</record>
</log>
.trace:

Code: Select all

Log started: Thu, 1 Sep 2011 00:29:03 -0500
Detected from bootclasspath: /opt/java/jre/lib/deploy.jar
I don't get anything useful from these, but you might?