java engines

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

CRoberson
Posts: 2055
Joined: Mon Mar 13, 2006 2:31 am
Location: North Carolina, USA

Re: java engines

Post by CRoberson »

There is a PATH environment variable. Create a symbolic link to that spot at C: and call it CURRENTJAVA, then put CURRENTJAVA in the PATH. When Java versions change, change the CURRENTJAVA link to the new spot.

To all the programs and the PATH variable it seems like the Java location never changes.
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: java engines

Post by Matthias Gemuh »

SzG wrote:I use very few java engines. Reason: whenever there is a java update, the java.exe path changes by following the version number and the engines do not see java.exe any more. To correct the path in each batch file is tiresome and I even might forget all occurrences.

There might be a solution for the engines to follow the path changes but I don't know it. Maybe some environment variable can be used? Can someone enlighten me?
ChessGUI uses javaw.exe without a path.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de