Solved

Setting up Java

Posted on 2003-10-29
2
270 Views
Last Modified: 2013-12-15
When I type in "java" in the terminal window it uses the built in gjc interpreter.  I've installed the latest Sun SDK and put in in my PATH as well.  However, the java command is still intercepted by gjc.  How do I set up my system so it will run the SUN java executable instead of the gjc when I type "java" or "javac"?
0
Comment
Question by:juraj
2 Comments
 
LVL 1

Expert Comment

by:AgelmarJagad
ID: 9647015
What is probably happening is gjc is earlier in your path than SUN's java.  One way you could get SUN's java to come first is to find the symbolic link "java" that points to gjc and delete it.  
0
 
LVL 5

Accepted Solution

by:
willy134 earned 125 total points
ID: 9660350
type
which java
to see which java is being run.  Like AgelmarJagad said, you need to either have Sun Java listed first in your path
(c-shell--it is very similar for bash but uses export and equals signs)
setenv PATH /path/to/java:${PATH}

or remove the link to gjc java (if it is a link in some /usr/bin or /usr/local/bin dir)
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

911 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

22 Experts available now in Live!

Get 1:1 Help Now