Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error: Could not find or load main class
Error: Could not find or load main class [message #1222630] Fri, 20 December 2013 23:29 Go to next message
Paul Adamson is currently offline Paul AdamsonFriend
Messages: 3
Registered: 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 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 Go to previous messageGo to next message
Paul Adamson is currently offline Paul AdamsonFriend
Messages: 3
Registered: December 2013
Junior Member
Ah - I got it. Thanks anyway.

There were two blank fields in the main tab of the run configurations panel.
Re: Error: Could not find or load main class [message #1263867 is a reply to message #1222641] Tue, 04 March 2014 21:03 Go to previous messageGo to next message
Sandra Lail is currently offline Sandra LailFriend
Messages: 1
Registered: 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!
Re: Error: Could not find or load main class [message #1729873 is a reply to message #1222630] Tue, 19 April 2016 18:51 Go to previous message
Balaji Kri is currently offline Balaji KriFriend
Messages: 1
Registered: 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.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class mobile {
IOSDriver driver;

@Test
public void setUp() throws MalformedURLException {
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("platformName", "iOS");
caps.setCapability("platformVersion", "9.2.1"); //Replace this with your iOS version
caps.setCapability("deviceName", "SBMOB/0110"); //Replace this with your simulator/device version
caps.setCapability("app", "/Users/balaji/Downloads/Genie.ipa"); //Replace this with app path in your system
driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"), caps);
}


}


I am using the above code and as per the attached screenshot what changes should I do run the application successfully
Previous Topic:Folding in fortran not working
Next Topic:How to make my IDE looks native on windows 10?
Goto Forum:
  


Current Time: Thu Apr 18 10:32:51 GMT 2019

Powered by FUDForum. Page generated in 0.03165 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top