You Are Here:

Community: Developer Discussion Boards

#1 Old J2me polish error: internal class cannot be compiled !!! - 2007-02-19, 17:30

Join Date: Oct 2006
Posts: 19
cvraiden
Offline
Registered User
Dear all,

I was using j2mepolish 2.0 beta without any problems. Then, I used
latest verion
2.0 but when I call ant on the cmd, it just gave me the error message
"internal
class could not be compiled". The strange thing is if I call "ant test
j2mepolish",
then my project is compiled and run fine. However, if I only call
"ant", then
the error occurs.

I also tried to run the sample project from j2me polish and it is fine
in test
and normal mode. It is so strange. If the sample project is oki, then
my project
should be fine too. And I noticed that when I use the obfuscator, then
the error
occurs.

I tried to reinstall the latest version but it also does not help. This
is the
error detail. Now my project is compiled without obfuscation, therefore
it is
too big. Please help me out. Thanks.

[javac] Internal J2ME Polish class:
C:\workplace\CamManMobileuildeal\Son
y-Ericsson\JavaPlatform6\en_US\source\HtmlBrowser.java:126: cannot find
symbol
[javac] symbol : method nextToken()
[javac] location: class StringTokenizer
[javac] String str = st.nextToken();
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
[javac] An internal class of J2ME Polish could not be compiled.
Please try
a
clean rebuild by either calling "ant clean j2mepolish" or by removing
the worki
ng directory "C:\workplace\CamManMobileuildeal".
[javac] When an API-class was not found, you might need to define
where
to f
ind the device-APIs. Following classpath has been used:
[C:\J2ME-Polish\import\m
mapi.jar;C:\J2ME-Polish\import\midp-2.0.jar;C:\J2ME-Polish\import
Reply With Quote

#2 Old Re: J2me polish error: internal class cannot be compiled !!! - 2007-02-20, 09:43

Join Date: Jan 2007
Posts: 27
blastblast
Offline
Registered User
Which IDE are you using btw? I'm afraid I have no solution for you, it's just I'm having a very similar problem whilst using Netbeans.


Regards
Stu
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
J2ME Polish jig22nesh Mobile Java General 6 2009-02-06 10:07
SDK emulator dont support Xprefs? Cant run from J2ME Polish jkoorts Mobile Java General 0 2007-01-19 16:53
J2ME Polish Obfuscation problem !!!! divyas Mobile Java General 1 2006-08-21 14:00
Exceptions while loading application avinash_rs Mobile Java General 0 2003-06-09 11:53
J2ME Performance Monitor Class atomictag Mobile Java General 0 2003-02-03 11:15

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia