<div dir="ltr">OOps hit send too fast. But thanks.,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 4:32 PM, Johannes Schindelin <span dir="ltr"><<a href="mailto:johannes.schindelin@gmx.de" target="_blank">johannes.schindelin@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Lee,<br>
<br>
On 2015-03-18 14:47, Lee Kamentsky wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm programming "monkey see, monkey do" style. I have very little idea what<br>
I'm doing, trying to replicate the logic for mac loading dylibs in<br>
imagej-loader.<br>
<br>
I've gotten pretty far, but at the end, I'm seeing the error,<br>
"JavaNativeFoundation: GetGlobalVM: JNI_GetCreatedJavaVMs() failed to get<br>
any VM" when I start an AWT app.<br>
</blockquote>
<br>
Do you expect a JVM to be running already? If not, you should [create one](<a href="https://github.com/imagej/imagej-launcher/blob/3e061521a/src/main/c/ImageJ.c#L307-L322" target="_blank">https://github.com/<u></u>imagej/imagej-launcher/blob/<u></u>3e061521a/src/main/c/ImageJ.c#<u></u>L307-L322</a>).<br></blockquote><div><br></div><div>Nope - this happens when I am shutting down the JVM after starting AWT. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> But maybe you have a project for me to clone, with instructions that might let this poor Python pilgrim reproduce the issue?<br>
<br></blockquote><div>The head of the master branch of <a href="http://github.com/CellProfiler/python-javabridge">http://github.com/CellProfiler/python-javabridge</a> and running "python demo/demo_uicallback.py" should demostrate the problem when you quit. If it doesn't, I fixed it.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ciao,<br>
Dscho<br>
</blockquote></div><br></div></div>