Class Not Found

You must Login before you can answer or comment on any questions.

Hi to all , iam fresher in titanium platform. i have download titanium studio and configure android sdk. i have just create new project and when i run in emulator that shows me error like - "Exception in thread "main" Could not find the main class: com.sun.tools.javac.Main. Program will exit." how i solved it. i dont know.

— asked 8 months ago by chintan khetiya
1 Comment
  • Missing from your question are a number of important pieces of information. I suggest you take a look at the Using Questions and Answers article, specifically the Q&A Question Checklist. The missing information is critical to reproducing problems in a test environment and often indicates other factors that cause the undesirable outcome you are experiencing.

    — commented 8 months ago by Stephen Feather

1 Answer

From the looks of it, it appears that it can't find the Java compiler (javac)

You mentioned installing Ti Studio and The Android SDK, but did you install the Java Development Kit? (as detailed in the guides)

Keep in mind that titanium created Java source code (for Android at least) and then compiles said code. So if, the JDK is not installed (or properly configured) that may explain your error.

Hope this helps.

Your Answer

Think you can help? Login to answer this question!