DIGIT-ARC read-only archive · snapshot: July 23, 2026

Help a beginner in Java!!

6 posts · originally from https://geek.digit.in/community/threads/help-a-beginner-in-java.90743/

A
anuragsinha Original post #1
Jun 18, 2008 at 1:01 AM
Hello! to all tech enthusiasts.well iam a beginner programmer in Java currently learning it on my very own.Ihave got an extremely simple but very important question.I recently started using Windows Vista Home premium and downloaded JDK 6.0.But I find that many commands such as "javac" are not recognised by the system and infact I have not been able to run any program correctly till now on my new PC.Please can anyone give me some information as to how I can start using Java on my PC??
dheeraj_kumar
Jun 18, 2008 at 6:09 PM
start->run "cmd"

navigate to the folder where you installed jdk. then go to \bin.

now you can use javac and java.
anomit
anomit #3
Jun 19, 2008 at 8:43 AM
change your PATH environment variable. I have never used Vista but if I was in XP, I'd have done the following from the command prompt:

SET PATH=%PATH%;D:\java\bin

assuming you have installed the jdk at D:\java
Don't think things would be much different in Vista..
R
Jun 19, 2008 at 9:14 AM
Pls set the path and the class path.
create a .bat file and put the path and classpath the go to cmd and run thr .bat file.
set path=;E:\Java\jdk1.7.0\bin;%path%
set classpath=;E:\Java\jdk1.7.0\src.jar;.;E:\Java\jdk1.7.0\lib\dt.jar;.;E:\Java\jdk1.7.0\lib\tools.jar;%classpath%
quad_master
Jun 19, 2008 at 7:48 PM
typical path problem dude!! if u open a console & set the PATH variable...bingo!:D u r done!! but i think when u exit form that console...setting will gone!! ;)

so u need to fix this up permanently...
RClick on mycomputer > properties > advanced > environment variables > user variable/system variable section's NEW button > it'll ask for 'variable name' & 'value'
set 'variable name' to PATH & it's value to the java's 'bin' directory...save the changes...u r done!:D
~Phenom~
Jun 19, 2008 at 8:30 PM
^^absolutely right.