Exception when Wireless Toolkit obfuscated the j2s Program

Source: Internet
Author: User

Exception:

Building "J2meProgram"
Error: C: \ Documents ents (the specified file cannot be found .)
Obfuscation failed.

 

Anatomy:

The root cause of the problem is that there is a conflict between Proguard and the Space Directory, which is equivalent to a bug.

Solution: directory names cannot contain spaces during obfuscation and packaging.

The default working file directory is in: C: \ Documents ents and Settings \ Administrator \ j2mewtk, which has spaces.

The solution is to reset the working directory:

Find wtklib> Windows> ktools. properties in the installation directory of Wireless Toolkit 2.5.2.

Open it and add the following sentence at the end:

Kvem. apps. dir: directory of the application you want to store

In the future, you will use Wireless Toolkit to create the directory where the project is stored: Note that there should be no space in the file directory, and Backslash "\" will be used between multiple layers "\\"

Eg: "E :\\ workspace \ j2.

For Unix systems, use the/separator.

 

Exception B:

Building "mobilegps"
Error: expecting class path separator '; 'before' files \ wtk2.5.2 _ 01 \ Lib \ cldcapi11.jar' in line 1 of file 'd: \ temp \ MIDlet \ mobileabc. pro ',
Encoded ded from argument Number 1
Obfuscation failed.
Build failed

 

Root Cause:-outjar c: \ docume ~ In the generated mobileabc. Pro File ~ 1 \ admini ~ 1 \ locals ~ 1 \ temp \ mobileabc. jar contains spaces.

 

Solution: Still thinking .....

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.