java jumping the shark? (or just the libShark.jnilib?)
java jumping the shark? (or just the libShark.jnilib?)
- Subject: java jumping the shark? (or just the libShark.jnilib?)
- From: Ray Kiddy <email@hidden>
- Date: Wed, 28 Apr 2010 11:53:27 -0700
Sorry. Could not resist the subject line....
I have a java process I would like to use shark on. Read the docs, did the math, yada yada. So, I can launch the java app from the command-line. I put "-agentlib:Shark" at the very front of the list of parameters to the java executable. When I run this, I then see:
Error occurred during initialization of VM
Could not find agent library: libShark.jnilib
(searched /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries:/System/Library/Java/Extensions:/Library/Java/Extensions:.)
Yet:
%
% ls -l /System/Library/Java/Extensions/libShark.jnilib
-rwxr-xr-x 1 root wheel 50352 Sep 24 2009 /System/Library/Java/Extensions/libShark.jnilib*
%
% file /System/Library/Java/Extensions/libShark.jnilib
/System/Library/Java/Extensions/libShark.jnilib: Mach-O dynamically linked shared library i386
%
So, the libShark.jnilib file seems to be there.
I am running on a 10.6.3 machine with Xcode 3.2.1 (1613). I am building the java app in eclipse, so I put the command-line call together myself. But I have been using this command-line invocation for a while with no other problems (that I know of). I am using the 1.6 version of the compiler (as default in eclipse) to build the app with the JDK complicance set to 1.5.
Tried using "-XrunShark" instead of "-agentlib:Shark", but I got the same error.
So, is the libShark.jnilib file there but not _really_ there? What's up? Any ideas?
thanx - ray
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden