aspose file tools*
The moose likes Beginning Java and the fly likes setting an class path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "setting an class path" Watch "setting an class path" New topic
Author

setting an class path

lokesh rajarathnam
Ranch Hand

Joined: May 17, 2007
Posts: 35
Hello all,

Any one assist me for an setting an class path for an j2se 1.4 kit.

I expect it will be in steb by step...

i would tried like this
1. Instaling j2se1.4
2. opening the command prompt
3. set Path=c:\j2se1.4.0\bin
it will work correctly but the third step must to give every time i open the command prompt.
I want how to set path in Environment ?
how can i proceed....?
Red Smith
Ranch Hand

Joined: Aug 05, 2007
Posts: 136
    
    1
Originally posted by lokesh rajarathnam:
Hello all,

Any one assist me for an setting an class path for an j2se 1.4 kit.

I expect it will be in steb by step...

i would tried like this
1. Instaling j2se1.4
2. opening the command prompt
3. set Path=c:\j2se1.4.0\bin
it will work correctly but the third step must to give every time i open the command prompt.
I want how to set path in Environment ?
how can i proceed....?


In your example you appear to be setting PATH, not CLASSPATH. Both of those Environment variables can be set in the Windows Control Panel: Start->Control Panel-menu-item -> System-menu-item -> Advanced-tab -> Environment Variables-button
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

What is you OS?.
If you are using XP ......then right click
on My Computer->Advanced->Environment Variables
and there set yor path and class path


Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14274
    
  21

The JDK Installation Instructions explain exactly how to set the PATH variable for different versions of Windows. See point 5 in the instructions ("Update the PATH variable").


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Please note that PATH and CLASSPATH are different things. Setting a system PATH is a good idea, but I would not set a CLASSPATH at this point.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
jQuery in Action, 2nd edition
 
subject: setting an class path