Freitag, 1. Mai 2009
3zl project :
target : use the scripted HTML with form to download file to target dir using apatche.commons.HTTPClient


HTML code : ( as text wihtout HTML formatting !)
form method="POST" name="upload1" action="$SCRIPT_NAME" enctype="multipart/form-data"
input type="hidden" name="action" value="upload"
nput type="file" name="uploadfile" size="50" maxlength="$MaxDwnl" accept="*.*"/
input id="form_submit" type="submit" name="submit" value="target"
input type='hidden' name='upfilename' value="target"
/form


--------------------------------
JAVA Code snippet:
import org.apache.commons.httpclient.*;
........
.......
try {
mPost.addParameter("uploadfile", f1); // FORM type="file" name='uploadfile' .....
} catch (FileNotFoundException e2) {
e2.printStackTrace();
}
mPost.addParameter("upfilename","X/"+f1.getName());
mPost.addParameter("action","upload");

downloads file f1 to dir /X

*fin




Sonntag, 26. April 2009
playing the first time with Exe4j to pack Netbeans Java apps to exe files needed alot of boose!

Puzzle is to find out all the jars needed to satisfy the "compiler" so here we go with the help of the fantasic site : http://www.findjar.com
Analysing the error.log file very looooong so only

The END :
using Netbeans / Liubraries ind the Guibuilder i made the appropriate includs of these JDG1.6 jar files to the Exe4J packer and got abt 56MB junk of exefile whick runs on the develop-machine.

Transfer to a very old WIN98 : seems problem win Java JRE..checking...problm with EXE4j_JAVA_HOME not found - leaving for later seems alot of ppl having the same problem -

http://wiki.netbeans.org/FaqDeployingMatisseBasedProjects ->How can I package the swing-layout-version.jar library into my application JAR? ->
http://wiki.netbeans.org/FaqDeployingMatisseBasedProjects
*
fin for today : deployed EXE4j file to workstation - ok! - still needs test with EXE4J options
*