Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

java.awt.Color error

843807Nov 4 2004 — edited Nov 4 2004
A Simple Program:


import java.awt.*;

public class Colortest
{
public static void main( String s[] )
{
System.out.print(Color.white);
System.out.print("hits message");
}
}


Displays the error message
Colortest.java:9: cannot resolve symbol
symbol : variable white
location: class Color

1 error

But on other machines the program compiles and runs properly. I have reinstalled the newest build in java several time ( now on version 1.4.2_06-b03 ) .

Anyone know why this isn't working especially on my computer??? It's slowing down my ability to work on the project.


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2004
Added on Nov 4 2004
2 comments
435 views