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)
Discussion started by: sanjaydubey2006
10 Replies
LEARN ABOUT DEBIAN
update-java-alternatives
UPDATE-JAVA-ALTERNATIVES(8) System Manager's Manual UPDATE-JAVA-ALTERNATIVES(8)NAME
update-java-alternatives - update alternatives for jre/sdk installations
SYNOPSIS
update-java-alternatives [--jre] [--plugin] [-t|--test|-v|--verbose]
-l|--list [<jname>]
-s|--set <jname>
-a|--auto
-h|-?|--help
DESCRIPTION
update-java-alternatives updates all alternatives belonging to one runtime or development kit for the Java language. A package does pro-
vide these information of it's alternatives in /usr/lib/jvm/.<jname>.jinfo.
OPTIONS
-l|--list [<jname>]
List all installed packages (or just <jname>) providing information to set a bunch of java alternatives. Verbose output shows each
alternative provided by the packages.
-a|--auto
Switch all alternatives of registered jre/sdk installations to automatic mode.
-s|--set <jname>
Set all alternatives of the registered jre/sdk installation to the program path provided by the <jname> installation.
--jre Limit the actions to alternatives belong to a runtime environment, not a development kit.
--jre-headless
Limit the actions to alternatives belong to the headless part of a runtime environment.
--plugin
Limit the actions to alternatives providing browser plugins.
-h|--help
Display a help message.
-t|--test
Don't actually do anything, just say what would be done. The implementation status of this option is the same as for update-alter-
natives (not implemented).
-v|--verbose
Verbose output.
FILES
/usr/lib/jvm/.*.jinfo
A text file describing a jre/sdk installation. Consists of some variables of the form <var>=<value> and a list of alternatives of
the form jre|jdk <name> <path>.
AUTHOR
update-java-alternatives and this manual page was written by Matthias Klose <doko@ubuntu.com>.
May 2006 UPDATE-JAVA-ALTERNATIVES(8)