Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 http://archive.ubuntu.com/ubuntu/ natty/main libice-dev i386 2:1.0.7-1ubuntu1
  404  Not Found [IP: 91.189.92.200 80]

please help me. thank you

share|improve this question

migrated from stackoverflow.com Sep 17 '13 at 6:59

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

add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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