[Solved] javamaker ERROR: Cannot create temporary file

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
moto
Posts: 3
Joined: Wed Jul 24, 2019 5:22 am

[Solved] javamaker ERROR: Cannot create temporary file

Post 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.
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
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: javamaker ERROR: Cannot create temporary file

Post by RoryOF »

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
moto
Posts: 3
Joined: Wed Jul 24, 2019 5:22 am

Re: javamaker ERROR: Cannot create temporary file

Post 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?
OpenOffice 4.1.6
OpenOffice SDK 4.1.6
Mac OS X 10.11.6
moto
Posts: 3
Joined: Wed Jul 24, 2019 5:22 am

Re: javamaker ERROR: Cannot create temporary file

Post 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.
OpenOffice 4.1.6
OpenOffice SDK 4.1.6
Mac OS X 10.11.6
Post Reply