Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » Type java.lang.String Error preverifying class java.lang.String
Type java.lang.String Error preverifying class java.lang.String [message #22699] Sun, 16 November 2008 12:11 Go to next message
Guadalupe Mising name is currently offline Guadalupe Mising nameFriend
Messages: 35
Registered: July 2009
Member
Dear all,
I am still trying to get a web service client running.
I am trying to do it through the use of the Rational Software development
tool, which is based on Eclipse, I installed Sun Wireless Toolkit 2.5.2
for CDLC and MTJ 0.9.

When I try to generate client stubs in the midlet project, I get a
libraries error, which I solve adding rt.jar to the build path, but then I
get the following error in the midlet project (not in a specific class,
but in the project):
Type java.lang.String Error preverifying class java.lang.String

I haven't got a clue of the error. Any suggestion about this?
Any help is sincerely appreciated
Guadalupe
Re: Type java.lang.String Error preverifying class java.lang.String [message #22790 is a reply to message #22699] Sun, 16 November 2008 19:19 Go to previous message
Gustavo de Paula is currently offline Gustavo de PaulaFriend
Messages: 118
Registered: July 2009
Senior Member
which tool are you using to generate the stubs? it seems that you are not
using wtk stub generator, since you needed to rt.jar in the build path.
rt.jar includes classes that are not compatible with javame so it shold
not be included in an mtj project.

please try to generate the stubs with wtk stub generator and see if it
solves the problem

thanks,
gustavo

Guadalupe wrote:

> Dear all,
> I am still trying to get a web service client running.
> I am trying to do it through the use of the Rational Software development
> tool, which is based on Eclipse, I installed Sun Wireless Toolkit 2.5.2
> for CDLC and MTJ 0.9.

> When I try to generate client stubs in the midlet project, I get a
> libraries error, which I solve adding rt.jar to the build path, but then I
> get the following error in the midlet project (not in a specific class,
> but in the project):
> Type java.lang.String Error preverifying class java.lang.String

> I haven't got a clue of the error. Any suggestion about this?
> Any help is sincerely appreciated
> Guadalupe
Re: Type java.lang.String Error preverifying class java.lang.String [message #568122 is a reply to message #22699] Sun, 16 November 2008 19:19 Go to previous message
Gustavo de Paula is currently offline Gustavo de PaulaFriend
Messages: 118
Registered: July 2009
Senior Member
which tool are you using to generate the stubs? it seems that you are not
using wtk stub generator, since you needed to rt.jar in the build path.
rt.jar includes classes that are not compatible with javame so it shold
not be included in an mtj project.

please try to generate the stubs with wtk stub generator and see if it
solves the problem

thanks,
gustavo

Guadalupe wrote:

> Dear all,
> I am still trying to get a web service client running.
> I am trying to do it through the use of the Rational Software development
> tool, which is based on Eclipse, I installed Sun Wireless Toolkit 2.5.2
> for CDLC and MTJ 0.9.

> When I try to generate client stubs in the midlet project, I get a
> libraries error, which I solve adding rt.jar to the build path, but then I
> get the following error in the midlet project (not in a specific class,
> but in the project):
> Type java.lang.String Error preverifying class java.lang.String

> I haven't got a clue of the error. Any suggestion about this?
> Any help is sincerely appreciated
> Guadalupe
Previous Topic:java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
Next Topic:Newsgroup versus User's Mailing List?
Goto Forum:
  


Current Time: Tue Apr 23 09:03:04 GMT 2024

Powered by FUDForum. Page generated in 0.03916 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top