in case of an android project, you have to remove android lib from the launch configuration for that specific class. use the "walkthrough" below as a guide.
- project->properties->run/debug settings;
- select your class and click "edit";
- open the tab "classpath" and remove android lib from "bootstrap entries";
- apply everything and run the class again.
you can get past this by using the
run as -> android application. possibly check the run configuration for other issues.
hope this helps
- Inside Eclipse Android project run Java classes with main(String args) as Java Application causes "Invalid layout of java.lang.String at value"
- Android trying to run my project in eclipse and end up with xml.out
- Eclipse Project compatible with Java SE and Android
- How to copy my Java Eclipse project to desktop, and then run with the command line?
- Run maven-based android project in eclipse with apklib-dependency
- get all the classes with main method in Eclipse Java project
- Run vanilla JUnit tests on individual classes in an Android Eclipse JUnit project
- Build Path issue with Java Android project when starting Eclipse
- How to build and run android project with gradle in eclipse
- How to run an android project with project build target 4.1 on a 2.3 AVD in Eclipse
- Remove classes that are not in use from Android or/and Java project in Eclipse
- JAVA is required to run android project in eclipse for windows 7
- Can I have classes with same name in one Java project in Eclipse IDE?
- How to run Spock tests for Java project with eclipse and gradle?
- How to delete specific file every time the Eclipse Java project is run inside IDE?
- How to run a java class in Eclipse (part of a maven project with a pom file) from cmd
- Eclipse can't run java project with module warning
- How to run java class separately inside Android project in Eclipse?
- Eclipse with Android SDK failure to run blank project
- Java eclipse run android project
- Eclipse PDE project with java classes generated from WSDL file with Apache-Axis
- In Java eclipse IDE, how to get all classes with the corresponding methods of a project in one view
- Find unused classes in a Java Eclipse project
- How to simultaneously run all JUnit tests for a Eclipse Java project without Maven?
- Android - copy existing project with a new name in Eclipse
- How to run Eclipse with different Java version?
- Java - Build and run eclipse project from command line
- Store run configuration with project in Eclipse
- How to create the pom.xml for a Java project with Eclipse
- Can't run JUnit 4 test case in Eclipse Android project
More Query from same tag
- SWT/JFace databinding change background
- monitor java threads in eclipse
- how to use mpg123 in android
- do I need knowledge of java programing to develop android games in unity 3d?
- How to view hierarchical package structure in Eclipse package explorer
- Eclipse change project files location
- How to Disable Code Preview Popup on Hover over Code Fold in Eclipse?
- Automatically linking Java 8 source code with Eclipse IDE
- What is pure OSGi equvalent for Eclipse Platform.getBundle()
- How to fix "Test source folder in project must have an output folder that is not also used for main resources"?
- Check if a JTable exists and add rows to it if it does
- connecting two java frame
- My IDE says "Errors exists in required project. Continue to launch?"
- how to run sql file automatically? I have these files
- android sliding up panel in my eclipse project showing error
- Eclipse Conditional-Breakpoint. How to check if exception occurs?
- ERROR: Duplicate alias. Failed to register servlet for - Eclipse Scout error on RAP
- eclipse command line switch to start with project
- Java Play 2.2.6 : index.scala.html update not reflecting in controller.Application
- What do i put for the return?
- Java Build Path
- Source not found error given in debug mode when running a method in Java with a try/catch block
- Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5-r682619-maestro-2.0.0:test (default-test) on project
- How to put movie clip, video or animation to my android project
- Restarting an app in Eclipse
- FIle format of eclipse workspace files
- The WSDL cannot be generated from the web service due to error
- Error in eclipse: “The project cannot be built until build path errors are resolved”
- On Linux, Debugging a C++ application with gdb in Eclipse CDT, how to input something to stdin?
- How to adjust line wrap formatting rules in Eclipse?