View Single Post
  #3 (permalink)  
Old Mar 24th, 2007, 19:27
stroodle01 stroodle01 is offline
New Member
Join Date: Mar 2007
Location: England
Age: 27
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problem running Java

The code is as follows:


class Demo001
{
public static void main(String[] args)
{
System.out.println("Blimey!!");
System.out.println("It Works!!");
}
}


The code seems fine to me, perhaps you may be able to spot an error?? the class path may be the problem. I have named the class correctly. I have a feeling a program may be interfering with the JAVA program path, which may involve messign arong with the registry settings (which i have no idea about!). Although saying this it has no problem compiling, the compiler JAVAC is located in the same folder as the JAVA program, although the program will still not run wich to me seems very wierd!!
Reply With Quote