Yes, I am back
Author |
Message |
Tallguy
|
Posted: Fri Sep 10, 2010 7:26 pm Post subject: Yes, I am back |
|
|
hello all, I am back...and in college
first program to learn: JAVA!!!!
ok so i'm so used to turing, one interface, u write it, u run - it thats it...
(i'm on a Mac OS X)
so basically I am very lost, i'm trying to mess a round with eclipse
-where do i write the program
-where do i run it
is there a tutorial on this by any chance??
***((and has anyone tried Xcode?? <----what!!!!!!))*** |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Fri Sep 10, 2010 8:35 pm Post subject: RE:Yes, I am back |
|
|
Get a hold of TextMate, or Coda, or another code editor. Eclipse is a huge pain.
OS X comes with a Java compiler. Open up a terminal, and compile with javac on command-line. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Euphoracle
|
Posted: Fri Sep 10, 2010 8:55 pm Post subject: RE:Yes, I am back |
|
|
Or Xcode or TextWrangler. There are several free options which are very complete. |
|
|
|
|
|
DtY
|
Posted: Fri Sep 10, 2010 9:36 pm Post subject: Re: RE:Yes, I am back |
|
|
Tony @ Fri Sep 10, 2010 8:35 pm wrote: Get a hold of TextMate, or Coda, or another code editor. Eclipse is a huge pain.
OS X comes with a Java compiler. Open up a terminal, and compile with javac on command-line. I'm pretty sure you need to install the developer tools to get javac (and you definitely do to get xcode). It's on the OS install disk. |
|
|
|
|
|
andrew.
|
Posted: Fri Sep 10, 2010 10:24 pm Post subject: RE:Yes, I am back |
|
|
Like DtY said, install the developer tools from the OS X install disc. Then, since javac (Java compiler) is now installed, you can simply write your programs in a text editor. I suggest TextWrangler as it's free and has a good set of features.
When you want to compile your program, go to the Terminal and use the "javac file.java" command (where "file.java" is your file). You can find more options for javac online or the man file.
Once your program is compiled, you can run it by typing in "java file" into the Terminal ("file" is the name of your .class file. Notice that the .class is excluded from here). |
|
|
|
|
|
Insectoid
|
Posted: Sat Sep 11, 2010 1:22 am Post subject: RE:Yes, I am back |
|
|
Textwrangler is fantastic. It has options to compile and run your code from and output to the app window (bypassing the terminal) though in public you should use the terminal 'cause it makes you look cool.
Textwrangler has syntax highlighting for damn near every language you will ever use. You have to remember, though, that it is, in the end, just a fancy text editor, and you'll have to manage your files yourself (which is totally fine).
I've used eclipse, and Tony said, it is a massive pain. It has some nifty features but a lot of things that should be intuitive (switching projects, running a new compile, etc) is really complicated and generally, once again, a pain in the ass. |
|
|
|
|
|
rdrake
|
Posted: Sat Sep 11, 2010 9:29 am Post subject: Re: Yes, I am back |
|
|
TextMate is great if you have cash. If not, give MacVim a whirl.
Oh yes, and there's also Smultron which has a newer fork called Fraise. |
|
|
|
|
|
jafar25
|
Posted: Sun Sep 19, 2010 12:56 pm Post subject: Re: Yes, I am back |
|
|
if you're just tryin to learn eclipse, there are easy tutorials on youtube, look up thenewboston java tutorials, they really helped me learn about the editor. half the programming fun is in the editor, and i find eclipse really fun and resourceful. there are many others tho if u dont like it, or want to find better ones . |
|
|
|
|
|
Sponsor Sponsor
|
|
|
DtY
|
Posted: Sun Sep 19, 2010 6:03 pm Post subject: Re: RE:Yes, I am back |
|
|
Insectoid @ Sat Sep 11, 2010 1:22 am wrote: though in public you should use the terminal 'cause it makes you look cool. QFT. You should be using Vim in public, as well! |
|
|
|
|
|
Kharybdis
|
Posted: Sun Sep 19, 2010 8:02 pm Post subject: RE:Yes, I am back |
|
|
Eclipse = gayness to the extreme when starting to learn java. Use either "ready to program" available on this site which has a turing-like interface or j-grasp |
|
|
|
|
|
Insectoid
|
Posted: Sun Sep 19, 2010 8:05 pm Post subject: Re: RE:Yes, I am back |
|
|
Kharybdis @ Sun Sep 19, 2010 8:02 pm wrote: Eclipse = gayness to the extreme when starting to learn java. Use either "ready to program" available on this site which has a turing-like interface or j-grasp
-1 karma for homophobia. -1 respect for promoting RTP. Eclipse is infinitely better than RTP. I don't know what j-grasp is, but if your opinion of other editors is anything to go by, it can't be that good. |
|
|
|
|
|
andrew.
|
Posted: Sun Sep 19, 2010 8:42 pm Post subject: RE:Yes, I am back |
|
|
jGrasp isn't actually that bad and isn't a horrible option for one whose learning Java. Basically, it's an IDE which doesn't use projects, packages, etc. (AFAIK). You simply create or open a Java file, and from there you can have it auto-indent, syntax-highlight, compile, and run your code. It's very simple and very basic, which is why it's an okay IDE for beginners. |
|
|
|
|
|
SS1389
|
Posted: Sun Nov 28, 2010 3:02 pm Post subject: Re: Yes, I am back |
|
|
Yeah, we're currently learning Java in school, and we are all using jGrasp. |
|
|
|
|
|
CeciDai
|
Posted: Thu Dec 16, 2010 11:36 am Post subject: RE:Yes, I am back |
|
|
java is trash
try python |
|
|
|
|
|
wtd
|
Posted: Thu Dec 16, 2010 12:13 pm Post subject: RE:Yes, I am back |
|
|
Yes, Java is bad. Sadly, failing a class is even worse.
And if you're going to ditch Java, Python is decent, but there are better options. |
|
|
|
|
|
|
|