I'm finally biting the bullet and learning Java, after sneering and
growling for a decade. I inherited a stack of about 50 books for java 2
(all kinds) from a buddy, and I'm starting with the easiest one, working
my way through the rest.
My problem: the books specify IDE's and other tools that do not exist
for OS X these days, and make no mention of XCode. If I just want to
develop a generic java 2 .java file and compile it into a .class, what
do I do, what tools do I use? Which of the various Java types that XCode
offers is just "Plain Vanilla Java", if indeed there is such a thing?
Thanks in advance all. Hope my questions aren't too stupid.
Joshua
> My problem: the books specify IDE's and other tools that do not exist
> for OS X these days, and make no mention of XCode.
Xcode has only the most basic of support for Java. Most Java devs use
Eclipse or NetBeans.
sherm--
Is there a CLI tool that'll just compile a text file? I use BBedit for
almost everything unless I actually HAVE to use an IDE, and honestly
prefer it that way, at least for the very basic stuff. Needless to say,
I doubt it would be the best way for anything with oodles of files, but
I really don't want to have to learn a major new app just to do "Hello,
World!"
Thanks for the swift reply, anyway. I do appreciate your generosity!
Joshua
In article <m2aaxcn...@shermpendley.com>,
> In article <m2aaxcn...@shermpendley.com>,
> Sherm Pendley <spam...@shermpendley.com> wrote:
>
>> Joshua Whalen <joshua...@gmail.com> writes:
>>
>> > My problem: the books specify IDE's and other tools that do not exist
>> > for OS X these days, and make no mention of XCode.
>>
>> Xcode has only the most basic of support for Java. Most Java devs use
>> Eclipse or NetBeans.
>
> I kind of had that feeling. I can't seem to make heads or tails of
> Eclipse
It's not my favorite either, to be honest. But when in Rome...
> Is there a CLI tool that'll just compile a text file?
The standard Java compiler is javac.
> I use BBedit for
> almost everything unless I actually HAVE to use an IDE, and honestly
> prefer it that way, at least for the very basic stuff. Needless to say,
> I doubt it would be the best way for anything with oodles of files, but
> I really don't want to have to learn a major new app just to do "Hello,
> World!"
You could have a look at Ant - it's the Java equivalent to "make."
<http://en.wikipedia.org/wiki/Apache_Ant>
sherm--
Joshua
In article <m2hbrk2...@shermpendley.com>,
Sherm Pendley <spam...@shermpendley.com> wrote:
Contrary to what Sherm said, Ant isn't really "the Java equivalent of
make." It's also useful for projects in other languages. But it does
quite well for building Java language projects, and especially once you
get past the point where you've only got a very small number of source
files to compile. It will enable you to specify a classpath, source
location, output location, countless other things that can get tricky if
you have to keep typing commands. You could do much of that, if it's
repetitious, using shell scripts, but Ant is generally more flexible.
--
Steve W. Jackson
Montgomery, Alabama
> Contrary to what Sherm said, Ant isn't really "the Java equivalent of
> make." It's also useful for projects in other languages.
So is make. That being the case, how does that contradict what I said?
sherm--
I took it to imply that Ant isn't useful outside of Java projects. Had
you merely said that Ant is similar to make, I wouldn't have taken it
that way. Maybe I misunderstood.
> I took it to imply that Ant isn't useful outside of Java projects. Had
> you merely said that Ant is similar to make, I wouldn't have taken it
> that way. Maybe I misunderstood.
Sorry for being unclear. What I meant was that, while Ant and make are
very similar, Ant is *far* more commonly used for Java projects than
make is.
sherm--
From my experience, there really is no stupid question.
Anyway, the best place to start, and forget XCode, is here:
http://java.sun.com/docs/books/tutorial/
Also, on the front page of Suns website http://www.sun.com you'll find
under downloads Netbeans IDE for OS X. I have found that there are a
few areas that a beginner needs to do... click on the preferences panel
and start exploring on how you want your environment to look and work.
The Sun Java Tutorials gives you a very good start.