LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Java Programming applications (https://www.linuxquestions.org/questions/linux-newbie-8/java-programming-applications-881634/)

Upendra Pratap Singh 05-19-2011 12:44 PM

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

MTK358 05-19-2011 02:46 PM

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.

aero_z 05-19-2011 04:09 PM

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++.

Upendra Pratap Singh 05-20-2011 10:04 AM

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.

rahulkya 05-20-2011 12:55 PM

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}

TB0ne 05-20-2011 01:11 PM

Quote:

Originally Posted by rahulkya (Post 4362135)
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.

Hevithan 05-20-2011 02:24 PM

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


All times are GMT -5. The time now is 08:52 AM.