Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

when i am going to run java code in terminal it show following error..

The program 'javac' can be found in the following packages:
 * openjdk-6-jdk
 * ecj
 * gcj-4.4-jdk
 * gcj-4.5-jdk
Try: sudo apt-get install <selected package>

and when i am follow the instuctions i get following error

Err natty/main libice-dev i386 2:1.0.7-1ubuntu1
  404  Not Found [IP: 80]

please help me. thank you

share|improve this question

migrated from Sep 17 '13 at 6:59

This question came from our site for professional and enthusiast programmers.

first download jdk for linux then set path variable you may use following link to set path variable

"How to set the path for jdk on linux 2.6.33-r2?"

then use sudo instruction to check if everything is perfect ,check version of java using java-version

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.