Posted By:
praveen_kumar
Posted On:
Wednesday, November 12, 2008 11:51 PM
Hi, When i try to run the following program which checks whether the file exists in the given path or not public class FileCheck { public static void main(String[] a){ String str = a[0]; File f = new File(str); if(f.exists()) System.out.println("File Exists "); else System.out.println("File does not Exists "); } } So on solaris 10(Korean) we have file named in korean language under "usr" directory. When i try to run the above program on solaris 10(Korean) using the default jre (1.5)with the parameter &q
More>>
Hi,
When i try to run the following program which checks
whether the file exists in the given path or not
public class FileCheck {
public static void main(String[] a){
String str = a[0];
File f = new File(str);
if(f.exists())
System.out.println("File Exists ");
else
System.out.println("File does not Exists ");
}
}
So on solaris 10(Korean) we have file named in korean
language under "usr" directory. When i try to run the
above program on solaris 10(Korean) using the default
jre (1.5)with the parameter "/usr/file name in korean language" .The output of the program is "File Exists"
And when i run the same class file using the jre (1.6)
which is installed in our application which is an
english version with the same parameter ""/usr/file name
in korean language"
The output of the program is "File does not exists".
And this problem is only with the files which contain the name in korean language.
So do we need to set any properties for the jre in our application to work for files which are named in korean
language. Any help will be highly appreciated.
<<Less