How to set path for java in UNIX | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

How to set path for java in UNIX

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-12-2007
subhotech subhotech is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 3 March 2011, 6:45 PM EST
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
How to set path for java in UNIX

How to set path for java in UNIX?
Sponsored Links
    #2  
Old 07-12-2007
psiva_arul's Avatar
psiva_arul psiva_arul is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 19 November 2009, 6:58 AM EST
Location: Bangalore, India
Posts: 97
Thanks: 0
Thanked 1 Time in 1 Post
How to find the Cron entrys path in UNIX server?

Quote:
Originally Posted by subhotech View Post
How to set path for java in UNIX?
Thanks,
Siva.P
Bangalore
Sponsored Links
    #3  
Old 07-12-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 
Join Date: Nov 2006
Last Activity: 20 November 2013, 8:29 AM EST
Location: Bulgaria
Posts: 1,419
Thanks: 0
Thanked 6 Times in 6 Posts
Q - "subhotech" : How to set path for java in UNIX?
A - Find where java is installed - "which java" and set the path in /etc/profile or respective file, real use case near me:

Quote:
JAVA_HOME=/usr/local/java
JDK_HOME=$JAVA_HOME
ANT_HOME=/usr/local/ant
PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME JDK_HOME ANT_HOME
Also, java classpath may be set with "java -cp"

Q : How to find the Cron entrys path in UNIX server?
A : This sounds strange to me, "crontab -l" to see current crontab entries, cron files' location varies depending on your OS.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Java sting up path problem repinementer Programming 1 01-19-2010 05:19 AM
Set java Path adtd8 UNIX for Dummies Questions & Answers 1 06-21-2008 09:57 PM
missing Path(in UNIX) when i launch a job on to unix machine using windows SSh megastar UNIX for Advanced & Expert Users 1 11-04-2005 06:36 AM
finding the java path in AIX fermisoft IP Networking 2 07-14-2005 03:50 AM
UNIX PATH info required PLEASE HELP (I'm new to unix) akitachi UNIX for Dummies Questions & Answers 1 05-10-2002 02:37 PM



All times are GMT -4. The time now is 06:33 AM.