I'm trying to compile some java files on my computer under Windows 7 in french; and I thing I have some trouble with file endoding...
In a first step, I'm generating a list of the file to compile:
dir src\*.java /B/S > javasrc.tmp~
Which will wrote in the file "javasrc.tmp~" line by line the full path of java file (recursivly) of the directory src. In my case I have :
C:\Users\Alexandre\Développement\Java\src\testA.java
C:\Users\Alexandre\Développement\Java\src\testB.java
[...]
(Note that there is an accentued letter into my full path)
In a second step, I compile all the source file with the following command:
"%JAVA_HOME%\bin\javac.exe" @javasrc.tmp~
And I get this error:
javac: file not found: C:\Users\Alexandre\Développement\Java\src\testA.java
When opening my javasrc.tmp~ file in Notepad++ the file is displayed as:
C:\Users\Alexandre\D,veloppement\Java\src\testA.java
C:\Users\Alexandre\D,veloppement\Java\src\testB.java
[...]
The accentued letter is display as a comma; and I have to select OEM 863 file encoding to display the content of the file correctly.
So how to solve my problem? (I'm using these commands as an automated process in a bat file).
Thank you.