Bug 270163 - Enabling Load Time Weaving with Java ME
Summary: Enabling Load Time Weaving with Java ME
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: LTWeaving (show other bugs)
Version: 1.6.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 14:30 EDT by Guadalupe CLA
Modified: 2009-03-26 14:30 EDT (History)
0 users

See Also:


Attachments
Zip AspectJ and Java Me Midlet Project (11.59 KB, application/x-zip-compressed)
2009-03-26 14:30 EDT, Guadalupe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guadalupe CLA 2009-03-26 14:30:48 EDT
Created attachment 129998 [details]
Zip AspectJ  and Java Me Midlet Project

Unable to make LTW working in a Midlet Project.
Steps followed after installation (see below for installation):
1. Create a Midlet Project following the Java ME help installed with the plugin in Eclipse
2. Add META-INF project with aop.xml file to the Midlet Project
3. Create the AspectJ aspect and the aop.xml and create the jar file with them
4. Add the Java Agent to the file emulator.vm in the bin directory of the WTK installation directory
5. Add the aspect jar, aspectjrt.jar and meta-inf folder to the classpath in the eclipse run configuration of the midlet project

The result is the Midlet is executed normally but the aspect does not execute (tested in a Java project, following same steps, wit works)

I attach the AspectJ project and the Midlet one.

For installation:
I assume that Eclipse, AspectJ and AJDT are already installed (I have Eclipse version 3.4.0, AspectJ 1.6.2, AJDT 1.6.0)
1. Install Sun Java Wireless Toolkit for CLDC 2.5.2 (it can be downloaded from http://java.sun.com/products/sjwtoolkit/download.html)
2. Install Mobile Tools for Java plugin in Eclipse (it can be downloaded from http://www.eclipse.org/dsdp/mtj/download/downloads.php)
3. Configure Workbench following the Java ME help installed with the plugin in Eclipse