You may need to search for the java executable and put its directory in your PATH. The file java is a starter executable that sets up the environment and selects the right final JAVA executable, as I recall.
If it is missing, go to the HP binary archive and geta copy. https://h20392.www2.hp.com/portal/sw...r=HPUXJAVAHOME You can untar it somewhere under your home dir if you are not a root guy.
Last edited by DGPickett; 06-14-2013 at 12:17 PM..
I was wondering if it was possible to call a unix command directly from a Java program during run-time. This command could very very basic e.g. "ps -ef" returned as a string, all I need is a starting place so if anyone has any suggestion or examples I would be very grateful (2 Replies)
Hi - I am totally new to UNIX so please bear with me...
I run a java program on Win NT server to do file ftp to UNIX server.
I log in, cd, create ftp file on UNIX and quit from my java progam - all works well.
Now I want to execute a script on UNIX.
At the UNIX 'console'/'shell' (!?) you... (1 Reply)
hi everybody,
i have a small unix script and i want to use it with java, so how can i executte unix command with java (if it is possible): in fact i want to use some values returned by this script with java swings.
is it possible (of course everything is possible) but how can i do? thank you in... (4 Replies)
I need to pass an empty space in the command ="java ......... "
as one of the arguments where java calls some java command....
(It accepts it in windows as " ")
Thanks in advance
SD (2 Replies)
Hi all,
I tried to execute the command by 2 ways :
1) Java Runtime class exec method - but the problem there is that it only can execute scripts without arguments(I need with args)
2) the Jtux classs Uprocess- the problem it is not supported by windows and my eclips platform is on... (0 Replies)
Hi,
What is the command to check the user's permission in UNIX ?
e.g: user in UNIX is "myuser"
The result should be number format. e.g: 755, 644, etc...
Thanks.. :) (3 Replies)
Advance Thanks.
(1) I would like to know any unix/Linux command to check EOF char in a file.
(2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
Hi All,
I have been struggling for a week trying to run a unix command from my java program.
the unix command is = ssh dmdev3@tsapid01-zt3d01 ':> /t3/envs/dmdev3/test/file_list.txt'
when i try to run this command directly on my unix console, it works perfectly.
but when i try it form my... (0 Replies)
Hi All,
I have been struggling for a week trying to run a unix command from my java program.
the unix command is:
ssh dmdev3@tsapid01-zt3d01 ':> /t3/envs/dmdev3/test/file_list.txt'
when i try to run this command directly on my unix console, it works perfectly.
but when i try it form... (12 Replies)
Hello Team,
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)