OS for Java development

Status
Not open for further replies.

Malyk

Ars Tribunus Angusticlavius
8,558
Subscriptor
I'd go with a Macbook myself. Access to all the unix utilities is very helpful in development. It /might/ be less so since most java dev's use a full featured IDE, but I bought a mac specifically for programming when I switched to ruby because of all the useful unix utilities that aren't available on windows (outside of the cygwin hack).

Mike
 

philhanson

Ars Scholae Palatinae
1,397
Malyk":12irmqjn said:
I'd go with a Macbook myself. Access to all the unix utilities is very helpful in development. It /might/ be less so since most java dev's use a full featured IDE, but I bought a mac specifically for programming when I switched to ruby because of all the useful unix utilities that aren't available on windows (outside of the cygwin hack).

Mike

You would get access to those same utilities with a netbook and linux distro though correct?
 

dredphul

Ars Tribunus Angusticlavius
6,341
Subscriptor++
philhanson":lmljn8kx said:
Malyk":lmljn8kx said:
I'd go with a Macbook myself. Access to all the unix utilities is very helpful in development. It /might/ be less so since most java dev's use a full featured IDE, but I bought a mac specifically for programming when I switched to ruby because of all the useful unix utilities that aren't available on windows (outside of the cygwin hack).

Mike

You would get access to those same utilities with a netbook and linux distro though correct?

Yes you would. A netbook may not be a good idea for development though. Small screen + slow processor + RAM limitations = painful development experience.

The only strike I have with Mac OS X for Java development is that you only have access to the Java versions released by Apple (unless you want to go with an unoffical port or open-source Java implementation). This can be a problem if you want to work with the latest and greatest Java SDK.
 
dredphul":2jyd2dks said:
philhanson":2jyd2dks said:
Malyk":2jyd2dks said:
I'd go with a Macbook myself. Access to all the unix utilities is very helpful in development. It /might/ be less so since most java dev's use a full featured IDE, but I bought a mac specifically for programming when I switched to ruby because of all the useful unix utilities that aren't available on windows (outside of the cygwin hack).

Mike

You would get access to those same utilities with a netbook and linux distro though correct?

Yes you would. A netbook may not be a good idea for development though. Small screen + slow processor + RAM limitations = painful development experience.

The only strike I have with Mac OS X for Java development is that you only have access to the Java versions released by Apple (unless you want to go with an unoffical port or open-source Java implementation). This can be a problem if you want to work with the latest and greatest Java SDK.

You can always install VirtualBox or Boot Camp and make use of another OS on the same hardware.

The biggest pain is when you're dealing with a system that is running on an old JDK: getting some systems running on 1.5 while leaving the rest on 1.6 is not an easy thing to do.
 

philhanson

Ars Scholae Palatinae
1,397
koala":171n5awi said:
Loads of RAM, big screen, nice keyboard.

All Java IDEs will run equally well in Windows/Linux/OS X. The only real factor I can think of, besides personal preference, would be developing in the same OS you are planning to deploy your apps to (things like filesystem case sensitivity can hit you sometimes).

I was thinking mainly of deploying on mobile devices such as Blackberry OS 6 or the upcoming Tablet OS.
 

Malyk

Ars Tribunus Angusticlavius
8,558
Subscriptor
philhanson":10yx2lc5 said:
Malyk":10yx2lc5 said:
I'd go with a Macbook myself. Access to all the unix utilities is very helpful in development. It /might/ be less so since most java dev's use a full featured IDE, but I bought a mac specifically for programming when I switched to ruby because of all the useful unix utilities that aren't available on windows (outside of the cygwin hack).

Mike

You would get access to those same utilities with a netbook and linux distro though correct?

You can. I just prefer the polish of OS X to any linux distro. It's been an almost perfect experience for me while trying to get anything working on my fiancee's ubuntu laptop is a pain in the ass.

Mike
 
I'd recommend Windows. The cost is less than a Mac, and, as pointed out, the JVM is the real deal.

Netbeans or Eclipse are both excellent Java IDEs, and you shouldn't need any command line voodoo for Java. Netbeans is (imo) the more stable/polished IDE, while Eclipse has a steeper learning curve, but has some pretty cool plugins.

As for the hardware, you don't need bleeding edge. Eclipse is a RAM hog, so you will want atleast 1GB ~ put that in perspective with what modern Win7 (x64) laptops ship with (4GB), and you are perfectly fine.

You could also use a netbook, but I am not sure what IDE is optimal for it. You can always code in decent text editor (Notepad++, emacs, etc...) and get syntax highlighting, and then compile on the command line. (You can actually create macros to handle the compile from within those editors too).

Also, if you are in school, I would recommend a windows laptop, because they typically have VGA out. Which you will want if you need to give a presentation on most projectors. (With a mac you better remember to bring your adapter!)
 
koala":2ae592kt said:
Loads of RAM, big screen, nice keyboard.

All Java IDEs will run equally well in Windows/Linux/OS X. The only real factor I can think of, besides personal preference, would be developing in the same OS you are planning to deploy your apps to (things like filesystem case sensitivity can hit you sometimes).

There is the metaphor shear when you use Java apps that are used to being run in a Window environment, though. Some of them still bind to Ctrl-C when they should use Cmd-C, and generally don't behave like they are on a native platform.

It does help to be able to keep things straight between filesystem paths if you are developing in MacOS and deploying to Linux, but it's not a big enough hassle to be a factor.
 

pyu

Ars Praefectus
5,108
Subscriptor
The apps I develop deploy to Solaris and Linux. I develop on Windows, largely because its overall cheaper - where I live, Macs are more expensive - and as stated, its because of the JVM though I do not think that is a major concern.

That said, we have a single developer using a Mac mini for development for both Java and Objective C. She has no issues with running Eclipse in Mac OS X.
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
philhanson":25ycxnik said:
Hmm I guess the other factor I should have included in this conversation is my price limit. $600 is it, and I would prefer a laptop to take around with me.
You might be able to get a decent development laptop off of that.

If you sprinkle magic pixie dust around and wish really hard.

I wouldn't get less than an i5 with 4GB of RAM for doing Java development--that's fairly close to what I use at work and it makes the experience much more pleasant. I have a work-issued MBP with similar specs (and a much, much better screen than what Dell offers, and a 30" external monitor for actually doing work). It's a comfortable, pleasant system. A Dell Inspiron 14R with 4GB of RAM and an i5 will run you $800, have shit build quality, and have a miserable display panel (I'm talking 1280x720 miserable).

If you're serious about it, there is a "pay the money" moment in your near future.
 

philhanson

Ars Scholae Palatinae
1,397
Blacken00100":927kz5ya said:
philhanson":927kz5ya said:
Hmm I guess the other factor I should have included in this conversation is my price limit. $600 is it, and I would prefer a laptop to take around with me.
You might be able to get a decent development laptop off of that.

If you sprinkle magic pixie dust around and wish really hard.

I wouldn't get less than an i5 with 4GB of RAM for doing Java development--that's fairly close to what I use at work and it makes the experience much more pleasant. I have a work-issued MBP with similar specs (and a much, much better screen than what Dell offers, and a 30" external monitor for actually doing work). It's a comfortable, pleasant system. A Dell Inspiron 14R with 4GB of RAM and an i5 will run you $800, have shit build quality, and have a miserable display panel (I'm talking 1280x720 miserable).

If you're serious about it, there is a "pay the money" moment in your near future.

Yeah I was hoping to stretch an Education discount as much as possible. Hmmm.
 

Joel_B

Ars Praefectus
4,652
Subscriptor
Blacken00100":3e3adpi0 said:
koala":3e3adpi0 said:
All Java IDEs will run equally well in Windows/Linux/OS X.
This isn't at all true. For example, Eclipse can have lag issues if you're using a compositing WM on Linux whenever it tries to pop up a tooltip, due to the way it handles windowing.

Since when...? We have a fairly large code base, and I've not seen this in all my years developing on Ubuntu. All tool-tips are fine.

To the OP: Get whichever machine you feel most comfortable with. And spend as much as you can afford since you will spending a lot of time. Also get something which is reliable. You don't want to be showing something to your tutor only to have it crash on wake-from-sleep.
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
Joel_B":2nye5q4m said:
Blacken00100":2nye5q4m said:
koala":2nye5q4m said:
All Java IDEs will run equally well in Windows/Linux/OS X.
This isn't at all true. For example, Eclipse can have lag issues if you're using a compositing WM on Linux whenever it tries to pop up a tooltip, due to the way it handles windowing.

Since when...? We have a fairly large code base, and I've not seen this in all my years developing on Ubuntu. All tool-tips are fine.

Primarily due to this bug (which happened in NetBeans too) I haven't bothered with a Linux desktop for development in 2-3 years, so it certainly may have been fixed by now. Similar platform-specific issues can probably be found on Windows and OS X. The point is, not all Java IDEs will run "equally well" anywhere.
 
I bought a Core2 "Santa Rosa" Thinkpad about 3 years ago. 2GB RAM, 120GB HD, 15.4 (1280x760 ~ whatever standard res is). It runs Eclipse, Firefox, winamp, Matlab, and few other random apps simultaneously without a hitch. You really don't need bleeding edge for what you are doing. Pickup a 2nd gen Core2 laptop, win7 x64, and 2GB (or 4GB if you can) RAM, 120GB HD will do fine. The screen is very important, I wouldn't go below 15.4" size/resolution without trying it first. If your budget allows bumping up to the higher res screen may be helpful (I still prefer standard res though)

I would make sure that your laptop's CPU supports virtualization, that way you can run VMs efficiently from within Windows.
 

Joel_B

Ars Praefectus
4,652
Subscriptor
Blacken00100":4dsu9ebe said:
Joel_B":4dsu9ebe said:
Blacken00100":4dsu9ebe said:
koala":4dsu9ebe said:
All Java IDEs will run equally well in Windows/Linux/OS X.
This isn't at all true. For example, Eclipse can have lag issues if you're using a compositing WM on Linux whenever it tries to pop up a tooltip, due to the way it handles windowing.

Since when...? We have a fairly large code base, and I've not seen this in all my years developing on Ubuntu. All tool-tips are fine.

Primarily due to this bug (which happened in NetBeans too) I haven't bothered with a Linux desktop for development in 2-3 years, so it certainly may have been fixed by now. Similar platform-specific issues can probably be found on Windows and OS X. The point is, not all Java IDEs will run "equally well" anywhere.

Seems to be fixed now. Personally this is why I think its handy to have binaries targeted to each system, like Eclipse...
 
While I'm a Mac user (switched ~3.5yrs ago, bought my second MBP 2 weeks ago), I wouldn't recommend it without reservations.

You would be entirely dependent on Apple for Java releases.
- If you need the latest release, which addresses a compatibility/security issue, you're screwed. You'll have to wait until whenever Apple releases their version.
- If you need an older JDK, you're screwed, only the current release is officially available.
- If you're using certain Oracle jar libs you're screwed, you get networking issues.

I have just rolled off a project after 2.5yrs on it. We only switched to Java 6 ~8 months ago. Until then, I ran an Ubuntu VM just to I can run JDK5 builds before commits, of for lib builds, etc. I had to keep try-catch-retry blocks in my code that I removed before commit to overcome the Oracle incompatibilities.

etc etc

It's a pain, occasionally. But, if you can live with this stuff, I'd say go for it. You get a BSD heart, proper Bash (sorry, Cygwin doesn't compare), and very high polish.

Oh, I've also been having SpringSource Eclipse bring my shiny new i7 15" 8GB MBP to a kernel panic - happened 3 times in 2 weeks. So there are always more annoying/severe problems..
 

Joel_B

Ars Praefectus
4,652
Subscriptor
Jinxo":2038u7io said:
- If you need an older JDK, you're screwed, only the current release is officially available.

Not really, you can install Java 1.5 on Snow Leopard by following this guide : http://chxor.chxo.com/post/183013153/in ... ow-leopard

At work we develop against Java 1.5 and this allows me to code from home without having to install VMs like you did. Less hassle...! :D

There's also a nifty Java Preferences utility that can switch around Java Compiler versions to help manage the different versions of Java.

Jinxo":2038u7io said:
- If you're using certain Oracle jar libs you're screwed, you get networking issues.

Which versions are these...? It would be handy to know... :)
 

w00key

Ars Legatus Legionis
10,099
Subscriptor
In my experience, both Linux and Windows would do. Make sure you use the Sun SDK, not Iced Tea, that caused some webstart related trouble on deployments here.

Skip macs, you cannot access the EA versions for testing, and I had to verify fixes a few times with a custom jvm from Sun - they build it for Solaris, Win32/64 or Linux, but not for OSX afaik.

Personally, I prefer Windows because that's what I'm most familiar with and in my opinion, the best overall desktop platform. We deploy everything on Linux tho, again for familiarity, because I worked a lot with Linux installations in the past there with Jetty, Apache & others. When you're looking for a problem, the most common platform is the easiest to debug. Thanks to write once, deploy anywhere, it just works if you don't break/bend rules, like no hardcoding "C:\".
 
Joel_B":1axfk0iv said:
Not really, you can install Java 1.5 on Snow Leopard by following this guide : http://chxor.chxo.com/post/183013153/in ... ow-leopard

I worked with that for a while. That was my initial response, before going for a VM solution. However, it did cause me problems using Java outside dev work. Plus, the fact remains that you are essentially hacking your Java install to get Java 5.

Joel_B":1axfk0iv said:
Less hassle...! :D

Actually I found I far preferred the VM solution, once I had worked out the workflow. I gave it access to the source tree via an NFS share (found it to have a far smaller overhead compared to SMB), and the entire thing was, eventually, fairly transparent.

Joel_B":1axfk0iv said:
Jinxo":1axfk0iv said:
- If you're using certain Oracle jar libs you're screwed, you get networking issues.
Which versions are these...? It would be handy to know... :)

It's been a while. ll I can tell you now was that it was Oracle Fusion, approximately v10.1.3.
 
Status
Not open for further replies.