Hi Ewgenij!
It works for me using the following comand (on a single line):
/usr/libexec/java_home -v 1.7 -exec java -Xbootclasspath/a:${JFLS}
-jar framework.jar -init
-Dorg.osig.framework.bootdelegation="org.netbeans.lib.profiler,org.netbeans.lib.profiler.*"
where
JFLS was defined as
/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/lib/visualvm/profiler/lib/jfluid-server.jar
Regards,
\GE
PS If this is a Knopflerfish specific problem please move the
discussion to the knopflerfish-users mailing list. See
http://www.knopflerfish.org/mailman/listinfo
On Thu, Sep 19, 2013 at 02:04:57PM +0200, Ewgenij Sokolovski wrote:
> Hello, community. I tried to profile my OSGI-Bundles in Knopflerfish OSGI
> framework using the guidance here
>
> http://www.baptiste-wicht.com/2010/07/tip-profile-osgi-application-visualvm/
>
> Thus, I added the profiler lib to boot class path of JVM:
>
>
> -Xbootclasspath/a:"C:\Program
> Files\Java\jdk1.6.0_43\lib\visualvm\profiler\lib\
> jfluid-server.jar"
>
> After that I instructed OSGI framework to use the classes by adding
>
>
> -Dorg.osgi.framework.bootdelegation=
> org.netbeans.lib.profiler,org.netbeans.lib.profiler.*
>
> to its init.xargs file.
>
> However, it did not work out. I keep getting
>
> "[stderr] java.lang.NoClassDefFoundError:org/netbeans/lib/profiler/server/
> ProfilerRuntimeCPUFullInstr"
>
> messages on the console.
>
> Any idea what I may be doing wrong?
>
> Kind regards
> Ewgenij
--
Gunnar Ekolin, Mobile: +46 707 96 77 19 Makewave AB
Phone: +46 31 701 46 50, Fax +46 31 24 16 50 Första Långgatan 18
Email: [email protected] 413 28 Göteborg, Sweden
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev