Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I would like to get started programming Java, I'm not even sure whether web applets, or whatever. I haven't been able to get that far I've been so hindered. I find myself in a rather inconvenient situation, I am running OS X 10.4 Tiger on a PPC Mac. Unfortunately for myself, many programs do not work on this OS X version and this processor.

I just need some basic knowledge: How to program/compile Java programs without an IDE. Or an IDE that is free and works with my OS and processor.

Just to note, I have no programming experience with non-web languages, and I have scoured Google and come up short.

share|improve this question

4 Answers

Genarally "hello world" is your first app in any language, eclipse is a free jave IDE that works with a Mac. That is all the info you need to do google search and find any number of tutorials.

I found this:

http://www.stanford.edu/class/cs108/JavaTools/eclipse-guide/

share|improve this answer
2  
And "Head First Java" is a decent book if you like hard copy, it teaches instead of being a dumb reference full of API tables to pad out how many pages it is. – Patrick Hughes Dec 7 '11 at 2:00
Thanks very much! – t0xik Dec 7 '11 at 21:26

The best source I've found is the Java Tutorial originally developed by Sun but maintained by oracle. The page seems confusing so I would start Getting Started on the page which starts at the beginning including a HelloWorld app. The nice thing about the tutorial is that you follow any number of trails and learn what you want to learn.

As it turns out this will focus on the non-IDE approach.

Good luck.

share|improve this answer
Thanks, for some reason, I was only finding IDE related approaches. I will use this, and it plays in nicely with the collective of other information I have gathered from this. – t0xik Dec 7 '11 at 21:26

I think that the best way to learn any language is to read a whole heap of material on the key constructs and libraries that the language uses. Then, after you are familiar enough with the libraries, write a simple text-based adventure game.

If you are after java learning material then you can try the Oracle tutorials, or the Java Wikibook. Otherwise there are some free books listed here on this question.

If you want to go down the path of writing Java web applications, then I would suggest a framework such as Spring.

As for compiling java applications from command line, you want to cd to your bin directory and then use the javac tool. (Note that if you have your class paths setup correctly then you can call javac from any directory)

For example, if I wanted to compile a Java application on linux I would write:

cd /usr/local/bin
javac HelloWorld.java

And to run compiled code:

java HelloWorld

Hope this helps!

share|improve this answer
Why thank you, this is absolutely helpful! I will use all of this information to be a JAVA PROGRAMMER!!!! – t0xik Dec 7 '11 at 21:49
Not a problem - just glad to be of help :) Good luck! – josh-fuggle Dec 9 '11 at 10:50

As Lou said before, Java tutorial by Oracle are great tools for beginners.

Also, I'm currently taking my first software development course and we are using BlueJ to learn Java. I find this IDE really easy to use for a beginner, it works on Mac and it's free. Unfortunately the textbook that goes with isn't free but I'm sure if you google it, you can find some free tutorials.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.