> I am new for java, so I have a problem about create a
> new file in %USERPROFILE%. I am try to used
> java.io.File file = new
> java.io.File("%USERPROFILE%\\acb.txt");
> ut it does not work.
It does work. It just doesn't do what you guessed it does.
Apart from that, %USERPROFILE% can't be accessed that was from Java. You need to use System.getEnv().