DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35338>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35338





------- Additional Comments From [EMAIL PROTECTED]  2005-08-03 17:33 -------
George,
I still think this is a class loading problem.

I can reproduce the problem on Win2k+3 and Suse 9.2,
doing the following:

java -cp .;commons-net-1.4.0.jar; Test  // fails
java -cp .;commons-net-1.4.0.jar;jakarta-oro-2.0.8.jar Test //works

Please try to run the snippet below.

-Joerg


import org.apache.commons.net.ftp.*;
import org.apache.oro.text.regex.MalformedPatternException;
import java.net.*;
import java.io.*;

// try to execute with:
// java -cp .;commons-net-1.4.0.jar;jakarta-oro-2.0.8.jar Test

public class Test {
    
    // dummy has really no function other than to test if the oro lib is in the
class path
    MalformedPatternException dummy=new MalformedPatternException();
    public static void main(String[] args) {
        
        Test test=new Test();// construction should fail if oro lib is not in
the class path
        
        FTPClient ftp = new FTPClient();
        try {
            ftp.connect("konsensys.com");
            ftp.login("[EMAIL PROTECTED]", "errorlog");
            String[] files = ftp.listNames();
            for (int i = 0; i < files.length; i++)
                System.out.println(files[i]);
        }
        catch (Exception ex) {
        }
    }
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to