The popularity of mobile devices has propelled the development of many useful location-aware applications. However, the heterogeneity of mobile devices necessitates that the software be customized and tailored for each device. The research described in this paper demonstrates the possibilities of generative programming applied to application tailoring. This is done in order to assist in porting software to specific devices without manually rewriting code. The Java 2 Micro Edition (J2ME) is an integral part of the application tailoring solution. Many mobile devices are capable of using J2ME, but require the code to be packaged specifically to run in each different mobile environment. J2ME applications alone are not sufficient for porting the code to different mobile devices. The first solution that will be presented uses a specifically structured VoiceXML file as input to an XSL transformation. The transformation produces J2ME source code. Java servlets are used to compile the resultin...