Pranav: First of all you should not name your package using capitol letters.... This does not correspond to the java naming convention. None the less though, in the dialogue box did you name the main class as VPD.VPDemo? Jim James M. Corbett Programmer / Analyst | Canada Revenue Agency | Agence du revenue du Canada 875 Heron Rd. Ottawa, On. K1A0L5 James.Corbett@xxxxxxxxxxxxx Telephone | Téléphone: (613) 941-1338 Facsimile | Télécopieur: (613) 941-2261 Government of Canada | Gouvernement du Canada E = MC² -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Pranav Lal Sent: February 14, 2011 10:13 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: Debugging why my code is not running Hi Jim, You have hit upon the problem. My package is called VPD. The class is called VPDDemo and it has a main function which is defined as public void main(String[] args) <snip I indicated that I like to use main.Main for the sake of brevity. If not then use package_name.class_with_main_name. PL] I did not fully understand this. I have specified the name of the class in the relevant dialogue box and I get an error which seems to say that it cannot find the main function. When I hit run, I get the following dialogue box. Java Virtual Machine Launcher Fatal exception occurred. Program will exit. OK The console shows the following java.lang.NoSuchMethodError: main Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 Exception in thread "main" Pranav