problem in my JAVA

hi ,,

i installed digichat in my vps and im facing a problem at runnin the digichat server ...

i think the problem is related to java

can you help me ... ?

root@host [~]# sh ./DigiChat_Server

Invocation ofthis Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:

java.lang.UnsatisfiedLinkError: /root/j2sdk1.4.2/jre/lib/i386/libawt.so: libXp.so.6: 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:1586)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)

at java.lang.Runtime.loadLibrary0(Runtime.java:788)

at java.lang.System.loadLibrary(System.java:834)

at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)

at java.security.AccessController.doPrivileged(Native Method)

at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)

at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)

at java.awt.Component.<clinit>(Component.java:506)

at com.diginet.digichat.common.aw.<init>([DashoPro-V1.3BETA-091199])

at com.diginet.digichat.common.aw.<clinit>([DashoPro-V1.3BETA-091199])

at com.diginet.digichat.server.ak.n([DashoPro-V1.3BETA-091199])

at com.diginet.digichat.server.ak.a([DashoPro-V1.3BETA-091199])

at com.diginet.digichat.server.ak.b([DashoPro-V1.3BETA-091199])

at com.diginet.digichat.server.ak.aa([DashoPro-V1.3BETA-091199])

at com.diginet.digichat.server.ak.ac([DashoPro-V1.3BETA-091199])

at com.diginet.digichat.server.ChatServer.<init>([DashoPro-V1.3BETA-091199])

at com.diginet.digichat.server.ChatServer.main([DashoPro-V1.3BETA-091199])

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.zerog.lax.LAX.launch(Unknown Source)

at com.zerog.lax.LAX.main(Unknown Source)

GUI-

[2305 byte] By [Bay4Host] at [2007-11-26 7:06:48]
# 1

Apparently you are missing or unable to find the libXp.so library, under Solaris this is normally available under /usr/openwin/lib , so try and add it to your LD_LIBRARY_PATH by typing:

LD_LIBRARY_PATH=/usr/openwin/lib:$LD_LIBRARY_PATH

export LD_LIBRARY_PATH

if it still doesn't work, add the SUNWxwrtl (at least thats the name of the package if you are running Solaris 10).

7/M.

mAbrante at 2007-7-6 15:54:22 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
acctually im using Centos 4and this my uname -aLinux host.digital4host.com 2.6.8-022stab070.4-enterprise #1 SMP Mon Mar 6 15:28:36 MSK 2006 i686 athlon i386 GNU/Linuxand you are right my libXp.so is missing :Shelp
Bay4Host at 2007-7-6 15:54:22 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
and i forgot to say that im usingj2sdk-1.4.2-03-linux-i586:)
Bay4Host at 2007-7-6 15:54:22 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
Your problem is likely solved by dumping that poor excuse of software mimicking Java (kaffe, gij, etc.) and replace it with the JRE or JDK from Sun.So if you installed what looks like Sun's JRE (why not 1.5?) then make sure that other stuff is out of the way.
LionO at 2007-7-6 15:54:22 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5
Since the level of this discussion was lowered anyway..Why not change to a decent OS while you're at it?Solaris 10 comes with both a working JRE and all libraries needed.. 7/M.
mAbrante at 2007-7-6 15:54:22 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6

Perhaps my choice of wording is indeed a bit harsh but I really have little respect for the open source variants. I've seen just too many examples where those variants turned out not to support very basic options which have been present in Java v1.2 and up. Its simply not fully compatible and if you're using Linux but are unaware of this fact then you might get very confused since Java is said to run on every platform supporting it.

I've wasted half an hour because of this last year when I just started with Java. Tried to run a tutorial example but was greeted with error on error, eventually it turned out to be caused by gij.

So; its absolutely not my intention to turn this into a rant or start bashing certain products but in this case I think it may very well be causing problems.

LionO at 2007-7-6 15:54:22 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...