Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "AWT was loaded on first thread"



On Mar 20, 2005, at 6:15 PM, Rolf Howarth wrote:

I am writing a C++ command line program (using CodeWarrior and the Mac OS X PowerPC Mach-O linker to create an executable) in which I want to invoke a Java VM.

The class I'm trying to use indirectly uses AWT. It executes as expected if I run it using "java -cp ...", but if I run it from my program I get the following error:

2005-03-20 22:47:18.355 mytest[1041] Apple AWT Java VM was loaded on first thread -- can't start AWT.
...

Any ideas?

Look on ADC for Apple's example code for a java launcher. I think the error isn't in your Java code where it initializes the AWT Toolkit, but in your C++ code that starts the JVM.


Scott

_______________________________________________
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
References: 
 >"AWT was loaded on first thread" (From: Rolf Howarth <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.