LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-19-2011, 12:44 PM   #1
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110
Blog Entries: 4

Rep: Reputation: 0
Question Java Programming applications


Hello,

I would like to learn JAVA programming on Linux operating system.

I would like to know if there are certain applications that need to be installed(of course from the software manager) to accomplish this.

Currently, I am running Linux Mint version 10 on my system
 
Old 05-19-2011, 02:46 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
To see if you have the required tools, post the output if these commands:

Code:
which java
which javac
Also, is there a particular reason for Java? I'd recommend Python or C++ for someone who is learning programming.
 
Old 05-19-2011, 04:09 PM   #3
aero_z
Member
 
Registered: Dec 2008
Posts: 30

Rep: Reputation: 16
I recommend installing Eclipse too. It is a very powerful IDE.
Quote:
Also, is there a particular reason for Java? I'd recommend Python or C++ for someone who is learning programming.
Which language to learn is obviously not an easy question but I don't see any reasons for learning C++ over Java.
Java is probably a bit nicer to work with than C++.

Last edited by aero_z; 05-19-2011 at 05:46 PM.
 
Old 05-20-2011, 10:04 AM   #4
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110
Blog Entries: 4

Original Poster
Rep: Reputation: 0
java programming application output

Hello,

I could not see any output on the terminal when I typed in the following code

which java
which javac

I seems to me as if these commands got executed without producing any output of the terminal.
 
Old 05-20-2011, 12:55 PM   #5
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
dude just go to package manager and search there "JDK" without quotes then install sun-java6-jdk you can install the same from command prompt...
Quote:
sudo apt-get install sun-java6-jdk
Now after installation you can program in Java as you do in windows ..{No need to set environment variable kind of thing}
 
0 members found this post helpful.
Old 05-20-2011, 01:11 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,991

Rep: Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316Reputation: 4316
Quote:
Originally Posted by rahulkya View Post
dude just go to package manager and search there "JDK" without quotes then install sun-java6-jdk you can install the same from command prompt...

Now after installation you can program in Java as you do in windows ..{No need to set environment variable kind of thing}
"JAVA_HOME" and other variables need to be set, or things won't work. Most of the time, the post-install scripts will do it.

Last edited by TB0ne; 05-20-2011 at 02:37 PM.
 
Old 05-20-2011, 02:24 PM   #7
Hevithan
Member
 
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Rep: Reputation: 40
If you want to have some fun with java ... There is a game called "ROBOCODE" where you build robots using JAVA and have them battle on a virtual battlefield. You define aspects such as move speed and what they do when the spot an enemy ... There are pre-made scripts, but the editor allows you to import ones that you have written. I use it to play with JAVA and enjoy seeing my scripts duke it out. You should be able to find it with APT-GET, Seeing as how that's where I got it.


Here is a site explaining how to edit the bots, and the anatomy of the coding and such: FUN TIME HAPPY LINK

Last edited by Hevithan; 05-20-2011 at 02:27 PM. Reason: added link
 
  


Reply


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
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
LXer: Programming GNOME applications with Vala LXer Syndicated Linux News 0 12-10-2008 08:20 PM
multithreaded programming - monitoring applications emge1 Programming 13 10-02-2006 10:00 AM
Programming KDE applications??? Hachaso Linux - Software 1 10-04-2004 10:01 AM

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

All times are GMT -5. The time now is 09:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration