Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How to set tmp directory for iastool

How to set tmp directory for iastool

Problem:

  • Product Name: BES
  • Product Version: 6.5
  • Product Component: iastool

When using the iastool to generate a deployable jar, we are receiving an erroneous and undescriptive error/exception message:

 [exec] The " characters around the executable and arguments are
 [exec] not part of the command.
 [exec] Generating deployable module
 [exec] java.io.IOException: No such file or directory
 [exec] at java.io.UnixFileSystem.createFileExclusively(Native Method)
 [exec] at java.io.File.checkAndCreate(File.java:1314)
 [exec] at java.io.File.createTempFile(File.java:1402)
 [exec] at com.borland.enterprise.util.FileUtil.createTempDir(FileUtil.java:597)
 [exec] at com.borland.enterprise.util.FileUtil.createTempDir(FileUtil.java:626)
 [exec] at com.borland.management.module.tools.ModuleAPI.generateDeployableJar(ModuleAPI.java:232)
 [exec] at com.borland.management.module.tools.GenDeployableCmd.execut
 .
 .
 .

The cause of the issue is that the "java.io.tmpdir" property is set to: /tmp/cmdtool/

I have tried numerous command-line incantations to no avail.

Resolution:

There are two ways to set the "java.io.tmpdir" for iastool:

1. The iastool picks up its settings from the "iastool.config" file under the same directory as iastool, i.e., <BES Install>/bin. Comment out the default setting in the config file:

"vmprop java.io.tmpdir=$var(installRoot)/tmp/$var(feature)"

and set it to be an absolute dir where you want.

2. The standard JVM options should be taken by iastool, as the following:

.../BES65_64/bin: ./iastool -Djava.io.tmpdir=xxx

 

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Comments

How to change the Remote Access Logging in Administrative Tools? I've just checked the technet.microsoft.com/.../cc739394(v=ws.10).aspx and https://hireessaywriter.org/ tutorials on IAS Tools. What are the basic discrepancies between /tmp and /var/tmp in this case? They do have the same functionality and aims?

Thanks.

Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 18:22
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.