How to use Java pathSeparator,pathSeparatorChar

path separator using in Unix systems is colon(:) while in windows it is semicolon (;).

Due to this differences if setting up PATH or CLASSPATH for one environment will not work on other environment, overcome these issues and work platform independent way, java introduced pathSeperator variable.

The value of pathSeparatorChar is same as File.pathSeparator, but it will be a char rather than a string. So the output for File.pathSeparatorChar is colon(:) for unix and semicolon (;) for windows.