Could Not Find Main Class Error In Eclipse
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more error could not find or load main class eclipse about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges error could not find or load main class eclipse luna Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each error could not find or load main class eclipse juno other. Join them; it only takes a minute: Sign up Eclipse Error: Could not find or load main class [duplicate] up vote 42 down vote favorite 17 This question already has an answer here: Eclipse “Error: Could not find error could not find or load main class eclipse java or load main class” 33 answers Have Googled extensively on this error, but I can't seem to fix the problem. I've written a basic java program in Eclipse Juno, as follows: public class HelloWorld { /** * @param args */ public static void main(String[] args) { System.out.println("Hello Eclipse!"); } } After clicking Run, I get: "Error: Could not find or load main class HelloWorld". This error message applies to all my other projects in the same workspace.
Error Could Not Find Or Load Main Class Eclipse Maven
I've tried switching workspaces but the error still appears. I'm on Windows 7 64-bit. Any help would be appreciated! java eclipse share|improve this question asked May 2 '13 at 9:30 Fezzo 347135 marked as duplicate by Raedwald, Kevin Panko, BobTheBuilder, Paul Beusterien, sethvargo Jan 27 '14 at 17:58 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. 1 Is your class definitely not in a package? –Jon Skeet May 2 '13 at 9:35 Have you tryed to select the project and then go to Run -> Run As menu? there you can chose the project type and the main class –Joan May 2 '13 at 9:35 7+ different answers, all of which the submitters claimed worked suggests that this question is "too broad" –Raedwald Jan 27 '14 at 12:51 21 7+ different answers, all of which the submitters claimed worked suggests that eclipse is a piece of cr*p that gives the same idiotic error message for 7+ different errors. –sJhonny Apr 27 '14 at 10:24 2 Raedwald, do you even forums? How could I have made my question any more specific? The fact that it's received more than 25,000 views is an indication that many people suffer from this problem. sJhonny -- totally agree with ya mate. Eclips
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about
Eclipse Error Could Not Find Or Load Main Class Helloworld
Stack Overflow the company Business Learn more about hiring developers or posting ads eclipse error could not find or load main class test with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow eclipse could not find the main class program will exit is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Eclipse “Error: Could not find or load main class” up vote 39 down http://stackoverflow.com/questions/16334625/eclipse-error-could-not-find-or-load-main-class vote favorite 7 I have a project in eclipse on my laptop that I pushed to Git https://github.com/chrisbramm/LastFM-History-Graph.git It works fully on my laptop and runs/builds without a problem but on my desktop it doesn't Eclipse gives the error Error: Could not find or load the main class lastfmhistoryguis.InputPanel I've tried building the project from: Project>Build Project But nothing happened. I've set the PATH variables on this computer to JRE6, http://stackoverflow.com/questions/11235827/eclipse-error-could-not-find-or-load-main-class JRE7 and JDK 1.7.0 even though these aren't set on my laptop. I did have Jar file (last.fm-bindings-0.1.1.jar) that was in my .classpath file that was in C:\Users\Chris\Downloads folder on my laptop hence it wasn't included in the git tree which I recently brought into the project folder and committed ,but I'm not sure whether I have done it right. Would this also be causing a problem but there isn't a main argument in there. I can't work out now, what I need to check/change. java eclipse git jar classpath share|improve this question edited Aug 28 '15 at 13:26 Sam Farajpour Ghamari 5,44222036 asked Jun 27 '12 at 22:45 Chris 305148 14 Did you try Project>Clean and Project>Build Project? –javaCity Jun 27 '12 at 22:55 2 Multiple times and it doesn't seem to have worked –Chris Jun 27 '12 at 23:00 possible duplicate of Error: Could not find or load main class –Ken White Jun 27 '12 at 23:01 system environmental classpath includes . Where else do I need to change and what specifically would I do? –Chris Jun 27 '12 at 23:08 add a comment| 33 Answers 33 active oldest votes 1 2 next up vote 22 down vote ac
Things LocationTech Long-Term Support PolarSys Science OpenMDM More Community Marketplace Events Planet Eclipse Newsletter Videos Participate Report a Bug Forums Mailing Lists Wiki IRC How to Contribute Working Groups Automotive https://www.eclipse.org/forums/index.php/t/629623/ Internet of Things LocationTech Long-Term Support PolarSys Science OpenMDM Toggle navigation Home Projects Forums Eclipse Community Forums Forum Search: Search Help Register Login Home Home» Newcomers» Newcomers» Error: Could not find or load main class Show: Today's Messages :: Show Polls :: Message Navigator Error: Could not find or load main class [message #1222630] Fri, 20 December could not 2013 23:29 Paul AdamsonMessages: 3Registered: December 2013 Junior Member Hi, When I try to run my java project, I get "Error: Could not find or load main class." I've recreated the project a few times and I also tried running the class created by the New Class wizard, without modifying it, to eliminate syntax issues, and I get the same result. I'm could not find running Fedora 17, 64 bit. [Updated on: Fri, 20 December 2013 23:56]Report message to a moderator Re: Error: Could not find or load main class [message #1222641 is a reply to message #1222630] Sat, 21 December 2013 00:18 Paul AdamsonMessages: 3Registered: December 2013 Junior Member Ah - I got it. Thanks anyway. There were two blank fields in the main tab of the run configurations panel. Report message to a moderator Re: Error: Could not find or load main class [message #1263867 is a reply to message #1222641] Tue, 04 March 2014 21:03 Sandra LailMessages: 1Registered: March 2014 Junior Member Thanks. I found the answer on going to the Run menu, Run Configurations and browsing to find the Project and Main class. Now my compile works! Report message to a moderator Re: Error: Could not find or load main class [message #1729873 is a reply to message #1222630] Tue, 19 April 2016 18:51 Balaji KriMessages: 1Registered: April 2016 Junior Member package sourcebits; import io.appium.java_client.ios.IOSDriver; import java.net.MalformedURLException; import java.net.URL; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterMethod; import org.t