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
Obfuscation failed.
Build failed
so lets have the solution for it.....
No comments:
Post a Comment