Java version of the LibNet