Programming on Ubuntu help

Gezza

Expert Member
Joined
Aug 18, 2009
Messages
2,094
I'm interested in programming in java (or any other format if its better). I have no experience programming at all (can do HTML and CSS).

I'm looking for recommendations on setting up a development environment, helpful books, online tutorials, anything at all - all keeping in mind that this is under Ubuntu.

Googling reveals a lot of stuff, much of it outdated, and I'm hoping the hive mind can separate the wheat from the chafe.
 

sn3rd

Expert Member
Joined
Jan 18, 2008
Messages
4,305
I find Ubuntu the ideal development environment. Granted, I mostly work on backend stuff and simulations.

To set up Java for development, all you really need is the jdk (available in the repositories) and an Internet connection to view the Sun documentation.

The Sun documentation extensively explains all libraries and provides examples that it steps through.

Alternatively, C, which might not be the most ideal procedural language, will arguably give you the most benefit; teaching you more than just programming, but how the system handles everything too. There are countless tutorials and examples all over the web.

And once you know C, the jump to CPP is mostly a matter of figuring out object oriented programming. Thereafter, the jump to Java, Python, C#, etc, is child's play.
 

Kaufies

Expert Member
Joined
Sep 30, 2009
Messages
4,130
I found the step from Java to C++ really easy. I think it would be harder the other way around 'cause C++ has more than Java. For example, a C++ programmer could be really annoyed at Java not having pointers. Just an opinion, I'm sure it's different for everyone.
I learned Java (my first language) from the Sun tutorial. The link should work, I'm on local so didn't test it.

EDIT: I think the JGrasp IDE is the best for beginners. It's simple, small and creates CSDs which helped me a lot when I was writing bad code.
 
Last edited:

Gezza

Expert Member
Joined
Aug 18, 2009
Messages
2,094
Cool thanks allot. I am currently studying up Ubuntu 9.04 and i have an internet connection.
 

RSkeens

Expert Member
Joined
Jan 5, 2007
Messages
1,647
I develop in Java under Linux and have no problems with it at all. There's some really high - end (and importantly free!) IDEs you can use and it's extremely easy to set these up under Linux.
 

concentricpuddle

Well-Known Member
Joined
Jul 8, 2009
Messages
241
Why ain't nobody said Python (http://www.python.org there's a tutorial there) yet? I'd recommend it over java for a beginner. It'll warp your mind a bit though, because when you eventually try to learn java you'll be like '**** why do they do it this way?'.
 

revanb

New Member
Joined
Oct 22, 2009
Messages
1
I use Ubuntu exclusively...Many multitasking features I can't do on Windows.

I am currently busy setting up on Ubuntu...Want to develop a game in my spare time as a hobby (not that I have much spare time)

I'm using the eclipse ide with the CDT add-on for c/c++ development.

What do you want to do?
 

Bule

Well-Known Member
Joined
Feb 4, 2006
Messages
208
To do Java programming:

1) Open terminal and execute "apt-cache search java" that will print long list of packages related to Java.
For example you want to pick sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6. Now again from terminal execute "sudo apt-get install sun-java6-jdk". Confirm password, license agreement and so on.

2) Go to NetBeans.org and download NetBeans. Right click netbeans-6.7.1-ml-javase-linux.sh (or whatever version you downloaded) and tick in Permissions tab allow executing and close dialog. Double click and execute install script.

You may like different Java like openjdk-6-jdk or different IDE like Eclipse. Also you may use Synaptic to do install (there are NetBeans 6.5 and Eclipse 3.2.2 in repositories).

If you want to take a look at PHP since you did HTML and CSS so far install Apache and PHP there are appropriate extensions for NetBeans and Eclipse and you can do Java and PHP from the same IDE.

Check Ubuntu help files that is here:

https://help.ubuntu.com/9.04/programming/C/java.html

Why Linux? The .Net framework is easier for beginners...

Because Linux is user friendly unlike Vista and .NET is not easier for beginners than Java. Also developing on Linux is free and there is helpful community. If you are going to do web development most of web servers on the WWW are LAMP - Linux Apache MySQL PHP.
 

Turbo_Aspiration

Expert Member
Joined
Aug 11, 2005
Messages
1,435
Why Linux? The .Net framework is easier for beginners...

As a .NET programmer, I'd disagree that this would be a better learning path. It may be easier, but I'd think thats more the IDE pushing you along.

For the OP I'd recommend Java command line to start off with (csc command line is :sick: imo). Here you can learn the language. The move onto a proper IDE should only be done once you know the language.
 

Rynomster

Well-Known Member
Joined
Jul 5, 2006
Messages
101
Woa this is an old thread. How could no one here say Ruby or Perl? Those are the most basic languages to start off with ever!
PHP is also rather basic.. I think I started with PHP after Delphi :\
Anyways, after reading this thread, it will be interesting to know which language you started off with, what IDE you are using and what applications you have written? :)
 
Top