The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Rep-classpath-path

Posted by Rajendrakumar on May 19, 2001 at 1:38 AM

> Sir,

> I have installed java recently.I'm new to it. I'm not able to work on java programs. I found it it out as I had not set the PATH and CLASSPATH variable. I have stored my java files in c:\jdk> [bin dir => c:\jdk\bin> ]
>
> How do i set this PATH and CLASSPATH variables?? (i know that you have to edit the autoexec.bat file but my command doesn't seem to work. my OS is windows 98)

> My commands were

> rem - By Windows Setup - javac.exe;java.exe; appletviewer.exe SET PATH =%PATH%;C:\JDK\BIN;C:
> javac -CLASSPATH =.java;.class;C:\JDK\BIN; c:\; c:\j

Hi !
Put the path , classpath entries in System Environmet or user environmet.(if u put in System environmet u need to restart the computer)

classpath=c:\jdk\lib\tools.jar;c:\jdk\lib\dt.jar;
path=c:\jdk\bin





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us