PDA

View Full Version : can i do java on macs?




sk3pt1c
Dec 13, 2005, 04:50 AM
right,i just ordered my 17" powerbook and am waiting for it
i currently have jbuilder on my pc laptop and am buying the powerbook solely for work, light programming, web design, video and audio editing and so on...
the question is, can i write java on the powerbook?
is there a jvm on it or do i have to download?
and if i do,how would i set it up?
if there is a jvm, is there some software already on the mac that i can use to program?
if not,what could i use?
does jbuilder come out for macs?



Sol
Dec 13, 2005, 05:05 AM
Yes, and just in case you don't know this either, Macs can also connect to the Internet.

bousozoku
Dec 13, 2005, 05:15 AM
If you're using Tiger, you'll have JVMs 1.3.x, 1.4.x, and 1.5.x all on the same machine.

There are many tools to use including Apple Xcode, Borland JBuilder, Sun One Studio and Netbeans, as well as some other less well known products. Each of those are free and quite accessible.

Apple's version of the JVM is usually a few months behind now that they've gotten their act together, so it should stay reasonably current, especially with security fixes.

I haven't done any development on Macintosh recently that wasn't done in Java and I think you'll find it just as rewarding a platform.

sk3pt1c
Dec 13, 2005, 05:29 AM
can i compile and run java files without using software?
i do that now using the command prompt
any equivalents?


thanks for the irony by the way:mad:

by the way,jbuilder doesn't work on macs
it says windows, linux and solaris

http://shop.borland.com/dr/sat4/ec_MAIN.Entry10?SP=10023&PN=1&V1=762445&xid=39696&CID=0&CUR=840&DSP=&PGRP=0&ABCODE=&CACHE_ID=0

i'll start with Xcode 2 that's in Tiger already and take it from there

robbieduncan
Dec 13, 2005, 05:39 AM
Mac OSX is a Unix. It has a terminal with a standard command line (bash shell). You can run javac, java, jar etc as per usual.

sk3pt1c
Dec 13, 2005, 06:27 AM
i know it's unix, i just didn't know you can compile and run java files on the shell
thanks

bousozoku
Dec 13, 2005, 06:40 AM
can i compile and run java files without using software?
i do that now using the command prompt
any equivalents?


thanks for the irony by the way:mad:

by the way,jbuilder doesn't work on macs
it says windows, linux and solaris

http://shop.borland.com/dr/sat4/ec_MAIN.Entry10?SP=10023&PN=1&V1=762445&xid=39696&CID=0&CUR=840&DSP=&PGRP=0&ABCODE=&CACHE_ID=0

i'll start with Xcode 2 that's in Tiger already and take it from there

By the way, I'm running JBuilder 2005 foundation on my Mac right now and Enterprise and Developer versions run just fine, if you want to pay. You can't compile and run Java files without any software, but you can do it without specialised IDEs. ;)

http://www.borland.com/downloads/download_jbuilder.html

sk3pt1c
Dec 13, 2005, 06:45 AM
so i can't compile and run java files in the shell?
can someone answer that and be sure about it?

also,i think Xcode 2 is included in macosX tiger so i could use that,right?

gekko513
Dec 13, 2005, 06:48 AM
so i can't compile and run java files in the shell?
can someone answer that and be sure about it?

also,i think Xcode 2 is included in macosX tiger so i could use that,right?
When you install the Xcode tools, javac will be installed, too, so that you can compile java in the shell.

sk3pt1c
Dec 13, 2005, 07:37 AM
so i download these tools from where? free?
aren't they included in tiger?

robbieduncan
Dec 13, 2005, 07:38 AM
so i can't compile and run java files in the shell?
can someone answer that and be sure about it?

What part of "You can run java, javac..." was confusing? YES. YOU CAN COMPILE AND RUN JAVA FROM A COMMAND PROMPT.

gekko513
Dec 13, 2005, 07:45 AM
so i download these tools from where? free?
aren't they included in tiger?
They're on the Tiger DVD or CDs. You just have to install them. It's simple process, just double click the Developer Tools installer and follow the instructions. It will install Xcode, a number of compilers and other stuff.

robbieduncan
Dec 13, 2005, 08:39 AM
They're on the Tiger DVD or CDs. You just have to install them. It's simple process, just double click the Developer Tools installer and follow the instructions. It will install Xcode, a number of compilers and other stuff.

The included Developer Tools are normally a little out of date. I would download the latest onces. I would download XCode (http://developer.apple.com/tools/download/). This includes the latest version of XCode, documentation SDKs etc. You will need a developer account but they are free.

dollystereo
Dec 13, 2005, 08:44 AM
so i can't compile and run java files in the shell?
can someone answer that and be sure about it?

also,i think Xcode 2 is included in macosX tiger so i could use that,right?

$javac my_program.java
$java my_program (program loadead an runnin)!!!

In the Terminal Shell

bousozoku
Dec 13, 2005, 09:08 AM
so i can't compile and run java files in the shell?
can someone answer that and be sure about it?

also,i think Xcode 2 is included in macosX tiger so i could use that,right?

You asked if you could compile and run java files without software. java and javac are software but they're not IDEs.

Are you sure you really want to do this?

sk3pt1c
Dec 13, 2005, 09:12 AM
i do have a degree in computer science
i've just never used a mac before and i know nothing about them
i also did not know shells work the same as dos windows as far as compiling and running is concerned
i think i've got my answers
thanks a lot guys
let's hope my 17" powerbook doesn't take too long so i can enjoy it over xmas:)

HiRez
Dec 13, 2005, 03:46 PM
thanks for the irony by the way:mad:Irony? I think you mean thanks for the sarcasm or thanks for the condescension? Anyway, enjoy your new Mac!

DavidLeblond
Dec 13, 2005, 04:54 PM
Hey lay off the guy, guys. With this kind of support I'm surprised devs aren't FLOCKING to the Mac platform. :rolleyes:

Java works on the Mac just like it works on Windows or Linux. Command prompt, IDEs, and all.

Thats all ya needed to say. :D

bobber205
Dec 13, 2005, 06:52 PM
Man. There's a person that knows less than me?

Wow. I never thought I would see the day.:D ;) :cool:

devman
Dec 13, 2005, 06:56 PM
can i compile and run java files without using software?
i do that now using the command prompt
any equivalents?


thanks for the irony by the way:mad:

by the way,jbuilder doesn't work on macs
it says windows, linux and solaris

http://shop.borland.com/dr/sat4/ec_MAIN.Entry10?SP=10023&PN=1&V1=762445&xid=39696&CID=0&CUR=840&DSP=&PGRP=0&ABCODE=&CACHE_ID=0

i'll start with Xcode 2 that's in Tiger already and take it from there

JBuilder has been support on OS X for some time now. The reason the new JBuilder 2006 doesn't list OS X is that JBuilder 2006 is built on JDK1.5 and that was not available on OS X until recently.

I'm sure Borland will soon issue an update or simply change the website to show OS X as a supported platform again.

bousozoku
Dec 13, 2005, 09:45 PM
JBuilder has been support on OS X for some time now. The reason the new JBuilder 2006 doesn't list OS X is that JBuilder 2006 is built on JDK1.5 and that was not available on OS X until recently.

I'm sure Borland will soon issue an update or simply change the website to show OS X as a supported platform again.

They should have it ready soon enough but at least, they still allow the free and trial downloads of 2005. They just have to work a bit harder to build an application around JBuilder for Mac OS X.

superbovine
Dec 14, 2005, 12:45 AM
right,i just ordered my 17" powerbook and am waiting for it
i currently have jbuilder on my pc laptop and am buying the powerbook solely for work, light programming, web design, video and audio editing and so on...
the question is, can i write java on the powerbook?
is there a jvm on it or do i have to download?
and if i do,how would i set it up?
if there is a jvm, is there some software already on the mac that i can use to program?
if not,what could i use?
does jbuilder come out for macs?

the first thing you need to do is learn how to read the descriptions on the products on apple.com.

http://www.apple.com/macosx/features/java/

caveman_uk
Dec 14, 2005, 03:01 AM
Hey lay off the guy, guys. With this kind of support I'm surprised devs aren't FLOCKING to the Mac platform. :rolleyes:

Java works on the Mac just like it works on Windows or Linux. Command prompt, IDEs, and all.

Thats all ya needed to say. :D
Part of being a dev is being able to do your own research. The questions that were asked were pretty basic and could have been easily answered by either going to the Borland site (for JBuilder) or a simple google search.

The sarcasm was perhaps unnecessary.

robbieduncan
Dec 14, 2005, 03:59 AM
Part of being a dev is being able to do your own research. The questions that were asked were pretty basic and could have been easily answered by either going to the Borland site (for JBuilder) or a simple google search.

The sarcasm was perhaps unnecessary.

Just like I would assume that having a degree in Computer Science would expose you to more OSs than Windows (not necessarily Mac OSX).

<Begin off-topic rant>
Many people who call themselves developers these days are little more that script kidies with basic HTML "skills" and a SAMs "Teach Yourself X in 24 hours" book. Being a developer means understanding how the language you are using works. It involved knowing about datastructures, algorithms, debugging techniques, optimisation etc in an an abstract language independant manner.

And most of all it requires the ability to think for yourself on your own two feet, using the documentation, Google etc.
<End off-topic rant>

sk3pt1c
Dec 14, 2005, 10:28 AM
guys,i never said i was a developer, i said i will be doing light programming
also,it's not my falut that they didn't teach us mac os at uni or that i didn't have the money to buy a mac until now :)
other than that,it was enough to just tell me that everything runs just as in windows,as simple as that

thanks everyone and i will come back with more questions when the powerbook arrives and i have sometime to play with it

merry christmas and a happy new year to all of you :)


ps.perhaps some of you should be more tolerant with new mac users, no one was born with the knowledge, you had to learn from someone else too, yes?

satans_banjo
Dec 14, 2005, 10:41 AM
not everything works as with windows - just OS X has java tools built in

robbieduncan
Dec 14, 2005, 10:49 AM
...
also,it's not my falut that they didn't teach us mac os at uni or that i didn't have the money to buy a mac until now :)...


I did not suggest that they should have use OSX at your Uni. I did suggest that any course worth being called Computer Science should have used other OSs than Windows at least some of the time. Most of the "serious" parts of big business do not run on Windows (or OSX). I'd treat a course that only uses Windows like I'd treat a MCSE looking for a job: I'd avoid it.

bousozoku
Dec 14, 2005, 11:22 AM
guys,i never said i was a developer, i said i will be doing light programming
also,it's not my falut that they didn't teach us mac os at uni or that i didn't have the money to buy a mac until now :)
other than that,it was enough to just tell me that everything runs just as in windows,as simple as that

thanks everyone and i will come back with more questions when the powerbook arrives and i have sometime to play with it

merry christmas and a happy new year to all of you :)


ps.perhaps some of you should be more tolerant with new mac users, no one was born with the knowledge, you had to learn from someone else too, yes?

Sorry for sounding brutal. I usually take it out on the various professors who teach such classes. When I took my first Java class, the man didn't know that Java runs quite well on IBM's OS/400, Solaris, or Mac OS X. Indeed, he was an idiot to think that Windows was the only platform for Java, an environment specifically made for the ability to run the same applications the same way everywhere.

It is the instructor's job to know more than the student and to be able to convey that clearly. Most are lucky to be able to get through the class, but not lucky enough to have true skill in negotiating reality in computing.

When I first took a computing class, there was no thought of something called Windows or something else called Macintosh. My first computer had a maximum resolution of 320x192. Computer Science was more even and covered more even if the tools were more crude. (I'm still comfortable with 6502 assembly code, yet some programmers I've known have never done any assembly language coding.)

I'm sure you'll learn soon enough but you have to try a lot of things to get there. Failure is twice as important as success for learning during the early years, as long as you understand what went wrong. :)

superbovine
Dec 14, 2005, 05:29 PM
guys,i never said i was a developer, i said i will be doing light programming
also,it's not my falut that they didn't teach us mac os at uni or that i didn't have the money to buy a mac until now :)

isn't our fault you didn't take 5 minutes to search google, forget about even trying to read about it on apple.com. Who would have thought apple might have something written about that?

yellow
Dec 19, 2005, 09:21 AM
When I took my first Java class, the man didn't know that Java runs quite well on IBM's OS/400, Solaris, or Mac OS X.

Oh no.. that guy should have his glasses broken. Didn't know that Java runs on Solaris... guess he thinks Microsoft 'invented' (not just stole) Java too, eh?

txringer234
Dec 21, 2005, 10:07 PM
i need some help with using java on the mac. I know how to use it on windows because im taking a class at my high school in java and i can program but i really need some help figuring xcode out

for one how do i instantiate the jvm?
and our teacher did that with us on the windows so im confused
thanks need help

i have a mac 10.3.9 if it helps

jeremy.king
Dec 22, 2005, 10:51 AM
i need some help with using java on the mac. I know how to use it on windows because im taking a class at my high school in java and i can program but i really need some help figuring xcode out

for one how do i instantiate the jvm?
and our teacher did that with us on the windows so im confused
thanks need help

i have a mac 10.3.9 if it helps

Since you are learning, don't bother using XCode, you will only lose focus on the language. Use the command line to compile and run, just like you know how on windows.

txringer234
Dec 23, 2005, 10:13 PM
well i really want to program on the mac, but the xcode thing is difficult to understand right now

when i build and run an executable it says, it cant instantiate the jvm, and i dont know how to

stupid question? well i really dont care... if someone could help please?