09-29-2008, 03:58 PM
|
#1
|
The new goggles also do nothing.
Join Date: Oct 2001
Location: Calgary
|
Java development on macs, any experts?
Anyone do java development on macs? Just wondering about best practices (i.e. where to put files), I come from the Windows world.
Specifically, where's the best place to put the source files (Documents? or create a new Code folder under my home directory?)? And where should I put my downloaded JARs, like all the Apache stuff and such? Tomcat or JBoss? Ant?
Any suggested utilities that make development better?
Just figure if I get some advice up front might save myself some headaches down the road since I really don't know much about OSX and where it keeps its files.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
|
|
|
09-29-2008, 04:25 PM
|
#2
|
Franchise Player
Join Date: Nov 2006
Location: Supporting Urban Sprawl
|
Never coded on a mac, so this may mean nothing at all.
If you are using an IDE it shouldn't really matter, just use whatever they suggest for source and class files when you create your project.
If you are just using a text editor and manually compiling and stuff then you might have issues with randomly placed files, but really it shouldn't matter
__________________
"Wake up, Luigi! The only time plumbers sleep on the job is when we're working by the hour."
|
|
|
09-29-2008, 04:33 PM
|
#3
|
First Line Centre
Join Date: Nov 2006
Location: /dev/null
|
Where you put your code files is really a matter of preference, but I recommend putting them in your home directory. I tend to use "/home/%user%/dev".
IDE: Eclipse or Netbeans. Either is great. Netbeans is closer to emulating a Visual Studio feel, but Eclipse is much more powerful.
I will usually drop Eclipse into it's own directory in my home folder "~/dev/eclipse" because I tend to experiment with different configurations of Eclipse.
I typically use the built in servlet engines but here is a guide for setting Tomcat up independently: http://developer.apple.com/internet/java/tomcat1.html
The biggest utility I'd recommend learning is either PERL or shell scripting (BASH). This is where OSX's biggest advantage comes to play. Windows still has a shoddy console (everything is backwards! )
Oh, if you end up needing to use SVN, I highly recommend learning the console commands for it. Every graphical interface for SVN I've found on OSX is awkward or frustrating. I miss TortoiseSVN!
|
|
|
09-30-2008, 09:53 AM
|
#4
|
It's not easy being green!
Join Date: Oct 2001
Location: In the tubes to Vancouver Island
|
Quote:
Originally Posted by llama64
Where you put your code files is really a matter of preference, but I recommend putting them in your home directory. I tend to use "/home/%user%/dev".
IDE: Eclipse or Netbeans. Either is great. Netbeans is closer to emulating a Visual Studio feel, but Eclipse is much more powerful.
I will usually drop Eclipse into it's own directory in my home folder "~/dev/eclipse" because I tend to experiment with different configurations of Eclipse.
I typically use the built in servlet engines but here is a guide for setting Tomcat up independently: http://developer.apple.com/internet/java/tomcat1.html
The biggest utility I'd recommend learning is either PERL or shell scripting (BASH). This is where OSX's biggest advantage comes to play. Windows still has a shoddy console (everything is backwards! )
Oh, if you end up needing to use SVN, I highly recommend learning the console commands for it. Every graphical interface for SVN I've found on OSX is awkward or frustrating. I miss TortoiseSVN!
|
I would also vote eclipse.. As for SVN, I think there is a plugin for SVN use within eclipse. It makes your life so easy.
__________________
Who is in charge of this product and why haven't they been fired yet?
|
|
|
09-30-2008, 09:59 AM
|
#5
|
Franchise Player
Join Date: Nov 2006
Location: Supporting Urban Sprawl
|
Quote:
Originally Posted by kermitology
I would also vote eclipse.. As for SVN, I think there is a plugin for SVN use within eclipse. It makes your life so easy.
|
Ya there is, makes life easier when dealing with SVN.
__________________
"Wake up, Luigi! The only time plumbers sleep on the job is when we're working by the hour."
|
|
|
09-30-2008, 10:03 AM
|
#6
|
The new goggles also do nothing.
Join Date: Oct 2001
Location: Calgary
|
Yeah I use eclipese and CVS and such, that's no big deal.. just more basic things like where do I put my working directory, where do I put the millions of jar files that you have to download to make any open source project work these days, etc.
Terminal seems to be a terrible command prompt, any suggestions on something better that will look more like a linux prompt with colours and such?
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
|
|
|
09-30-2008, 10:09 AM
|
#7
|
It's not easy being green!
Join Date: Oct 2001
Location: In the tubes to Vancouver Island
|
Quote:
Originally Posted by photon
Yeah I use eclipese and CVS and such, that's no big deal.. just more basic things like where do I put my working directory, where do I put the millions of jar files that you have to download to make any open source project work these days, etc.
Terminal seems to be a terrible command prompt, any suggestions on something better that will look more like a linux prompt with colours and such?
|
Eclipse goes anywhere. I put jar files in a jar folder in my working directory and import them into my eclipse project.
__________________
Who is in charge of this product and why haven't they been fired yet?
|
|
|
09-30-2008, 07:43 PM
|
#8
|
First Line Centre
Join Date: Nov 2006
Location: /dev/null
|
Quote:
Originally Posted by photon
Terminal seems to be a terrible command prompt, any suggestions on something better that will look more like a linux prompt with colours and such?
|
I modified the built in "Homebrew" theme for the Terminal to suit my taste (who ever thought a terminal should be dark on white has issues... tsk tsk).
I've added the following to my bash profile file (~/.profile):
alias ls='ls -AG'
alias ll='ls -AlG'
alias lld='ls -AlG | grep "^d"'
alias lll='ls -AlG | grep "^l"'
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] "
I'm too lazy to type out "ls -l" and such
The PS1 will customize your prompt. There are tons of guides out on the internets that will walk you through further customization.
Also, to customize the ANSI colours, I use this: http://ciaranwal.sh/2007/11/01/custo...opard-terminal
|
|
|
09-30-2008, 08:07 PM
|
#9
|
Franchise Player
Join Date: Jul 2008
Location: in a swamp, tied to a cypress tree
|
If you had a question about the "prehistoric" AS400/Control language/RPG world I could help you. At least you're not getting the same wise-acre comments I get when I ask a tech question...
|
|
|
09-30-2008, 08:27 PM
|
#10
|
The new goggles also do nothing.
Join Date: Oct 2001
Location: Calgary
|
Awesome, thanks llama64
misspuck, that's because they all know if they comment me I'll "accidentally" delete the CP database with poor tech skills.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
|
|
|
09-30-2008, 08:30 PM
|
#11
|
Franchise Player
Join Date: Jul 2008
Location: in a swamp, tied to a cypress tree
|
Quote:
Originally Posted by photon
Awesome, thanks llama64
misspuck, that's because they all know if they comment me I'll "accidentally" delete the CP database with poor tech skills.
|
Hmm. I'll somehow have to adopt a more threatening demeanor
|
|
|
10-01-2008, 12:31 AM
|
#12
|
Director of the HFBI
Join Date: Sep 2004
Location: Calgary
|
Quote:
Originally Posted by missdpuck
Hmm. I'll somehow have to adopt a more threatening demeanor
|
sweet! now the dominatrix is coming out... whats your #?
__________________
"Opinions are like demo tapes, and I don't want to hear yours" -- Stephen Colbert
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -6. The time now is 12:58 PM.
|
|