I have the same constellation as you, except for Mac OS X 10.4.1. I
have no problem
running Swing applications. However, I have noticed that strange
things happen when
I switch from JDK 1.4 to JDK 5.0 and back again: is this perhaps
happening with you too?
It may be worth going through all your Java compiler settings, run
settings and project
settings and making sure that they are all correct.
Cheers
Steve
On 11 Jul 2005, at 19:08, 福原 聡太郎 wrote:
Hello everyone.
I use both Eclipse3.1 and Xcode2.1 on OSX10.4 with Apple Jaca5.0
release1.
On Eclipse, I cannot run any swing example...
On Xcode, I can.
If you have any opinion about the trouble, Please give me your advice.
Erro code is below...
2005-07-12 01:58:04.677 java[1283] Apple AWT Java VM was loaded on
first thread -- can't start AWT
Exception in thread "main" java.lang.InternalError: Can't start the
AWT because Java was started on the first thread. Make sure
StartOnFirstThread is not specified in your application's
Info.plist or on the command line
import javax.swing.*;
public class HelloWorldSwing {
public static void main(String[] args) {
JFrame frame = new JFrame("HelloWorldSwing");
final JLabel label = new JLabel("Hello World");
frame.getContentPane().add(label);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden