Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 patch for building JNI library on OS X

open
nobody
None
5
2004-04-15
2004-04-15
James Strachan
No

Here's a script which builds the JNI library for OS X. This allows the
plugin to startup at least, though applications terminate immedately
unfortunately.

http://radio.weblogs.com/0112098/2004/04/15.html#a475

#!/bin/sh
#
# Builds the JNI plugin for OS X
#

g++ -O0 -DLINUX -bundle -framework JavaVM -I. -I$JAVA_HOME/
include ProfilerDLL.cpp -o libProfilerDLL.jnilib

sudo cp libProfilerDLL.jnilib /System/Library/Frameworks/
JavaVM.framework/Libraries

# this shouldn't be required but the plugin checks for it for some
reason
sudo cp ../ProfilerDLL.dll $JAVA_HOME/jre/bin

Discussion

  • Max Horn
    Max Horn
    2005-10-08

    Logged In: YES
    user_id=12935

    Using -bundle to build JNI libs is deprecated and should only be used if
    10.0 compatibility is needed (which nobody should need, the update to
    10.1 is free after all).

    Besides, there are more issues involved to make Eclipse Profiler run on
    OS X, and yet other changes to make it work with Eclipse 3.1.

    See also Feature Request #764254 and Patch #1202373.