jQuery in Action, 3rd edition
The moose likes Mac OS and the fly likes Mac OS X setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Mac OS X setup" Watch "Mac OS X setup" New topic

Mac OS X setup

Cayenne Woods

Joined: Nov 06, 2004
Posts: 4
I am spending way too much time setting this up, or trying to, and could use some plain-language help. I am not a programmer, as will be evident, but I have to do this.

I need to know in clear steps the setup for Mac OSX java development. I have found the library>java>home>bin, which has the java and javac files. I am using jjedit, rather than xcode, as I can't see what xcode is doing and I have to do this for a class.

there are many instructions to 'create a batch file' and set classpath - which I'm not sure is relevant to osx? I know how to use terminal, and could do this in unix on campus, but would really like to get it working on my mac. can someone please give me the exact steps/files I need?

I have a package, which developers have told me works fine, but I cannot get it to work. the jjedit compile command has worked so far, but I'm pretty sure this is a directory structure issues. the package structure was shown to me by some friendly developers, but still not working on the mac.

developer tools look great on this, I would really like to avoid abandoning the ibook but v. frustrated!

any help very much appreciated...
[ November 06, 2004: Message edited by: Bear Bibeault ]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24190


Welcome to JavaRanch!

We've got a special forum for Java on the Mac. I'll move this thread over there, where you're sure to get some quality answers.

[Jess in Action][AskingGoodQuestions]
Venkatraman Kandaswamy
Ranch Hand

Joined: Jul 07, 2004
Posts: 120
I have not played with JEdit so I might not be of help. Why dont you try downloading and installing Eclipse? Eclipse can import your package and take care of the package structure, compiling and execution. Also you might find more souls to help you with Eclipse than JEdit - i guess.

Also if you have any classpath problem try this tool : http://www.rubicode.com/Software/RCEnvironment/.

Good luck !!

--Venkatraman<br />SCJP 1.4<br /><a href="http://kvrlogs.blogspot.com" target="_blank" rel="nofollow">blog</a>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63222

and could do this in unix on campus

Since OS X is UNIX you should find very few differences. Perhaps if you would describe the specific problems you are having someone could offer some assistance.

You might also be better off just doing things from the command line rather than from within an IDE until you know your setup is correct.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Cayenne Woods

Joined: Nov 06, 2004
Posts: 4
Hello all

Nice to see folks are trying to help but not sure I can be helped!
I am using the command line (in terminal), which sometimes work and sometimes doesn't. It may be that if it works sometimes, there is no need for classpath and the errors are something else?

there are instructions for set classpath, but they need a batch file, which I'm not sure is right.

If I can run things from Terminal, and they sometimes work (again, I may be doing other things wrong in the ones that don't work) - do I need to bother with this??

the other thing I've seen is to add lines to my .login file, which I can't see. but Terminal lets you create .term files that seem to do the same thing. I have a CD that wants this in order to see animated examples, which I'm happy to give up on but need to get _something_ working.

I looked at eclipse and the RCE thing (cool) but I'm reluctant to keep spending times installing different tools and trying to find out how to make them work. would need quite specific info on what to add in RCE, for instance.

all help appreciated, hope this makes sense
[ November 08, 2004: Message edited by: Cayenne Woods ]
Ed Moon

Joined: Oct 18, 2004
Posts: 3
You should modify your .bashrc (OS X 10.3.x) or .tcshrc (earlier versions of OS X) to define CLASSPATH or any other environment variables as needed. You can find instructions on how to set environment variables in .bashrc or .tcshrc on the web.

Since you are using jEdit, you'll will be executing java & javac from the Terminal.

Unless you change your CLASSPATH to include '.' (current directory), you'll need to add '-cp .' to execute class/jar files. I.E. instead of 'java HelloWorld', you would type in 'java -cp . HelloWorld'.
Have you checked out Aspose?
subject: Mac OS X setup
It's not a secret anymore!