Results 1 to 6 of 6
- 06-12-2012, 03:01 PM #1
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Need help with running programs in eclipse
I use eclipse and I have made some easy java programs in before. But suddenly when I tried to make one, eclipse gave me the error: "Could not find the main class: LoL. Program will exit". I use JRE 7u3 and JDK 7u3. I do not do anything special I just press the run button in eclipse.
code I tried:
I would be grateful if someone could answer this, cause without this problem solved I cannot make stuff in java.Java Code:public class LoL { public static void main(String[] args) { System.out.println("hey"); } }
Last edited by HelloWorld1234; 06-12-2012 at 03:27 PM.
- 06-12-2012, 03:19 PM #2
Re: Need help with running programs in eclipse
The filename should match the name of the public class in the file. Where is the class named test?Could not find the main class: test.
Have you read this: http://docs.oracle.com/javase/tutori...ava/win32.htmlIf you don't understand my response, don't ignore it, ask a question.
- 06-12-2012, 03:26 PM #3
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Re: Need help with running programs in eclipse
sorry, it was supposed to be the same. I fixed it now.
Last edited by HelloWorld1234; 06-12-2012 at 03:37 PM.
- 06-12-2012, 03:37 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
Re: Need help with running programs in eclipse
Learn how define a 'run configuration' for Eclipse; you can run a 'run configuration' instead of just typing F11. You saw what can happen ...
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 06-12-2012, 03:44 PM #5
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Re: Need help with running programs in eclipse
Where can I learn this?
- 06-12-2012, 03:49 PM #6
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Similar Threads
-
after installing jdk my programs are compiling but running??
By aumkar0406 in forum New To JavaReplies: 12Last Post: 01-01-2012, 12:28 PM -
Running Java programs in windows 7
By jonytek in forum New To JavaReplies: 1Last Post: 02-09-2011, 04:45 AM -
[SOLVED] Running java programs from the command prompt
By wiz0r in forum New To JavaReplies: 6Last Post: 04-20-2009, 04:34 AM -
Running 3 Java programs in sequence.
By loktamu in forum New To JavaReplies: 2Last Post: 11-23-2008, 06:50 PM -
Problem in running java programs
By aravind in forum New To JavaReplies: 0Last Post: 07-14-2008, 11:19 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks