Problems in setting classpath in vista

i am using Xp pro and Vista.

My issue is that I am not able to set classpath in vista.

i want to set classpath so that I can compile and run programs from different folder other than default one in which java is installed.

Please help.

[267 byte] By [Manish.k.Soina] at [2007-11-27 11:16:39]
# 1

Vista got some security issues.

lrngjavaa at 2007-7-29 14:20:22 > top of Java-index,Java Essentials,New To Java...
# 2

> i am using Xp pro and Vista.

> My issue is that I am not able to set classpath in

> vista.

Don't worry about it. The CLASSPATH variable is best avoided anyway. Specify classpaths for particular apps on the command-line. Teh Docs show you how

> i want to set classpath so that I can compile and run

> programs from different folder other than default one

> in which java is installed.

> Please help.

This suggests you're talking about PATH rather than classpath. Do you understand the difference?

georgemca at 2007-7-29 14:20:22 > top of Java-index,Java Essentials,New To Java...
# 3

I am sorry about confusion between PATH and CLASSPATH.

I am able to set PATh variables as well as CLASSPATH.Now I can compile as well as run my programs from E:\java.

However when from command prompt i.e.

E:\java>edit hello.java

it says edit is not recognized as internal or external command.

do I have to use notepad or can I fix this issue from command prompt itself.Please Help

Manish.k.Soina at 2007-7-29 14:20:22 > top of Java-index,Java Essentials,New To Java...
# 4

Nothing at all to do with Java. Use any old text editor, but I don't know why you don't have 'edit' on your path, my Vista box does

georgemca at 2007-7-29 14:20:22 > top of Java-index,Java Essentials,New To Java...