Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Ant and the Windows Registry

Ant and the Windows Registry

2006-10-17       - By peter reilly
Reply:     <<     11     12     13     14     15     16     17     18     19     20  

Ok, on checking, you do need both jar files.
roxes-win32forjava-1.0.4.jar and orangevolt-ant-tasks-1.3.5.jar

Try placing both in a directory - say c:/apps/roxes/lib
then do:

 <taskdef resource="com/orangevolt/tools/ant/taskdefs.properties">
   <classpath>
     <fileset dir="c:/apps/roxes/lib" includes="*.jar"/>
   </classpath>
 </taskdef>

   <win32.registry root="HKEY_LOCAL_MACHINE" key="SOFTWARE">
     <!--
          softwareExists will be set if
          HKEY_LOCAL_MACHINE\SOFTWARE exists
          -->
     <exists property="softwareExists"/>
   </win32.registry>

   <echo message="softwareExists=${softwareExists}"/>

Peter

On 10/17/06, Dominique Devienne <ddevienne@(protected)> wrote:
> On 10/17/06, Robert Pepersack <RPepersack@(protected)> wrote:
> > I tried doing that by putting, roxes-win32forjava-1.0.4.jar, which
> > contains com/roxes/win32/UrlFile, into the classpath in my build file.
> > But I got the same error.
>
> Then run with -verbose (or -debug) and see what stack trace you are
> getting. Running Java code that depends on JNI shared libs is more
> involved than just using the classpath. I don't know how Roxes or
> OrangeVolt deal with that... --DD
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.