Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About java.lang.StringBuilder in SAMSUNG JaUmi Wireless ToolKit  RSS feed

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting java.lang.StringBuilder error in SAMSUNG JaUmi Wireless ToolKit.
Error is like this :
java: cannot access java.lang.StringBuilder
file java\lang\StringBuilder.class not found
String cbsConnection = "cbs://:" + cbsMessageID;
^
Fatal Error: Unable to find method <init>
com.sun.kvem.ktools.ExecutionException
Build failed

Please tell me the solution ASAP.

Thanks group
 
ranger
Sheriff
Posts: 17314
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
StringBuilder is a J2SE class, and is not part of the J2ME Apis. That would be why it fails.

Mark
 
madan singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply Mark,

But the problem is that, same poject work fine for SonyEricsson(p900) j2me toolkit but it doesn't work with SAMSUNG.
 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Try using StringBuffer Class in place of StringBuilder.

- Ramy..
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samsung wtk (Most sprint wtks)doesn't support Java 1.5. That's why you are getting that error.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, dear
I'd like to know about what kind of the JDK version do i have to choose for compiling with SAMSUNG JaUmi Wireless Toolkit
I'd like to thank your answer
 
Bartender
Posts: 19192
85
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

wonmuk kim wrote:hi, dear
I'd like to know about what kind of the JDK version do i have to choose for compiling with SAMSUNG JaUmi Wireless Toolkit
I'd like to thank your answer



You'll have to check the vendor's documentation. In the case of a carrier-supplied device (Spring, T-Mobile, etc.), it would be the carrier. In the case of a general device (SIM card), it would be Samsung.

Unlike desktop PCs, the JRE in mobile devices is generally welded in at the factory and cannot be easily changed.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!