Originally posted by: Kilrsat
Originally posted by: BingBongWongFooey
Yes, the portability of java isn't quite what people make it out to be. Does java even have any *truly* cross platform stuff for filepaths and whatnot? For example, if you just tell a program to look in C:\blah, that's not exactly gonna work well outside of windows. I have seen quite a few java apps which are written in java and yet are only for a certain os. I dunno, I'm no expert by any means, but I've always failed to see what's so hot about java (heh, no pun intended, honest).
You get into things like: System.getProperty("user.dir"); System.getProperty("user.name"); System.getProperty("line.separator"); System.getProperty("file.separator");
There are a few others that I can't remember off the top of my head, but using these properties and some intelligent work with the file request, you can write a cross-platform application.
Right now I have a free-time killing project, written in completely in java that runs on Windows, Linux, Solaris, and OS X from only one group of source code. It plays mp3, ogg, wav, aiff, and au files, browses some basic web pages, keeps track of log files, stores user preferences, window positions, skins, blah blah... you get the point, its an advanced GUI (swing based) program that is indeed cross-platform. I only had to make a few adjustments for the Mac OS 9 version as Apple never released a java 2 compatible virtual machine so I had to rig a few things.
It is very possible to write a complex cross-platform java application, it just takes thought and planning.