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

Need Help Writing A Java Program

Discussion in 'Mac Programming' started by RoqueCub, Jan 23, 2012.

  1. macrumors newbie

    Hello everyone,

    I'm taking a class learning Java. The previous class I was in we learned the basics of Python. I was able to use textwrangler without any problems. It seems that I cannot use textwranger the same way. I've done some browsing on the subject and nothing seems to be very, idiot friendly on how I can do this. Writing and saving a java program in the correct location seems to be an issues.

    I installed the xcode developer tools a while ago just to see what it was.
  2. macrumors 65816


    TextWrangler should be able to work for you.

    How have been trying to compile and run your Java program? What hasn't been working? If you get an error message, what is the error message (exactly, don't paraphrase)?

    Two commonly used Java IDEs are Eclipse and NetBeans are your looking for a full IDE. In my experience, XCode's Java support is not very good.

    Can you elaborate on this?
  3. macrumors newbie

    I can type stuff in TestWrangler. When I would want to test it, I could just use the run command and I could see my program run.

    If I do the same thing now with java, it gives me an error.

    I've tried typing the code from my book and code from the oracle website and it doesn't work.

    I don't know what "IDEs" are. They use Scite in class to write stuff. I just need help on getting set up to write code and test it some how, some where, some way.
  4. macrumors member


  5. macrumors newbie


    I just installed this netbeans program. It took a little poking around, I think this will work. I've been able to type in programs and get them running like my book has them displayed.

    This mystery is solved and this thread is now dead. Thanks for your help!
  6. naples98, Jan 23, 2012
    Last edited: Jan 23, 2012

    macrumors member


    I taught a "Learning Java" class at a local community college and I used to write up most of my programs in TextWrangler and compile/run them from the command line to show the students you don't need a fancy IDE to program. I would recommend you learn to compile/run from the command line prior to jumping into an IDE but your call.
  7. macrumors 68040


  8. macrumors newbie

    son of olaf

    I recently took an introductory Java class. I did all my writing with TextWrangler and did all my compiling on the command line- it worked very well.
  9. macrumors member

    When you're ready for an IDE, though, try Eclipse. You'll never want to hand-code again.

    If it weren't for Eclipse, I NEVER would have been able to get my Java homework done in time...automatically warns you if you need to do an import, pops up all the methods available, etc...I'm sure other IDEs do that, but still...
  10. macrumors 65816


    Eclipse or Netbeans are the way to go, and they are FREE.

    If you want something clean check out CodeRunner, but that will cost you some little money.

Share This Page