I'm having problems running a java application included in the Sybase
linux release.

I'm running this on a vanilla RedHat 6.1 server installation.

Initially when I ran the app. jre returned 139??

if I set NS_JAVA to anything.

I get the following via strace:

open("/usr/local/jre117_v3/lib/i686/green_threads/libawt.so", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0755, st_size=2078144, ...}) = 0
read(9, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0Lu\1\000"..., 4096) = 4096
mmap(0, 285968, PROT_READ|PROT_EXEC, MAP_PRIVATE, 9, 0) = 0x41b7c000
mprotect(0x41bb4000, 56592, PROT_NONE)  = 0
mmap(0x41bb4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 9, 0x37000) = 
0x41bb4000
mmap(0x41bb6000, 48400, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 
0) = 0x41bb6000
close(9)                                = 0
mprotect(0x41b7c000, 229376, PROT_READ|PROT_WRITE) = 0
munmap(0x41b7c000, 285968)              = 0
write(2, "/usr/local/jre117_v3/lib/i686/gr"..., 
100/usr/local/jre117_v3/lib/i686/green_threads/libawt.so: undefined symbol: 
XtShellStrings (libawt.so)
) = 100
lseek(3, 55196, SEEK_SET)               = 55196
read(3, "PK\3\4\24\0\0\0\10\0yD\252&\254K\223>\340\0\0\0008\1\0"..., 30) = 30
lseek(3, 55278, SEEK_SET)               = 55278
read(3, "m\217\301J\0031\20\206\377t\333\335\272hm\v\n^<\327\212"..., 224) = 224
write(2, "[Loaded java/lang/UnsatisfiedLin"..., 83[Loaded 
java/lang/UnsatisfiedLinkError.class from /usr/local/jre117_v3/lib/rt.jar]
) = 83
fstat(1, {st_mode=S_IFREG|0644, st_size=104468, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41af5000
fcntl(2, F_GETFL)                       = 0x1 (flags O_WRONLY)
fcntl(2, F_SETFL, O_WRONLY|O_NONBLOCK|O_ASYNC) = 0
getpid()                                = 7725
fcntl(2, F_SETOWN, 7725)                = 0
rt_sigprocmask(SIG_BLOCK, [IO], [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(2, "java.lang.UnsatisfiedLinkError: "..., 61java.lang.UnsatisfiedLinkError: no 
awt in shared library path) = 61
write(2, "\n", 1
)                       = 1
write(2, "\tat java.lang.Runtime.loadLibrar"..., 47     at 
java.lang.Runtime.loadLibrary(Runtime.java)) = 47
write(2, "\n", 1
)                       = 1
write(2, "\tat java.lang.System.loadLibrary"..., 45     at 
java.lang.System.loadLibrary(System.java)) = 45
write(2, "\n", 1
)                       = 1
write(2, "\tat ", 4     at )                    = 4
write(2, "\n", 1
)                       = 1
write(2, "\tat java.awt.Toolkit.getDefaultT"..., 56     at 
java.awt.Toolkit.getDefaultToolkit(Toolkit.java:394)) = 56
write(2, "\n", 1
)                       = 1
write(2, "\tat sybase.scf.controller.MainCo"..., 65     at 
sybase.scf.controller.MainController.run(MainController.java)) = 65
write(2, "\n", 1
)                       = 1
write(2, "\tat sybase.scf.controller.MainCo"..., 66     at 
sybase.scf.controller.MainController.main(MainController.java)) = 66
write(2, "\n", 1
)                       = 1
fcntl(2, F_GETFL)                       = 0x2801 (flags O_WRONLY|O_NONBLOCK|O_ASYNC)
fcntl(2, F_SETFL, O_WRONLY|O_ASYNC)     = 0
write(1, "Exception in thread \"main\" ", 27Exception in thread "main" ) = 27
munmap(0x41af5000, 4096)                = 0
_exit(0)                                = ?


How do I interpret this?  I figured that since this was a server
installation that Xfree wasn't installed... So I downloaded and
installed that.

and added /usr/X11R6/lib to my LD_LIBRARY_PATH
to no avail...

then I ran accross something about setting the following:

LD_PRELOAD=libXt.so libXm.so libXext.so
LD_BIND_NOW=1

but I couldn't find libXm.so...  and I don't know if I'm on the right
track... 

any suggestions?
Thanks in advance, MDJ




-- 
Morgan D. Jones              "Rocks have eyes and they are mean... They
NextStrat, Inc.               aim for skin, hoping to tear pieces off
                              to keep with them on the ground."  - anon
703/204-2624                 "Life is not for the faint hearted" - RN


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to