Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
Java under Linux differs from Java under Windows

Java under Linux differs from Java under Windows

2003-09-09       - By Bill Gradwohl

 Back
Reply:     1     2     3     4     5  

I've been reading Beginning Java2  SDK 1.4 Edition by Ivor Horton.

As I work through the examples, some don't work as the book text would lead you
to believe. If I compile the .java file on RH7.2 SMP and then execute the
.class file on the same box and a W2K box, I get different outputs for certain
file manipulations. The JVM is supposed to make the O/S a non issue, but
clearly it is an issue. I'm wondering if what I'm seeing is some deficiency in
my set up, if they are bugs in the JVM, if its an SMP issue, or some file
handling issue in Linux in general.

Both of my Java environments are straight from Sun's web site. The author
apparently used a Windows box to craft the examples because they work on my W2K
box as he describes them in the text.

For Example, the renameTo method on Linux SMP deletes any target file that may
already exist, and then renames the source to that target. Under Windows, the
renameTo fails because the target file already exists.

Another example involves random writes to an existing file. Under Linux, all
the writes get appended to the tail end of the file. Under Windows, the writes
are truly random, appearing all over the file.

I know this isn't a JAVA list, but can anyone shed some light on this from the
Linux perspective. It's only the file manipulations that are inconsistent.



Bill Gradwohl
(817) 224-9400 x211
www.ycc.com
SPAMstomper Protected Email