Re: dos batch files, java and the universe

Unless you are running an old version of Windows, (pre XP), you set the classpath and other environment variables through the UI. Open the properties of My Computer, move to the Advanced tab, and select Environment Variables.


On 7/11/2010 10:54 PM, qubit wrote:
 From the recent mail on this list I have gotten the impression that dos
batch files run differently on different versions of windows.
Does this apply to basic syntax and semantics, or is the difference only in
advanced commands?

I am trying to write a batch file and am finding dos just similar enough to
bash to look familiar, but just different enough to trip me up.
What I need is a command to put me in an environment where my java commands
will work, as well as my own java programs.
I have installed the JDK in
java_home="c:\program files\java\jdk1.6.0_20"
Obviously I need path reset:
set path="%java_home%\bin;%path%"
I also need to set something else like class_path -- if I am remembering
right.
But I have been unable to get this to work.
If anyone has comments, please fill in the blanks.
(But no "blankety blanks" please*smile*)

Oh, and how do I call a batch file so it is executed within the parent dos
shell? that is, the variables set in the batch file keeps its value after
the batch file exits.
Thx.
--le

__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind

Other related posts: