Computer Science Canada

JDK Installing Link

Author:  MysticVegeta [ Wed May 04, 2005 5:01 pm ]
Post subject:  JDK Installing Link

Hi, I am new to java and i was searching for compilers and i saw that JCreator is a good one so i dled it. But i need JDK 1.4 installed inorder to Compile the scripts. I saw the links of JDK Download and i came across the 5.0 update only. Can someone post a link for the download. Thanks

Author:  Hikaru79 [ Wed May 04, 2005 6:05 pm ]
Post subject: 

1.4 is available here: http://java.sun.com/j2se/1.4.2/download.html

But I really reccomend you use 1.5. It can be configured to compile as 1.4 anyway -- and Eclipse and Netbeans are great IDE's anyway Very Happy

Author:  MysticVegeta [ Thu May 05, 2005 6:49 am ]
Post subject: 

oh thanks, I will try it out right now Smile

Author:  wtd [ Thu May 05, 2005 12:10 pm ]
Post subject: 

Yes. Any IDE that requires 1.4 isn't worth your time.

Also, for what it's worth, they're pretty much all using Sun's Java compiler under the surface, so it's incorrect to refer to them as "compilers".

I highly recommend just using the command-line tools, at least at first.

Author:  MysticVegeta [ Thu May 05, 2005 4:13 pm ]
Post subject: 

thanks, I tried it But everytime i compile a code with JCreator, I get the following error -> "Exception in thread 'main' java.lang.NoClassDefFoundError: test"

But the code works fine with "Ready to program java" at my schoo, What do i need to do, I have set up the jdk directories too Sad

Author:  wtd [ Thu May 05, 2005 4:22 pm ]
Post subject: 

Show us the exact code you're compiling, and tell us the name of the file it lives in.

A note now, though: The name of a class should match the name of the file. "class Test" should be in a file named "Test,java", for instance.

Author:  MysticVegeta [ Thu May 05, 2005 4:27 pm ]
Post subject: 

oh ok i attach it.

Author:  Hikaru79 [ Thu May 05, 2005 9:05 pm ]
Post subject: 

First, just a minor convention note -- Class names (and therefore filenames) should be Capitalized. Second, we don't really need the .java file -- we just need to know what commands you're running, and where you're running them from relative to the test.class file.


: