LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2007, 11:53 PM   #1
markryansquall
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
Post How can I install Java on Linux and any C compiler for Ubuntu? Please Help.


Dear LinuxQuestions.org members and administrators,

Hello, a pleasant day to everyone.


This is my first time to join this forum and it is also my first time to use Linux operating system. Our school is switching from Windows to Linux (using Ubuntu on workstations). It's really a hard time, but somehow a very challenging task to be familiarized on such new OS. But, as a starting point, I just want to ask how can I install Java and C on Ubuntu Linux? I hope someone could give me a "real" step by step instruction on how to do this,(sad to say...I hope it is a real dummy approach, if you please). I kept on finding websites but they are all complicated to me to follow (sorry to say). I hope someone could help me, although I've already found a tutorial on how to run a simple C using Linux on this site (I think it's from user named crammy), the real problem is installation on C and Java on Ubuntu.


Thank you very much in advance and God bless every one!



Respectfully Yours,


Mark Ryan
Ubuntu Linux newbie
 
Old 10-11-2007, 01:10 AM   #2
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 49
There's a lot of documentation available regarding the installation of Java on Ubuntu.
Just search google for "Java on Ubuntu" and it will give you a lotta results.

Regarding the C compiler thing, if you want just a compiler (and not an IDE), Ubuntu must have already installed it for you.
Fire a terminal and run the following command. (can be found in Menu > Applications > Accessories > Terminal)

Code:
user@computer ~ $ gcc
If gcc is installed, you should get something like

Code:
gcc: no input files
If it is not installed, run the following command:

Code:
user@computer ~ $ sudo apt-get install build-essential

Hope it helps.
 
Old 10-12-2007, 10:04 PM   #3
markryansquall
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Smile Thank you Mr. duffmckagan!

Dear Mr. duffmckagan,

Hello Sir, a pleasant day to you (and to all members as well). Thank you very much for the starting information you've shared. I'll try it as soon as possible. But is Java compiling is as same as Windows? Or is it different to Linux? I noticed that you indicate user@computer ~ $, is this as same as a C:\> in DOS? What if I saved my sample.C file is saved on my flash drive (E, is it still can be accessed user@computer ~ $? In addition, as you'd said earlier, what if in case I want an IDE for C programming, is that a new approach? I know installing an application in Linux is very diferent in Windows. I hope you could help me again, by giving me "slow" instructions.


Thank you and more power.





Respectfully yours,


Mark Ryan
 
Old 10-12-2007, 10:05 PM   #4
markryansquall
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Smile Thank you Mr. duffmckagan!

Dear Mr. duffmckagan,

Hello Sir, a pleasant day to you (and to all members as well). Thank you very much for the starting information you've shared. I'll try it as soon as possible. But is Java compiling is as same as Windows? Or is it different to Linux? I noticed that you indicate user@computer ~ $, is this as same as a C:\> in DOS? What if I saved my sample.C file is saved on my flash drive ( E: ), is it still can be accessed user@computer ~ $? In addition, as you'd said earlier, what if in case I want an IDE for C programming, is that a new approach? I know installing an application in Linux is very diferent in Windows. I hope you could help me again, by giving me "slow" instructions.


Thank you and more power.





Respectfully yours,


Mark Ryan
 
Old 10-12-2007, 11:20 PM   #5
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
yes user@computer is basically the same as C:\ in DOS. In Linux there are no drive letters, the drive is refered to its mount point e.g. /media/TravelDrive for flash drives. Most distros have a package manager to install software, a package manager is a program that downloads the program and dependencies for you and installs it
 
Old 10-13-2007, 12:35 AM   #6
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 49
Quote:
But is Java compiling is as same as Windows?Or is it different to Linux?
I am not sure what you exactly mean by this. I thought you required the Java Runtime Environment as opposed to Java Software Development Kit (SDK). Isn't that right?
If that is not quite clear, Java Runtime Environment is usually used by people who run applications that require Java Support. On the other hand, Java SDK is used by developers who write Java Programs and compile them.

Quote:
I noticed that you indicate user@computer ~ $, is this as same as a C:\> in DOS?
Yes, you can say that.

Quote:
What if I saved my sample.C file is saved on my flash drive ( E: ), is it still can be accessed user@computer ~ $?
Doesn't matter where you have saved your file, Linux can still access them. Again as AceofSpades19 has mentioned in the previous post that Linux doesn't quite work the way Windows does. There are no drive letters in Linux. The nomenclature for Devices and Partitions is different.
Take a look at the following two links. They will help you clarify your concept of Device Names in Linux.
http://tldp.org/HOWTO/Partition/devices.html
http://www.debian.org/releases/stabl...apcs04.html.en


Also, I don't really recall, but Ubuntu should be able to automatically detect your USB Drive once it is connected. Also, user@computer ~ $ points to the Home Directory of the user. Suppose my Flash Drive is at /dev/sda1 and is mounted on /mnt/usb, use the "cd /mnt/usb" command (without the quotes, of course) to "cd" -- change directory to your Flash Drive.


Quote:
In addition, as you'd said earlier, what if in case I want an IDE for C programming, is that a new approach?
Umm..I don't know if it is what you call "The New Approach". But well..people have been using IDEs (Integrated Development Environment) for years now. Again, I recommend that you follow the following two links:
http://en.wikipedia.org/wiki/Integra...nt_environment
http://anjuta.sourceforge.net/


Also, I strongly recommend that you take the basic linux course mentioned below...
http://www.linux.org/lessons/beginner/toc.html
 
Old 10-30-2007, 06:46 AM   #7
markryansquall
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Smile How about a new compiler for C in Linux instead of gcc?

Dear Sirs,

A pleasant day to everyone, I just wonder, what if I want a "new" compiler for C in Ubuntu, what download sites/files/applications you will suggest me? And how about an IDE+compiler in C for Ubuntu, is that possible? And I hope you could give me instructions in such case on how would I install such IDE/compiler in Linux. To be honest, I really find it hard to configure gcc in our Ubuntu, the sudo stuff is not working, our IT said the gcc needs to be download from the Internet (some kind of that thing/explanation).


A million thanks to everyone in LinuxQuestions.org members, and God speed.



Yours truly,
Mark Ryan
Linux newbie
 
Old 10-30-2007, 07:08 PM   #8
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
I don't know what a "new" compiler for c is. Just open up the Synaptic Package Manger or Add/Remove programs utility and search for c IDE.
 
  


Reply

Tags
correct, delete, lq, please


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Java Media Framework (JMF) on Ubuntu tram Linux - Software 7 10-05-2012 08:46 AM
Install Java on UBUNTU vr76413 Ubuntu 4 06-04-2007 03:46 PM
gcj java compiler problem >> stuck with gnome install espo111 Linux - Newbie 1 09-14-2006 11:58 AM
Install Java on Ubuntu tfm1 Linux - Software 1 06-26-2006 12:47 PM
C++ or Java compiler for Linux PhuckFonix Linux - Newbie 7 05-03-2004 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration