HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Executing DCL from Java
Operating System - OpenVMS
1828330
Members
5287
Online
109976
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2008 08:30 PM
12-08-2008 08:30 PM
Hi,
I've installed a Java application on an HP Integrity rx2660 server running VMS 8.3-1H1 and the latest Java SDK. The application (a commercial e-commerce product) was not developed with VMS in mind and we are this vendor's first VMS customer.
The application has the ability to "run a shell command on receipt of a file" and so I configured it to run a SUBMIT command. However it fails with this error:
"Child creation error: no such file or directory"
The vendor tells me the DCL command is invoked using Runtime.exec() but I know nothing about Java. Where can I find a description of how Runtime.exec() works on VMS?
FYI the Java application runs as a batch job under a specific username. The SUBMIT command in question works fine when invoked by that user interactively.
Thanks,
Jeremy Begg
I've installed a Java application on an HP Integrity rx2660 server running VMS 8.3-1H1 and the latest Java SDK. The application (a commercial e-commerce product) was not developed with VMS in mind and we are this vendor's first VMS customer.
The application has the ability to "run a shell command on receipt of a file" and so I configured it to run a SUBMIT command. However it fails with this error:
"Child creation error: no such file or directory"
The vendor tells me the DCL command is invoked using Runtime.exec() but I know nothing about Java. Where can I find a description of how Runtime.exec() works on VMS?
FYI the Java application runs as a batch job under a specific username. The SUBMIT command in question works fine when invoked by that user interactively.
Thanks,
Jeremy Begg
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2008 09:28 PM
12-08-2008 09:28 PM
Solution
A quick Google search for:
java Runtime.exec vms OR openvms
led reasonable easily to:
http://h18012.www1.hp.com/java/documentation/
http://h18012.www1.hp.com/java/documentation/1.4.2/ovms/docs/user_guide.html
http://h18012.www1.hp.com/java/documentation/1.4.2/ovms/docs/user_guide.html#workingwruntimeexec
I quote:
[...]
Asking a Java program to exec a DCL verb like DIR does not work.
Workaround:
[...]
java Runtime.exec vms OR openvms
led reasonable easily to:
http://h18012.www1.hp.com/java/documentation/
http://h18012.www1.hp.com/java/documentation/1.4.2/ovms/docs/user_guide.html
http://h18012.www1.hp.com/java/documentation/1.4.2/ovms/docs/user_guide.html#workingwruntimeexec
I quote:
[...]
Asking a Java program to exec a DCL verb like DIR does not work.
Workaround:
[...]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2008 09:57 PM
12-08-2008 09:57 PM
Re: Executing DCL from Java
Thanks! I found the same information about 20 minutes after writing my query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2008 03:27 AM
12-09-2008 03:27 AM
Re: Executing DCL from Java
Answered before, see threadId=1226409. Another workaround (costs one more process) is to use DCL.EXE from GNV and have that in your path.
$ ty dcl.java
import java.io.*;
public class DCL {
public static void main(String argv[]) {
try {
String cmd[] = {"dcl.exe", "dir", "/since", "dcl*"};
String line;
Process p = Runtime.getRuntime().exec (cmd);
BufferedReader input =
new BufferedReader
(new InputStreamReader(p.getInputStream()));
while ((line = input.readLine()) != null) {
System.out.println(line);
}
input.close();
}
catch (Exception err) {
err.printStackTrace();
}
}
}
$ javac dcl.java
$ java "DCL
Directory SYS$SYSDEVICE:[HARTMUT]
DCL.CLASS;1 DCL.JAVA;1
Total of 2 files.
$
$ ty dcl.java
import java.io.*;
public class DCL {
public static void main(String argv[]) {
try {
String cmd[] = {"dcl.exe", "dir", "/since", "dcl*"};
String line;
Process p = Runtime.getRuntime().exec (cmd);
BufferedReader input =
new BufferedReader
(new InputStreamReader(p.getInputStream()));
while ((line = input.readLine()) != null) {
System.out.println(line);
}
input.close();
}
catch (Exception err) {
err.printStackTrace();
}
}
}
$ javac dcl.java
$ java "DCL
Directory SYS$SYSDEVICE:[HARTMUT]
DCL.CLASS;1 DCL.JAVA;1
Total of 2 files.
$
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP