I ran into the problem of compiling the source file with a special character in the class name. The class file compiles in the Eclipse IDE, but not from javac. I believe that I need to use the -encoding
flag, but have not yet gotten into the correct setting. I would appreciate any pointers:
File Name: DeptView ๅ SDO.java
Java source:
public interface DeptView\u548cSDO { public int getDeptno(); public void setDeptno(int value); }
Error message:
Running javac *.java
results in the following error message:
javac: file not found: DeptView?SDO.java
UPDATE
- I am currently trying to compile on the Windows XP command line
- Ultimately, this compiler should be part of the ant build, run on different operating systems.
- I am working on a tool creating this generated source file.
Blaise donough
source share