Hi.
I'm trying to develop UNO component with Java. It was successful to create idl files, urd files, and rdb file. Now using javamaker, I'm confused with the following error message:
$ javamaker -BUCR -O idl/class idl/rdb/types.rdb
javamaker ERROR: Cannot create temporary file for idl/class/com/example/XTest.class
What's the matter with this?
My environment is OpenOffice 4.1.6 and OpenOffice SDK 4.1.6 on Mac OS X 10.11.6.
Thanks for your help in advance.
[Solved] javamaker ERROR: Cannot create temporary file
[Solved] javamaker ERROR: Cannot create temporary file
Last edited by moto on Wed Jul 24, 2019 8:13 pm, edited 2 times in total.
OpenOffice 4.1.6
OpenOffice SDK 4.1.6
Mac OS X 10.11.6
OpenOffice SDK 4.1.6
Mac OS X 10.11.6
Re: javamaker ERROR: Cannot create temporary file
Check that javamaker has permissions to create and write a file in the target directory.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: javamaker ERROR: Cannot create temporary file
Thanks for your reply.
The target directory has drwxr-xr-x permission, so javamaker executed by user should create and write files there, I suppose.
For testing purpose, I changed the permission to drwxrwxrwx, but the same error occurs.
Interestingly, javamaker creates subdirectories under the target directory, which represent the class path, so it does not look like permission problem to me.
Am I still missing anything in the permission setting?
The target directory has drwxr-xr-x permission, so javamaker executed by user should create and write files there, I suppose.
For testing purpose, I changed the permission to drwxrwxrwx, but the same error occurs.
Interestingly, javamaker creates subdirectories under the target directory, which represent the class path, so it does not look like permission problem to me.
Am I still missing anything in the permission setting?
OpenOffice 4.1.6
OpenOffice SDK 4.1.6
Mac OS X 10.11.6
OpenOffice SDK 4.1.6
Mac OS X 10.11.6
Re: javamaker ERROR: Cannot create temporary file
Finally after many experiments, I found that javamaker is strict to -O option.
Bad usage: This causes an error.
$ javamaker -BUCR -O idl/class idl/rdb/types.rdb
Good usage: This works fine.
$ javamaker -BUCR -O ./idl/class idl/rdb/types.rdb
Somehow, javamaker is not so strict to the path of rdb file. After all, the best way is to use the full path for every case.
Thanks all.
Bad usage: This causes an error.
$ javamaker -BUCR -O idl/class idl/rdb/types.rdb
Good usage: This works fine.
$ javamaker -BUCR -O ./idl/class idl/rdb/types.rdb
Somehow, javamaker is not so strict to the path of rdb file. After all, the best way is to use the full path for every case.
Thanks all.
OpenOffice 4.1.6
OpenOffice SDK 4.1.6
Mac OS X 10.11.6
OpenOffice SDK 4.1.6
Mac OS X 10.11.6