Re: dos batch files, java and the universe

  • From: "Jay Macarty" <jay.macarty2009@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 12 Jul 2010 08:10:23 -0500

First I would check that the java\bin directory isn't already in the path. You can do this by opening a command prompt window and entering the command java -version


If you get a response showing the java correct java version, then you are set.

----- Original Message ----- From: "qubit" <lauraeaves@xxxxxxxxx>
To: "bprogramming" <programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, July 11, 2010 9:54 PM
Subject: dos batch files, java and the universe


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
//www.freelists.org/list/programmingblind


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

Other related posts: