Contents | Prev | Next | Index
Canterbury Oberon-2 for Java supports any Java debugger. The following switches for debugger support are available in this Oberon-2 compiler:
Java Application example for Win32 JDK 1.1.6:
Given the following Oberon-2 module helloworld.obn:
MODULE helloworld;
IMPORT Out;
BEGIN
Out.String( "Hello World" );
Out.Ln;
END helloworld.The following commands are needed for compiling and debugging:
java mhc.obn helloworld -m -d -l -javac
jdb helloworldThe following commands do the same:
java mhc.obn helloworld -m -l
javac helloworld.java -g
jdb helloworld
Java Applet example for Win32 JDK 1.1.6:
Given the Slides.obn example (see section A First Example), the following commands can be used for compiling and debugging the applet:
java mhc.obn Slides -m -d -l -javac
jdb sun.applet.AppletViewer Slides.htmlThe following commands do the same:
java mhc.obn Slides -m -l
javac Slides.java -g
jdb sun.applet.AppletViewer Slides.html
Contents | Prev | Next | Index
Canterbury Oberon-2 for Java (Last documentation update
Feb 8, 2000)
Copyright © 1998 Mill Hill &
Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to
mhc@webcom.com