AdaPower Logged in as Guest
Ada Tools and Resources

Ada 95 Reference Manual
Ada Source Code Treasury
Bindings and Packages
Ada FAQ


Join >
Home >
Articles >
Getting Started >
Ada FAQ >
Source Treasury >
Books & Tutorials >
Packages for Reuse >
Latest Additions >
Ada Projects >
Press Releases >
Ada Audio / Video >
Home Pages >
Links >
Contact >
About >
Login >
Back
Console Hello World for the JVM (David Botton)

This is the classic hello world program written in Ada for the JVM (Java Virtual Machine)
Package Specification
with java.lang.String;

package JMain is
	procedure main(Args : java.lang.String.String_Array);
end;

Package Body

with java.lang.String;
with java.lang.System;
with java.io.PrintStream;

package body JMain is
    
procedure main(Args : java.lang.String.String_Array) is
begin
    java.io.PrintStream.println(java.lang.System.Stdout, "Hello World!");
end main;

end JMain;


(c) 1998-2004 All Rights Reserved David Botton