Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

non-sense compiler message

843785Oct 5 2008 — edited Oct 5 2008
I installed using jdk-6u7-windows-i586-p installer.

I'm using jGrasp for my IDE.

public test
{
	public static void main(String[] args)
	{
	System.out.println( "Testing" );
	}
}
I get the following error message when compiling
test.java:1: class, interface, or enum expected
public test
       ^
test.java:3: class, interface, or enum expected
	public static void main(String[] args)
	              ^
test.java:6: class, interface, or enum expected
	}
	^
3 errors
This makes no sense to me. I'm thinking maybe my IDE or jdk is misconfigured but I'm not sure.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2008
Added on Oct 5 2008
3 comments
162 views