This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Unix for Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Unix for Java" Watch "Unix for Java" New topic

Unix for Java

Alex Leung

Joined: Dec 08, 2003
Posts: 26
I hate to admit that I do not know this... well if I do not ask I'll never find out!
As a Java programmer, I have developed most of my programs in Windows, but recently I am forced to use Unix as the developing enviroment. And I almost have no experience on Unix at all. I have a book which teaches how to use Unix, but it does not mention anything about Unix system server or simliar things.
Can anyone please tell me if I want to use Java on Unix at home, do I have to register a Unix server or buy Unix software somewhere? or is there an alternative way to use Unix at home?
Thank you.
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
You can use Linux. Basically, Linux is just the kernel (I/O, Memeory allocation, etc). Redhat, Debian, Suse are basically shells sitting on top of the kernel to allow users to interact with the system. They all are free.
My suggestion is to download one of these softwears and try them out to your liking. Redhat is rather user friendly, however, I don't believe they have a user (home) distro anymore.
My favorite is Debian, but it's not easy for beginners. Try Mandrake if you like as well.
Alex Leung

Joined: Dec 08, 2003
Posts: 26
Cheers mate, I will try Red Hat.
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
Remember, there is a learning to Linux. Just take your time, read some forums, particular here or Get comfortable with it first, learn get to more detail later.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952

I think RedHat 9's still on the market and/or can be downloaded (as iso's). For personal use,
Fedora is essentially RedHat 9 plus some later improvements. If you do the server install, you'll get copies of Apache, DNS/Bind and the usual Internet servers installed automatically, as well as both the PostgreSQL and MySQL DBMS's.
For Java, you'll need to download and install a JDK from
For Java servers, download and install WebSphere or WebLogic Linux version, if that's what you're working with, or JBoss, JOnAS, or whatever alternative open-source (or not) J2EE server you want to work with. You can save some trouble on JBoss and JOnAS by downloading a version with Tomcat included (they also have Jetty versions, but if you're just starting, Tomcat's got a bigger support base).
Windows has the Windows Installer. Under a Linux environment, things vary a bit more. OS and major external systems frequently are available as installable packages. In RedHat, this is the RPM program. I like RPM. Unlike Windows installs, RPM can not only verify that the files haven't been corrupted, it can tell you where they got/will get put. Many packages are simply shipped as ZIP files or tarballs (e.g. Eclipse). Although J2EE packages don't need it (Java's write-once, run-anywhere), some binary packages require local compiling, which usually consists of running a configure, make, and make install command sequence. A few systems such as Emacs and Perl have their own local package managers for their sub-components and can even keep themselves updated via the Internet.
The differences in the filesystem are perhaps the most visible jolt from Windows. There are a few philosophical shifts as well. In Unix, it's considered better to glue several small utilities together than custom-create large do-all ones, so the shell programming language has some eally strange features. Most Unix programs are expected to run from the command line, since, like in Windows 3.1, the GUI system is not actually part of the OS, and need not be used unless you want it. Many Unix GUI apps are actually GUI wrappers around the command-line utilities.
The Windows registry is replaced by the /etc directory and the /opt directory is sometimes used like Program Files. Since Unix is a multi-user system, each user usually has a home directory under /home.
More than that and I'd be writing a book, but I hope it's a start!
[ December 11, 2003: Message edited by: Tim Holloway ]

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Unix for Java
Similar Threads
java on Unix
Unix With Java....
Error Sending Message to Web Service
How to write a signal handler(like in C) in Java?
Accessing File on UNIX