Question

I am using Eclipse IDE and Java and trying to instantiate androidvnc and I receive this error:

java.lang.RuntimeException: Unable to instantiate activity 
ComponentInfo{android.androidVNC/android.androidVNC.androidVNC}: 
java.lang.ClassNotFoundException: android.androidVNC.androidVNC

What does the error mean and how do I fix it?

Was it helpful?

Solution

The exception means that the android launcher cannot find the following activity class:

android.androidVNC.androidVNC

The main class is declared in your manifest.xml file.

Check that your manifest.xml declares the class correctly. Also check that you actually have the androidVNC class in the right package (android.androidVNC) and you didn't somehow move it into your own package.

In Eclipse the file should be located in src/android/androidVNC/androidVNC.java

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top