Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sk3pt1c

macrumors 6502a
Original poster
Nov 29, 2005
918
6
a simulacrum
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

macrumors 68000
Jan 14, 2003
1,564
6
Australia
You must be joking

Yes, and just in case you don't know this either, Macs can also connect to the Internet.
 

bousozoku

Moderator emeritus
Jun 25, 2002
16,120
2,397
Lard
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.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
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.
 

bousozoku

Moderator emeritus
Jun 25, 2002
16,120
2,397
Lard
sk3pt1c said:
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_...&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

macrumors 6502a
Original poster
Nov 29, 2005
918
6
a simulacrum
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

macrumors 603
Oct 16, 2003
6,301
1
sk3pt1c said:
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.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
sk3pt1c said:
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

macrumors 603
Oct 16, 2003
6,301
1
sk3pt1c said:
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

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
gekko513 said:
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. This includes the latest version of XCode, documentation SDKs etc. You will need a developer account but they are free.
 

dollystereo

macrumors 6502a
Oct 6, 2004
907
114
France
sk3pt1c said:
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

Moderator emeritus
Jun 25, 2002
16,120
2,397
Lard
sk3pt1c said:
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

macrumors 6502a
Original poster
Nov 29, 2005
918
6
a simulacrum
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:)
 

DavidLeblond

macrumors 68020
Jan 6, 2004
2,351
682
Raleigh, NC
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
 

devman

macrumors 65816
Apr 19, 2004
1,242
8
AU
sk3pt1c said:
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_...&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

Moderator emeritus
Jun 25, 2002
16,120
2,397
Lard
devman said:
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

macrumors 68030
Nov 7, 2003
2,872
0
sk3pt1c said:
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

Guest
Feb 17, 2003
2,390
1
Hitchin, Herts, UK
DavidLeblond said:
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

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
caveman_uk said:
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

macrumors 6502a
Original poster
Nov 29, 2005
918
6
a simulacrum
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.