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... Cayenne [ November 06, 2004: Message edited by: Bear Bibeault ]
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.
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.
arghh... all help appreciated, hope this makes sense Cayenne [ November 08, 2004: Message edited by: Cayenne Woods ]
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'.