Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 07:11 Go to next message
Guadalupe is currently offline Guadalupe
Messages: 34
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 14:19 Go to previous message
Gustavo de Paula is currently offline Gustavo de Paula
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 14:19 Go to previous message
Gustavo de Paula is currently offline Gustavo de Paula
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: Fri Aug 29 06:18:52 EDT 2014

Powered by FUDForum. Page generated in 0.01906 seconds