Interesting results...

Mason Loring Bliss mason at
Wed Mar 20 15:54:48 PST 2002

Hello, all.

I saw the note about Klasses.jar on the list, rebuilt, and reinstalled.
That was evidently part of the problem I was seeing, as now javac comes
back with an error, as opposed to being utterly silent. Here's what I'm
seeing now:

acheron 1 /home/mason/work/java$ javac
java.lang.VerifyError: at pc 5 sp 7 not in range [4, 6]
        at at.dms.kjc.Main.parseFile(
        at at.dms.kjc.Main.compile(
        at at.dms.kjc.Main.main(

In case it matters, here's the file. I assume it's nothing to do
with that, in part because other javac's compile it okay.

// 40 line Java demo, Peter van der Linden

import java.awt.*;

class hello extends Frame
	static int x=0,y=120;	// x,y position to display message
	static int i=0;
	static int LtoR=1;	// 1->we are moving msg L-to-R, 0->top to bott.
	Font fb = new Font("TimesRoman", Font.BOLD, 36);
	String msg[] = {"Java", "Portable", "Secure", "Easy"};
	Color color[] = {, Color.yellow,,};

	public void
	paint(Graphics g)	// gets called by the runtime library
		g.setFont( fb );
		g.setColor( color[i] );

	static public void
	main(String s[]) throws Exception
		hello mf = new hello();
		int pixelsPerLine=200, totalLines=4;

		for (int j=0;j<pixelsPerLine*totalLines; j++) {
			if (LtoR==1) {
				if ( (x+=3) < 200) continue;
				i = ++i % 4;		// move index to next
							// msg/color
				x=50; y=0; LtoR=0;	// move msg top to
							// bott next time
			} else {
				if ( (y+=3) < 200)
				i = ++i % 4;		// move index to next
							// msg/color
				x=0;			// move msg L-to-R next
				y=120;			// time

Thanks in advance for clues.

Mason Loring Bliss          awake ? sleep : random() & 2 ? dream : sleep;
mason at

More information about the kaffe mailing list