commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McGuinness <r...@fallingonline.com>
Subject Re: Betwixt: JRE compatabilities
Date Sat, 19 Nov 2005 03:03:42 GMT
An FYI for developers, cutting and pasting is not always a good  
thing, it can often times put non printable characters into a file.  
This is a problem I ran into when trying to use Betwixt with the IBM  
JDK. Here is a perl script for removing those characters:


#!/usr/bin/perl -w

use strict;

sub cleanFile{
	my $file = shift;

}

sub readDir{
	my $dir = shift;
	my @dirs = ();

	if (-d $dir) {
		opendir CDIR, $dir;
		foreach my $file (readdir(CDIR)) {
			my $path = $dir . "/" . $file;
			if (-f $path) {
				#Clean the file
				my $clean = `tr -cd '\11\12\40-\176' < $path > $path`;
			} elsif (-d $path and not ($path =~ /[\.]|[\.\.]/)) {
				readDir($path);
			}
		}
	}
}

die "Usage $0 <directory> \n" if (not $ARGV[0] and not -d $ARGV[0]);

&readDir($ARGV[0]);

exit 1;



On Nov 18, 2005, at 1:43 PM, robert burrell donkin wrote:

> On Thu, 2005-11-17 at 21:39 -0600, Ryan R. McGuinness wrote:
>> Which JRE's are betwixt compatible with? More directly, does it work
>> with IBM JDK 1.3 (or 1.3 at all)? Which libraries are needed to make
>> this work?
>
> the last betwixt release was compiled against using blackdown  
> 1.3.1. (i
> don't have a 1.3.0 JDK which will run against my current kernel.)
>
>> This stems from the fact that I am running betwixt on AIX in
>> WebSphere 5.1, and I am not getting any debugging out in my log
>> files. The code is working fine in test, but when I deploy: BLAMMO no
>> worky-worky. Any insight is appreciated.
>
> i recommend recompiling from source using the IBM 1.3 JDK JVM and
> retrying.
>
> the 1.3 JRE you are using may not ship with JAXP: if it does not then
> you need to download and install JAXP
> (http://java.sun.com/webservices/jaxp/index.jsp) any version  
> compatible
> with your JVM should work.
>
> - robert
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message