Java Env in FreeBSD

Posted on 2006-05-27
Last Modified: 2013-11-22
hi, i have modified my .cshrc of my root to include this

setenv JAVA_HOME   /usr/local/jdk1.5.0

previously, i have set this instead;

setenv JAVA_HOME /usr/local/jdk1.4.0

this is because according to the documentation, i have to install the version 1.4 beforei can proceed with 1.5 version. But anyway, this is beside the story. The problem that i am facing now is i am suspecting the environment of my JAVA_HOME still pointing to jdk1.4

I have typed, echo $JAVA_HOME and it's return me the correct path. But then i still suspecting the setenv JAVA_HOME is stored somewhere else.

How can i check, what is the command for me to verify the java version that i am using is correct? or any place that is setting the java_home beside the .cshrc

Question by:miri5698
    LVL 61

    Accepted Solution

    java -version , all according to documentation.
    LVL 4

    Expert Comment

    are you using tomcat or such ? or else, your cshrc should point you to the right JAVA_HOME.
    LVL 61

    Expert Comment

    Was I wrong? Where?


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now