Results 1 to 2 of 2
Thread: File Won't run
- 01-21-2011, 07:15 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
File Won't run
This is odd. I compiled HelloWorld.java successfully using javac HelloWorld.java at cmd. Then i typed in java HelloWorld and it says "Could not find main class HelloWorld. Program will exit". What is wrong? Here is the source code:
class HelloWorld{
public static void main(String[] args){
System.out.println("Hello World");
}
}
- 01-21-2011, 07:21 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,394
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Write a program that sorts data from a text file and sort them in a file
By danmgz45 in forum New To JavaReplies: 6Last Post: 12-01-2010, 05:31 AM -
Log4J : logs of a specific category to a file, but only errors to the file AND stdout
By msegmx in forum Advanced JavaReplies: 0Last Post: 07-15-2010, 01:23 PM -
Sending a File from Server to Client and saving the file to Clients computer
By al_Marshy_1981 in forum NetworkingReplies: 8Last Post: 02-18-2010, 12:54 PM -
how to read openproj(Projity) file i.e. ,POD file(Project Management file)
By mahendra.athneria in forum New To JavaReplies: 0Last Post: 02-11-2009, 09:53 AM -
How to parse the CSV(Comma separation values)file and validate the file using java
By padmajap13 in forum Advanced JavaReplies: 7Last Post: 05-23-2008, 03:46 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks