Sponsored Content
Top Forums Shell Programming and Scripting Setting java and returning version Post 302831247 by DGPickett on Wednesday 10th of July 2013 02:16:45 PM
Old 07-10-2013
Usually, it is sufficient to set the $PATH so that the desired JAVA is before competing paths. However, to set a symlink is just "ln -s source_path target_path". The source path, if relative, needs to relative to the target path dir. Removing a symbolic link is just "rm target_path".

Some versions of JAVA also have a server mode, as opposed to a client mode, where there is more exhaustive compilation in the server mode; the client mode is more restrained, optimized for quick startup.

Last edited by DGPickett; 07-10-2013 at 03:43 PM..
 

8 More Discussions You Might Find Interesting

1. Solaris

Setting link to newly installed Java version

Hi, I have Solaris 8 wih Java 1.2.2 as default. I just upgraded it to Java 2 version 1.4. But when I do "java -version: I get following: "Java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunjwit) How would I make solaris to look at my new java? If I have to... (4 Replies)
Discussion started by: harjitsingh
4 Replies

2. UNIX for Dummies Questions & Answers

malloc returning NULL if freemem high & swapmem low (MPRAS version 3.03 )

Hi All,:) In my application malloc is returning NULL even though there is sufficient amount of free memory available but the swap memory is low. Is this possible that, if free memory is high & swap memory is low, malloc will not be able to allocate memory & return NULL ? Few details: ... (4 Replies)
Discussion started by: Ritesh Kumar
4 Replies

3. Solaris

Solaris 10 Java version

I have an issue here setting up ASR with a server. In order to have the SASM service runnning/enabled, the required java version is 1.6 U18(latest). My OS came with JDK 1.5 I downloaded and installed 1.6 But when I did java -version , its still showing 1.5 I captured the below from another... (4 Replies)
Discussion started by: incredible
4 Replies

4. UNIX for Advanced & Expert Users

Advanced Search * View * Edit JAVA version to WORK in GLASSFISH Forum topic JAVA version

Would like to confirm the ff. I got confused actually with the version I needed to download that will work on glassfish 3.0.1 a. Debian Squeeze (HP DL360). Need to use java version6 On Debian, I did apt-get install sun-java6-jdk. So when I check it's java version "1.6.0_22" Java(TM) SE... (1 Reply)
Discussion started by: lhareigh890
1 Replies

5. Solaris

java (java -version)

hi my box is a global zone with no local zones and the command java -version shows as "1.5.0_26". now we got a requirement from the application team to install jdk1.5.0_24. Is it possible to install the version of java(jdk1.5.0_24) as requested by the application team or is it possible to... (2 Replies)
Discussion started by: newtoaixos
2 Replies

6. Shell Programming and Scripting

installed java version ?

Hi, I want to know what version of the java is installed? Please let me know the command or process to identify the installed java version in sun solaris box. Thanks in advance for all your support. (3 Replies)
Discussion started by: sridhardwh
3 Replies

7. Programming

Java Runtime.getRuntime().exec not returning any value

Hi, i written class like this but it is not returning any results and infact p.waitFor() is returning value 1. This is very basic program that i am planning to run in unix. This is really killing my time and unable to find correct reason.... (6 Replies)
Discussion started by: sbjv
6 Replies

8. HP-UX

Setting up new version of java

Hi, I have got jre 1.5 that I have got to install in the HP.UX version 11.31. I managed to install it with this command : # swinstall -s /tmp/<jre.XXXXX.depot> It automatically gets created in /opt/java1.5/jre/bin. However, now I am not sure how to set the PATH to JAVA_HOME, and path to... (1 Reply)
Discussion started by: anaigini45
1 Replies
OCF_HEARTBEAT_EDIR88(7) 					OCF resource agents					   OCF_HEARTBEAT_EDIR88(7)

NAME
ocf_heartbeat_eDir88 - Manages a Novell eDirectory directory server SYNOPSIS
eDir88 [start | stop | monitor | meta-data | validate-all] DESCRIPTION
Resource script for managing an eDirectory instance. Manages a single instance of eDirectory as an HA resource. The "multiple instances" feature or eDirectory has been added in version 8.8. This script will not work for any version of eDirectory prior to 8.8. This RA can be used to load multiple eDirectory instances on the same host. It is very strongly recommended to put eDir configuration files (as per the eDir_config_file parameter) on local storage on each node. This is necessary for this RA to be able to handle situations where the shared storage has become unavailable. If the eDir configuration file is not available, this RA will fail, and heartbeat will be unable to manage the resource. Side effects include STONITH actions, unmanageable resources, etc... Setting a high action timeout value is _very_ _strongly_ recommended. eDir with IDM can take in excess of 10 minutes to start. If heartbeat times out before eDir has had a chance to start properly, mayhem _WILL ENSUE_. The LDAP module seems to be one of the very last to start. So this script will take even longer to start on installations with IDM and LDAP if the monitoring of IDM and/or LDAP is enabled, as the start command will wait for IDM and LDAP to be available. SUPPORTED PARAMETERS
eDir_config_file Path to configuration file for eDirectory instance. (optional, string, default /etc/opt/novell/eDirectory/conf/nds.conf) eDir_monitor_ldap Should we monitor if LDAP is running for the eDirectory instance? (optional, boolean, default 0) eDir_monitor_idm Should we monitor if IDM is running for the eDirectory instance? (optional, boolean, default 0) eDir_jvm_initial_heap Value for the DHOST_INITIAL_HEAP java environment variable. If unset, java defaults will be used. (optional, integer, no default) eDir_jvm_max_heap Value for the DHOST_MAX_HEAP java environment variable. If unset, java defaults will be used. (optional, integer, no default) eDir_jvm_options Value for the DHOST_OPTIONS java environment variable. If unset, original values will be used. (optional, string, no default) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 600. stop Stops the resource. Suggested minimum timeout: 600. monitor Performs a detailed status check. Suggested minimum timeout: 60. Suggested interval: 30. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 5. EXAMPLE
The following is an example configuration for a eDir88 resource using the crm(8) shell: primitive example_eDir88 ocf:heartbeat:eDir88 op monitor timeout="60" interval="30" SEE ALSO
http://www.linux-ha.org/wiki/eDir88_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_EDIR88(7)
All times are GMT -4. The time now is 05:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy