harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Lothian" <nloth...@educationau.edu.au>
Subject Proposal: A VM launcher
Date Fri, 13 May 2005 05:01:58 GMT

It seems people want something specific to work on. Here's an idea I

Apache Harmony should develop a JVM launcher ("java"/"java.exe") that
uses a standard API (based on JNI_CreateJavaVM()) that will allow any VM
to be used. Note that this is different to the "alternatives" command in
Linux which makes it easy to switch between different launchers.

This would be an important step forward because it would make it easier
for developers to test on multiple VMs. It also has the benefit that of
being a fairly (very!) small, self contained piece of work that isn't
covered by any other cross platform project (AFAIK) but could be useful
to all of them.

The algorithm for VM selection could be as simple as user flags or it
could use heuristics to analyze the machine it is running on and select
an appropriate VM. 

The Sun VM currently has a similar mechanism that allows (for instance)
the JRockit VM to be used from a Sun JRE installation by editing one
config file and passing a command line argument:

Some useful documentation links:

Java JNI: http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/jniTOC.html
Creating a VM using JNI:
Kaffe's launcher:
Jsmooth: http://jsmooth.sourceforge.net/
Launch4J: http://launch4j.sourceforge.net/
Roll you own Java laucher:
http://www.neward.net/ted/Papers/RollYourOwnJava/index.html (beware that
this paper contains code from Sun's launcher - make sure you don't copy


IMPORTANT: This e-mail, including any attachments, may contain private or confidential information.
If you think you may not be the intended recipient, or if you have received this e-mail in
error, please contact the sender immediately and delete all copies of this e-mail. If you
are not the intended recipient, you must not reproduce any part of this e-mail or disclose
its contents to any other party.
This email represents the views of the individual sender, which do not necessarily reflect
those of education.au limited except where the sender expressly states otherwise.
It is your responsibility to scan this email and any files transmitted with it for viruses
or any other defects.
education.au limited will not be liable for any loss, damage or consequence caused directly
or indirectly by this email. 

View raw message