Java upgrade in Ubuntu tend to cause minor headaches sometimes.
Like today; the package manager upgraded Java on my machine, and suddenly my J2ME project(midlet) won't launch.
My Sun Wireless Toolkit (launched from eclipse) which was pointing to the previous version which no longer exists on the system.
Here is a simple fix.
Traverse to the {WTK installation path}/bin directory
Open the emulator.sh (on Ubuntu) in Text editor. Here I found the hardcoded JRE path
javapathtowtk=/usr/lib/jvm/java-6-sun-1.6.0.16/bin/
I updated the above variable and then my J2ME project in eclipse started working.
Like today; the package manager upgraded Java on my machine, and suddenly my J2ME project(midlet) won't launch.
My Sun Wireless Toolkit (launched from eclipse) which was pointing to the previous version which no longer exists on the system.
Here is a simple fix.
Traverse to the {WTK installation path}/bin directory
Open the emulator.sh (on Ubuntu) in Text editor. Here I found the hardcoded JRE path
javapathtowtk=/usr/lib/jvm/java-6-sun-1.6.0.16/bin/
I updated the above variable and then my J2ME project in eclipse started working.
No comments:
Post a Comment