Solved

Setting up Java

Posted on 2003-10-29
2
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

615 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