The information on these pages may be out of date, or may refer to
resources that have moved or have been made read-only.
For more information please refer to the
Apache Attic
The Dynamic Runtime Layer virtual machine (DRLVM) is a clean-room implementation of the Java* virtual machine for Java 2 Platform, Standard Edition (J2SE*) 1.5.0. This document gives tips on how to start using the DRL virtual machine (VM). Use this page to learn where to get the code and how to use it. For documentation on the Harmony Java* class libraries, see the classlib page.
To quickly start with DRL, read this page and follow the instructions. It is recommended that you strictly follow the instructions of this guide to ensure system stability and anticipated results. After completing this guide, you will be able to run and debug your own applications with DRLVM.
For a definition of the DRL virtual machine and links to all docs describing it, see the DRLVM component page. For instructions on how to get and build the code, and configure your environment, please visit the Getting Started for Users page. If you fail to build the source code or come across other problems, go to our project Wiki resource and search for your issue on the DrlvmBuildTroubleshooting page. If no known issue matches your problem, please write to the mailing list or add your issue to the wiki page.
The README file supplied with the source code and the Quick Help instructions enable you to build the VM source code in the default configuration. To modify the code behavior, use the available command-line options, as indicated in the Wiki command-line options page. Read further for illustrations of command-line options usage.
This scenario provides step-by-step instructions on running a Hello
application in the Windows* or the Linux* console.
The scenario uses a sample Hello.class
Java* class
for illustration. Please use your own application instead.
<installation folder>\bin
directory. java.exe
on Windows* or
java
on Linux* and Hello.class
in the
\bin
directory.LD_LIBRARY_PATH
variable contains location of the ICC
libraries. Hello
application by entering:
java Hello
You will see “Hello World!" printed on the screen. This means that
you have successfully launched the virtual machine, and that it has processed the
Hello.class
Java* class to execute the Hello
application.
In this section, a simple scenario shows how to create an application and run it in Eclipse* with our virtual machine.
Note
If you are using Eclipse, see the page Working with Harmony Code in Eclipse for specific setup instructions.
This scenario provides step-by-step instructions on running a Java application in the Eclipse environment. In the scenario, you will launch Eclipse, create a new project and a new Java class within this project, and finally you will run the new application.
HelloWorld
class with the
public static void main(String[] args)
method containing the following code:
int i=18; System.out.println("Hello, World!");
HelloWorld
class. The result of the execution is printed in
the Console tab of your workspace: "Hello, World!" appears. This scenario provides instructions on how to debug a simple application in Eclipse*.
HelloWorld
class, set the breakpoint on the following line:
System.out.println ("Hello, World!");
HelloWorld.java
in the example.* Other brands and names are the property of their respective owners.