Problems with the new version of Ubuntu

Asked by ChrisKelly

Hi

I have recently installed the latest version of Ubuntu (7.1), and I am having trouble running both C and Java files.

For C, it does not recognise the standard files like stdio.h and stdlib.h and so will not let me compile when I use either the Makefile or the gcc -o... command.

For Java, it does not recognise the java compiler (javac).
e.g javac *.java
(Gives)
The program 'javac' can be found in the following packages etc...

This is the first time that I have tried to install Linux on my Laptop (new Laptop + Debian is available in uni), so is this a problem that I can fix or is it a problem that people are finding with this new version of Ubuntu?

Thanks for any help in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Qwerty Maniac
Solved:
Last query:
Last reply:
Revision history for this message
Best Qwerty Maniac (qwertymaniac) said :
#1

I think you need to install C/C++ Libs and Java-JDK before attempting anything?

Run the following in Accessories > Terminal:
sudo apt-get install build-essential sun-java6-jdk

Revision history for this message
ChrisKelly (chriskelly5-gmail) said :
#2

Thanks Qwerty Maniac that seems to have fixed it.
(Although I have only tested it with the java compiler so far)

Cheers

Revision history for this message
ChrisKelly (chriskelly5-gmail) said :
#3

Thanks Qwerty Maniac, that solved my question.