Posts

Showing posts from January 17, 2010

mod_xsendfile compiling in mac os x leopard and snow leopard for i386 or x86_64 arch type

Mod_Xsendfile  i s a small Apache2 module that processes X-SENDFILE headers registered by the original output handler." If you did encountered trouble integrating the module for XSendfile for Apache in Mac OS X, I manage to compile it by passing the flags which would suffice the architecture of the processor's model. apxs -cia -Wc,"-arch x86_64" -Wl,"-arch x86_64" mod_xsendfile.c -Wc           the compiler flags -Wl           the linker flags. That is applicable only if your arch type is x86_64 in Mac. I have Snow Leopard in my desktop, priorly it was Leopard 10.5.8. For Leopard 10.5.8, It does works when you pass "-arch i386" for compiler flags and linker flags. This works like a charm and Apache doesn't end up segmentation fault anymore. Hope this helps!

Java - make a jar file and include external classes or jar files, creating keystore, and signing a jar app

Compiling java app D:\java_apps\myapp>javac -verbose -sourcepath src_code_dir -classpath extlib\jai-1_1_4-pre-dr-b03-lib-windows-i586-28_Sep_2009\lib\ext\jai_codec.jar;"C:\Program Files\Java\jre6\lib\plugin.jar"; -d sod sod\org\myapp\ScanDriverApplet.java -d                destination directory for class files -verbose         includes information about each class loaded and each source                   file compiled. -classpath       Set the user class path, overriding the user class path in the                  CLASSPATH environment variable. If neither CLASSPATH or                   -classpath is specified, the user class path consists                   of the current directory. See  Setting the Class Path  for more                   details.                  If the -sourcepath option is not specified, the user class path                  is searched for source files as well as class files. Creating a keystore D:\java_apps\myapp>keytool -keystore m