Click to See Complete Forum and Search --> : Linux - Set Env Variables?


Gamut
March 15th, 2004, 01:53 PM
All -

I need to make an EXE run from any directory on a linux machine without the user being required to type the complete path of the EXE location.
As i understand, i need to set the classpath / environment variables for this EXE. Can someone please give a detailed solution to solve this problem?

Many Thanks!

khp
March 16th, 2004, 03:43 AM
exe is the extension for MS dos/windows executeable files. Is it such a file, or a proper linux executeable ? (which usually does to have . extensions)

Classpath is a java concept, the classpath is where the java classes are found. To be directly accessible without typing the full path, you have to put the file in a directory that is in the PATH enviroment variable.

You can see the value of the PATH variable by running the command echo $PATH

So you could just copy the file to one of the directories given in the path. /usr/local/bin is usually a good choice.