Java code with new classes always generate compile errors.

Write here if you have problems with your Java source code

Moderator: Board moderators

Post Reply
unkx80
New poster
Posts: 1
Joined: Tue May 14, 2002 12:04 pm
Contact:

Java code with new classes always generate compile errors.

Post by unkx80 » Tue May 14, 2002 12:17 pm

Apparently, any submission with any new Java classes defined by myself generated the following compiler error:

Here are the compiler error messages:

gcj: Internal compiler error: program jc1 got fatal signal 11

--

Why is this so, and how should I write my Java classes? Thanks in advance.

NB: The code compiles and run fine on my own computer.

sacra
New poster
Posts: 8
Joined: Sun Oct 27, 2002 9:36 pm
Location: Coimbra, Portugal
Contact:

help

Post by sacra » Thu Nov 14, 2002 8:34 pm

I don't think that creating your own classes has anything to do with the problem. I've got programs Accepted with classes of my own.
try doing this on main:

public static void main(Strign args[])
{
Main m = new Main();
m.start();
}

private void start()
{
//all functionality here
}

Post Reply

Return to “Java”