Hello,
I just downloaded and installed jdk 1.5.0. Changed the Path variable from 1.4 to 1.5. I typed java -version to confirm my change took place. I then proceeded to do a quick Hello World example to make sure everything was working. When I go to compile: javac HelloWorld.java, It takes about 1.5 minutes and then I get the following error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space. Here's the code:
Any ideas as to why I get this error?
I just downloaded and installed jdk 1.5.0. Changed the Path variable from 1.4 to 1.5. I typed java -version to confirm my change took place. I then proceeded to do a quick Hello World example to make sure everything was working. When I go to compile: javac HelloWorld.java, It takes about 1.5 minutes and then I get the following error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space. Here's the code:
Code:
public class HelloWorld{
public static void main(String[] args) {
System.out.println("hello world");
}
}