title: NoSuchFieldError _hostname_ - FTPSClient Java with Interpreter
body: <p>I am trying to get the FTPSClient Example from Apache running (See here:
  <a href="https://svn.apache.org/repos/asf/commons/proper/net/tags/NET_2_2/src/main/java/examples/ftp/FTPSExample.java" rel="nofollow noreferrer">https://svn.apache.org/repos/asf/commons/proper/net/tags/NET_2_2/src/main/java/examples/ftp/FTPSExample.java</a>)</p>
  
  <p>In Eclipse, this example code works fine and I can upload my files to a server. When I try to compile my code within the Interprete,r which can run normal java sourcecode also, it still works. But when I start my compiled program, I get the following errors:</p>
  
  <pre><code>java.lang.NoSuchFieldError: _hostname_
  org.apache.commons.net.ftp.FTPSClient.sslNegotiation(FTPSClient.java:266)
  org.apache.commons.net.ftp.FTPSClient._connectAction_(FTPSClient.java:226)
  org.apache.commons.net.SocketClient.connect(SocketClient:163)
  org.apache.commons.net.SocketClient.connect(SocketClient:250)
  FTPSExample.doMyUpload(FTPSExample.java:93)
  </code></pre>
  
  <p>The last "sentence" is Class with my self named method. In line 93, I just try to connect to a Server:</p>
  
  <pre><code>this.ftps.connect(this.server);
  </code></pre>
  
  <p>Eclipse and my Interpreter are both taking the same classpath where my commons.net.jar is placed (3.6). So I really dont know, why this error appears.
  If you need to see the full class, I can post it here. But I did no changes to the original Example from Apache.</p>
  
  <p>Thank you, Louis</p>