Skip to Content
0
Jun 09, 2012 at 07:31 AM

java mapping write file - path problem

26 Views

Hello experts,

I have a java mapping that writes a file onto the file system of the JEE server.

The path in the mapping I specified like this:

File file= new File("../temp/myfile.txt");

I expect it being in

/usr/sap/<SAPSID>/<Instance>/j2ee/cluster/temp

But the file is always saved under "../cluster/server0/myfile.txt" or "../cluster/server1/myfile.txt"

How can I solve this?

I also tried

File file= new File("../server0/myfile.txt");

expecting it to always be saved under "server0" but it is either saved in "server0" or "server1".

Thank you for your help,

Peter