Page 1 of 1

[Solved] javamaker ERROR: Cannot create temporary file

PostPosted: Wed Jul 24, 2019 5:31 am
by moto
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.

Re: javamaker ERROR: Cannot create temporary file

PostPosted: Wed Jul 24, 2019 9:49 am
by RoryOF
Check that javamaker has permissions to create and write a file in the target directory.

Re: javamaker ERROR: Cannot create temporary file

PostPosted: Wed Jul 24, 2019 10:23 am
by moto
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?

Re: javamaker ERROR: Cannot create temporary file

PostPosted: Wed Jul 24, 2019 8:12 pm
by moto
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.