[Solved] javamaker ERROR: Cannot create temporary file

The Application Programming Interface and the OASIS Open Document Format

[Solved] javamaker ERROR: Cannot create temporary file

Postby moto » Wed Jul 24, 2019 5:31 am

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

Re: javamaker ERROR: Cannot create temporary file

Postby RoryOF » Wed Jul 24, 2019 9:49 am

Check that javamaker has permissions to create and write a file in the target directory.
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31570
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: javamaker ERROR: Cannot create temporary file

Postby moto » Wed Jul 24, 2019 10:23 am

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

Postby moto » Wed Jul 24, 2019 8:12 pm

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


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 1 guest