|
Re: Error: Could not find or load main class [message #1721968 is a reply to message #1721841] |
Mon, 01 February 2016 23:31 |
|
Tyler Galske wrote on Sun, 31 January 2016 18:34 I'm not sure why the program won't run because it works fine on my laptop where I initially created the project. I didn't push all my project files using Git, just the .java file in the src folder and the .gitignore file outside the src file.
Looking more closely at the differences would be a good idea. The .classpath file tells Eclipse where your source files are, and where they should be compiled to. Without it, it really has no idea what classes you're working on. Normally the JRE you're compiling against is referred to my its name in your Installed JREs preference page. You can make that more general and portable across machines by referring to it using an Execution Environment instead of directly by the name.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.08773 seconds