• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Mac OS X setup

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !!
 
Marshal
Posts: 67289
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Cayenne Woods
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

arghh...
all help appreciated, hope this makes sense
Cayenne
[ November 08, 2004: Message edited by: Cayenne Woods ]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'.
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!