You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by defrit <li...@bosch.com> on 2008/10/08 04:56:18 UTC

Ant compilation error (RMI class def not found)

Hello, 

when running my build.xml with ant i get the following error message:

wtkpreverify] Preverifying C:\workspace\Midlets\test.jar
[wtkpreverify] Error preverifying class clients.stubs.WebService
[wtkpreverify]     java/lang/NoClassDefFoundError: java/rmi/Remote
[wtkpreverify] Error preferifying, log file not found: 
C:\workspace\Midlets\9dc5a94f.tmp\jarlog.txt
BUILD FAILED

seems as if he couldnt find the rmi class definition. but shouldnt that one
be part of a standard package?
i did include all wtk libraries in the ant classpath and i did activate
webservices in the build.xml (doesnt have any affect tho):	<property
name="wtk.j2mews.enabled" value="true" />


what could that be? the "preferifying"/preverifying log error is probably
just a subsequent error

thanks
-- 
View this message in context: http://www.nabble.com/Ant-compilation-error-%28RMI-class-def-not-found%29-tp19871441p19871441.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Ant compilation error (RMI class def not found)

Posted by defrit <li...@bosch.com>.
cheers mate, 

I did use verbose mode and then i figured it out:
the compiler somehow didn't use the eclipse ant classpath. i had to include
all jars individually by the following line
<property name="wtk.midpapi"
value="C:\WTK2.5.2\lib\j2me-xmlrpc.jar;C:\WTK2.5.2\lib\midpapi20.jar;C:\WTK2.5.2\lib\cldcapi11.jar;C:\WTK2.5.2\lib\mmapi.jar;C:\WTK2.5.2\lib\j2me-ws.jar;C:\WTK2.5.2\lib\jsr082.jar"
/>



-- 
View this message in context: http://www.nabble.com/Ant-compilation-error-%28RMI-class-def-not-found%29-tp19871441p19891034.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Ant compilation error (RMI class def not found)

Posted by Steve Loughran <st...@apache.org>.
defrit wrote:
> Hello, 
> 
> when running my build.xml with ant i get the following error message:
> 
> wtkpreverify] Preverifying C:\workspace\Midlets\test.jar
> [wtkpreverify] Error preverifying class clients.stubs.WebService
> [wtkpreverify]     java/lang/NoClassDefFoundError: java/rmi/Remote
> [wtkpreverify] Error preferifying, log file not found: 
> C:\workspace\Midlets\9dc5a94f.tmp\jarlog.txt
> BUILD FAILED
> 
> seems as if he couldnt find the rmi class definition. but shouldnt that one
> be part of a standard package?
> i did include all wtk libraries in the ant classpath and i did activate
> webservices in the build.xml (doesnt have any affect tho):	<property
> name="wtk.j2mews.enabled" value="true" />

It looks like whatever wtkpreverify is, it isn't getting the classpath 
set up right. Try running ant -verbose to see if the classpath gets 
printed out


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org