NoClassDefFoundError – Eclipse and Android

I’m having a problem trying to run an Android app which, up until adding a second external library to its build path, was working fine. Since having added the scoreninja jar, I now get a NoClassDefFoundError when I try to run the app. Here’s the message: 02-11 21:45:26.154: ERROR/AndroidRuntime(3654): java.lang.NoClassDefFoundError: com.scoreninja.adapter.ScoreNinjaAdapter As all of the … Read more

Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)

Here is the code: package mscontroller; import javax.swing.*; import com.apple.eawt.Application; public class Main { public static void main(String[] args) { Application app = new Application(); app.setEnabledAboutMenu(true); AMEListener listener = new AMEListener(); app.addApplicationListener(listener); JFrame mainFrame = new JFrame(“Application Menu Example”); mainFrame.setSize(500, 500); mainFrame.setVisible(true); } } here is the error: Exception in thread “main” java.lang.Error: Unresolved compilation … Read more

ADT requires ‘org.eclipse.wst.sse.core 0.0.0’ but it could not be found

I’m installing the Android SDK on a fresh installation of Fedora 14 (Linux). I installed eclipse, and ran the tools/android sdk tool to install all the Eclipse components for the SDK. I was able to get DDMS to install when selecting it by itself. And for the last component – the Android developer tools, I’m … Read more