Hi, I'm trying to get the first small program (party) in "Head first java" to work in the javac compiler. This is my first experiance with programming and would be grateful of any help!
This is my settings for user variables
PATH=%CommonProgramFiles%\Microsoft Shared\Windows Live (I've not altered this)
This is my settings for system variables
CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip (I've not altered this)
PATH=C:\Program Files\Java\jdk1.6.0_21\bin;%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\QuickTime\QTSystem\ (This one I added the first bit upto %commonprogramfiles)
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21 (this one I added the complete line, after reading it somewhere on the forum)
My source code is in
C:\Program Files\Java\jdk1.6.0_21\bin (not correct I know but i've many options) which is the same folder as
javac.
The file name is party2.java
This is the error code I get
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\craig>
java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)
C:\Users\craig>cd C:\Program Files\Java\jdk1.6.0_21\bin
C:\Program Files\Java\jdk1.6.0_21\bin>javac party2.java
party2.java:2: ';' expected
import java.awt.event*;
^
1 error
C:\Program Files\Java\jdk1.6.0_21\bin>
I've been trying to solve this problem for the last 4 days
I hope someone can point me in the right direction, don't want t fail at this early stage
Thanks again in advance