Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / October 2003

Tip: Looking for answers? Try searching our database.

Java VM conflict on start with running VM in Browsers

Thread view: 
Sebastian Zickau - 14 Oct 2003 15:38 GMT
Hello Everyone,

I have a module linked with Netscape/Mozilla-Browsers.

In this module I start a JVM via the JNI interface.

When this VM is running and I want to load an Applet in the Browser, I
get the message that an error occured while connecting to a running
JVM.

With the affect that the applet cannot be loaded.

What can I do to find the right connection between the two VMs?

Or how can I start the JNI-VM to avoid the above mentioned.

thanx in advance
Sebastian
Matthias Ernst - 14 Oct 2003 16:46 GMT
> What can I do to find the right connection between the two VMs?

I'm afraid it is not possible to start two VMs in the same process. See
http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html.

"JDK 1.1.2 does not support creating more than one VM in a single process."
AFAIK, this still holds.

What you could do in your plugin, is _find_ the Java plugin's VM instead of
creating a new one. That would require starting an applet first.

Matthias
Signature

Matthias Ernst
Software Engineer

CoreMedia - Smart Content Technology



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.