1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

can i do java on macs?

Discussion in 'Mac Programming' started by sk3pt1c, Dec 13, 2005.

  1. macrumors 6502a


    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?
  2. Sol
    macrumors 68000


    You must be joking

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

    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.
  4. macrumors 6502a


  5. Moderator


    Staff Member

    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.
  6. macrumors 6502a


    i know it's unix, i just didn't know you can compile and run java files on the shell
  7. Moderator emeritus

    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. ;)

  8. macrumors 6502a


    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?
  9. macrumors 603


    When you install the Xcode tools, javac will be installed, too, so that you can compile java in the shell.
  10. macrumors 6502a


    so i download these tools from where? free?
    aren't they included in tiger?
  11. Moderator


    Staff Member

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


    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.
  13. Moderator


    Staff Member

    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.
  14. macrumors 6502a


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

    In the Terminal Shell
  15. Moderator emeritus

    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?
  16. macrumors 6502a


    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:)
  17. macrumors 601


    Irony? I think you mean thanks for the sarcasm or thanks for the condescension? Anyway, enjoy your new Mac!
  18. macrumors 68020


    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
  19. macrumors 68020



    Man. There's a person that knows less than me?

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


    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.
  21. Moderator emeritus

    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.
  22. macrumors 68030


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

  23. Guest


    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.
  24. Moderator


    Staff Member

    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>
  25. macrumors 6502a


    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?

Share This Page