This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi there, I figured I'd come here for a bit of help, and probably stick around for a while. I've been learning programming for about 6 years now, first BASIC, then C++, and now Java. I wouldn't exactly call myself a beginner in the concepts involved, but there's a lot of the 'basic' stuff I've been exposed to recently. I was writing Java programs before on a Linux machine, compiling and executing through the terminal. Although it was different than how I coded before (through Borland C++), it wasn't too difficult. Now I'm trying to code on my PC through the MS-DOS prompt. I found the java command to execute, but how do I compile my program? There isn't any javac command. I'm using the Java 1.4 SDK. Any help/tips would be appreciated Dan
you say this command : c:\path of jdk\bin\> javac yourprogram.java
Joined: Feb 21, 2003
Does it have to be in the java sdk directory? I've got a program now just in C:\, for the sake of simplicity. ">javac Test.java" did SOMETHING, but then "java Test" brought up the "exception in thread "main" java.lang.NoClassDefFoundError: Test" error, which I assume means it wasn't compiled.... right? Dan