Mac OS X CPC Issue: Unable to locate the application"s "main" class

0 Likes

Problem:

Mac OS X CPC Issue: Unable to locate the application"s "main" class

Resolution:

  • Product Name: StarTeam
  • Product Version: All Versions
  • Product Component: StarTeam Cross Platform Client for Mac OS X
  • Platform/OS Version: Mac OS X
  • JDK/Compiler Version: All supported JDK versions

Question:

Mac OS X CPC Issue: Unable to locate the application"s "main" class


Answer:

When customer installs the Cross Platform Client for Mac OS X, they may receive the following error once they try to start the client:

[JavaAppLauncher Warning] Specifying a specific version for JVMVersion 1.3.1 is deprecated. Use the more general 1.3* instead.
Unable to locate the application"s "main" class. The class "com.starbase.starteam.gui.Main" must be public and have a "public static void main(String[])" method. (LAX)
Unable to Launch Java Application: Unable to locate the application"s "main" class. The class "com.starbase.starteam.gui.Main" must be public and have a "public static void main(String[])" method. (LAX)

The machine may have the correct version of Java installed but the OS is trying to run the client with an older non-supported version of Java due to a preferred java setting in the OS. This will only happen when the customer has more than one Java version installed. The fix for this issue is for the customer to go to the following web page:http://docs.info.apple.com/article.html?artnum=301073

On that page is a download for J2SE 5.0 that contains a utility that will let the customer set the preferred Java version on that particular Mac.

Information from the Apple website:
"This update does not change the default version of Java on your Mac from Java 1.4.2 to J2SE 5.0, though Java applications that require J2SE 5.0 may specifically request it. You can change the preferred Java version for applications and applets by using the new Java Preferences utility. This utility is installed by the J2SE 5.0 update at /Applications/Utilities/Java/J2SE 5.0/. "

The customer should run the application and set the preferred Java version for the StarTeam client. This will resolve the problem.


Author: Donnie Nix

Old KB# 28043
Comment List
Related
Recommended