First up I want to describe my problem. I created a program which connects directly to a FTP-Server. Now I need to make it run behind a proxy as well.
While searching around I've found this thread: How do I set the proxy to be used by the JVM
As I understood, it is sufficient (under Raspbian) to set
export ftp_proxy="http://username:password@host:port/"
in /etc/environment
and write System.setProperty("java.net.useSystemProxies", "true");
into my code to make the program use the proxy.
Am I right?