Launch Error.jpg
I am use an IDE.I am trying to run with ctrl+F11.
What can I do to run correctly?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Launch Error.jpg
I am use an IDE.I am trying to run with ctrl+F11.
What can I do to run correctly?
Implement a main method.
I suspect you either need a main() method, or if the source code has one, then the source code file should be named the same as the top-level public class name with the .java extension. You might refer to the IDE's getting started tutorials for help over these basic Java hurdles with the IDE.
shirin (December 6th, 2013)
Thanks, but when this error appear while I want to run simple program with CloudSim toolkit with eclipse IDE.Can you help me to run it correctly?
The simple program has a main() method? When we suggest remedies, you need to address them directly.
If you don't know, say so. If you do know and you've determined that the simple program does not have a main() method, then add one. If you don't know how to add a main() method, then you need to start at the beginning and learn some Java rather than expecting people to explain to you how to run random code you found on the Internet. If the simple program has a main() method and you're still getting the error, then post the simple program in code tags and we'll go from there.
public class sample2 {
public static void main(String[] args) {
System.out.println("Hello world");
}
}
This is my code without any error and I want to start cloud programming with eclipse IDE.What can I do to learn?Can You help me?
First, please read the Announcement topic to learn how to post code in code or highlight tags and other useful info for newcomers.
I don't know what cloud programming is. Please define what you think it is and what you need help with. Someone smarter may happen by and be able to help.