Jim Leno wrote:
>If my main class is in a package, when I set the main class in XCode, I get
>a class not found error at runtime. Everything works fine if my main class
>is in the default package.
When your main class is in a package, exactly what do you set the main
class to in Xcode, that causes it to not work? That is, be specific.
>What is the correct syntax for the main class field (myPackage.myClass is
>what I would expect) Is this supported?
The correct syntax is indeed myPackage.myClass.
Are you saying that you tried that and it didn't work? Or are you only
saying that you think that will work but haven't tried it?
If you tried it and it didn't work, remember that case is significant in
Java. So if your package and class is actually named mypkg.MyClass, as
defined in your "MyClass.java" file, then that is what works, not the
similar-looking myPkg.myClass.
Also, if you use a "nested" package, such as com.myDomain.MyClass, then be
sure to use the entire fully-qualified name, with correct case.
-- GG
_______________________________________________
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