Monday, April 12, 2010

Fixing Wireless Toolkit 2.5.2_01's bug for Obfuscation

Hi I have spent lots of effort for obfuscating midlet application using WTK obfuscation_package option :D

 I found the solution, I am pasting it:

   There's a file ktoolbar.vm in the wtk\bin directory. Rename it to ktoolbar.bat and edit it as follows:

Insert these two lines at the beginning:

SET USER_HOME=g:\temp
SET KVEM_HOME=g:\emulators\WTK2.5.2

Instead of g:\temp specify the path where you want your workspace to be (the path must not contain spaces).

Instead of g:\emulators\WTK2.5.2 specify the path where your wtk is located.

Insert -Duser.home=%USER_HOME% into the next line, like this:

G:\java\JDK16~1.0_0\bin\java -Dkvem.home="%KVEM_HOME%" -Duser.home=%USER_HOME% -Djava.library.path="%KVEM_HOME%/bin" -Dsun.java2d.ddlock=true -Dsun.java2d.gdiblit=false -cp "%KVEM_HOME%/wtklib/kenv.zip";"%KVEM_HOME%/wtklib/ktools.zip";"%KVEM_HOME%/bin/JadTool.jar";"%KVEM_HOME%/bin/MEKeyTool.jar";"%KVEM_HOME%/wtklib/customjmf.jar";"%KVEM_HOME%/lib/j2me-ws.jar";"%KVEM_HOME%/lib/j2me-xmlrpc.jar";"%KVEM_HOME%/bin/schema2beansdev.jar";"%KVEM_HOME%/bin/j2me_sg_ri.jar";"%KVEM_HOME%/bin/jaxrpc-impl.jar";"%KVEM_HOME%/bin/jaxrpc-api.jar";"%KVEM_HOME%/bin/jaxrpc-spi.jar";"%KVEM_HOME%/bin/activation.jar";"%KVEM_HOME%/bin/mail.jar";"%KVEM_HOME%/bin/saaj-api.jar";"%KVEM_HOME%/bin/saaj-impl.jar";"%KVEM_HOME%/bin/xsdlib.jar";"%KVEM_HOME%/wtklib/nist-sip-1.2.jar";"%KVEM_HOME%/wtklib/JainSipApi1.1.jar";"%KVEM_HOME%/wtklib/jain-sip-presence-proxy.jar" com.sun.kvem.toolbar.Main

Now you have to run this edited file to run wtk. Now double click the .bat file .....and enjoy......

The original link where I found the solution is :


 Actually it is a bug of WTK and it shows the following error message while obfuscating:

Error: C:\Documents (The system cannot find the file specified)
Obfuscation failed.
Build failed

 so lets have the solution for it.....




Thursday, January 14, 2010

Video Playing in Brew Emulator

I have waste lot of time on searching for how to play video in BREW emulator. At last I have found the solution from forum:


  If Brew video support environment is not installed video will not play but work in real devices. We can play video using the sample code given by BREW sdk...

Wednesday, January 6, 2010

BREW addins/plugin for VC 6.0

Here is the link install addin to install addin for vc++ 6.0
From this link where I installed addin only using IE 7.0, I am unable to install it from chrome or firefox :(

PC Magazine Tips and Solutions

PC World: Latest Technology News

PCWorld.com - Most Popular Downloads of the Week