Re: Ant and the Windows Registry

2006-10-17 Thread Robert Pepersack
otified that you have received > this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its > contents > - Original Message - > From: "Robert Pepersack" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, October

Re: Ant and the Windows Registry

2006-10-17 Thread Martin Gainty
L PROTECTED]> Sent: Tuesday, October 17, 2006 11:17 AM Subject: Re: Ant and the Windows Registry > Another one is http://www.trustice.com/java/jnireg/index.shtml > this is used by the judo language: > http://www.judoscript.com/ref/index.html > I have not tried this. > > Peter

Re: Ant and the Windows Registry

2006-10-17 Thread Peter Reilly
nation, distribution or copying of it or its contents - Original Message - From: "Robert Pepersack" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 17, 2006 10:24 AM Subject: Re: Ant and the Windows Registry > OK. I got it to run by putting both orangevolt-ant-ta

Re: Ant and the Windows Registry

2006-10-17 Thread Martin Gainty
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Robert Pepersack" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 17, 2006 10:24 AM Subject: Re: Ant and the Windows Registr

Re: Ant and the Windows Registry

2006-10-17 Thread Peter Reilly
On 10/17/06, Robert Pepersack <[EMAIL PROTECTED]> wrote: OK. I got it to run by putting both orangevolt-ant-tasks-1.3.5.jar and roxes-win32forjava-1.0.4.jar in Ant's lib directory. But, when I run it, I get this ugly error. I don't know the JNI, so I have no idea how to deal with this problem:

Re: Ant and the Windows Registry

2006-10-17 Thread Dominique Devienne
On 10/17/06, Robert Pepersack <[EMAIL PROTECTED]> wrote: OK. I got it to run by putting both orangevolt-ant-tasks-1.3.5.jar and roxes-win32forjava-1.0.4.jar in Ant's lib directory. But, when I run it, I get this ugly error. I don't know the JNI, so I have no idea how to deal with this problem:

Re: Ant and the Windows Registry

2006-10-17 Thread Robert Pepersack
OK. I got it to run by putting both orangevolt-ant-tasks-1.3.5.jar and roxes-win32forjava-1.0.4.jar in Ant's lib directory. But, when I run it, I get this ugly error. I don't know the JNI, so I have no idea how to deal with this problem: An unexpected exception has been detected in native code

Re: Ant and the Windows Registry

2006-10-17 Thread Peter Reilly
Also, remove the orangevolt-ant-tasks-1.3.5.jar from ${user.home}/.ant/lib, and from the CLASSPATH otherwise you will have nasty classloader problems, the two jar files should be in the same classloader. Peter On 10/17/06, Peter Reilly <[EMAIL PROTECTED]> wrote: Ok, on checking, you do need bo

Re: Ant and the Windows Registry

2006-10-17 Thread Peter Reilly
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: Peter On 10/17/06, Dominique Devienne <[EMAIL PROTECTED]> wrote: On 10/17/0

Re: Ant and the Windows Registry

2006-10-17 Thread Dominique Devienne
On 10/17/06, Robert Pepersack <[EMAIL 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 gettin

Re: Ant and the Windows Registry

2006-10-17 Thread Robert Pepersack
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. Robert Pepersack Senior Lead Developer Maryland Insurance Administration 410-468-2054 >>> [EMAIL PROTECTED] 10/17/2006 9:02:27 AM >>

Re: Ant and the Windows Registry

2006-10-17 Thread Dominique Devienne
BUILD FAILED C:\MIAEnterpriseSystem\Delivery8.0\build.xml:40: taskdef A class needed by class com.orangevolt.tools.ant.Win32ShortcutTask cannot be found: com/roxes/win32/UrlFile This is telling you OrangeVolt apparently depends on the Roxes Ant tasks. This is likely documented somewhere. You got

Re: Ant and the Windows Registry

2006-10-17 Thread Robert Pepersack
I tried the Java Preferences API, but it won't let you access registry entries. It will only let you read/write to registry entries that you create specifically for your Java application, based on the Java package. So, I tried orangevolt, but I get this error: BUILD FAILED C:\MIAEnterpriseSystem

Re: Ant and the Windows Registry

2006-10-13 Thread Dominique Devienne
Now, one thing to think about is that although the Java preferences API is limited to part of the registry, and it messes up strings you put down, there must be, underneath, the binding between Java and and the registry. If the raw API calls are exposed in Java, you could work out what the existin

Re: Ant and the Windows Registry

2006-10-13 Thread Steve Loughran
Peter Reilly wrote: On 10/13/06, Robert Pepersack <[EMAIL PROTECTED]> wrote: Hi all, I would like to read and alter a Windows registry key with Ant. You may ask why would I want to change the Windows registry??!! I want to change the registry because I want to change my J2EE server's (Sybase

Re: Ant and the Windows Registry

2006-10-13 Thread Dominique Devienne
(why oh why did sun not support jdirect?) Unless jdirect only allowed use of primitives (and String and 1D arrays of primitives, which would be copied) as args to the methods called, my guess would be because of reference tracking issues. Also, how could you have the Java code listening on even

Re: Ant and the Windows Registry

2006-10-13 Thread Peter Reilly
On 10/13/06, Robert Pepersack <[EMAIL PROTECTED]> wrote: Hi all, I would like to read and alter a Windows registry key with Ant. You may ask why would I want to change the Windows registry??!! I want to change the registry because I want to change my J2EE server's (Sybase EAServer) classpath f

Re: Ant and the Windows Registry

2006-10-13 Thread Michael Giroux
You can also the reg command. reg /? for commandline info. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ant and the Windows Registry

2006-10-13 Thread Steve Loughran
Robert Pepersack wrote: Hi all, I would like to read and alter a Windows registry key with Ant. You may ask why would I want to change the Windows registry??!! I want to change the registry because I want to change my J2EE server's (Sybase EAServer) classpath from Ant. My fellow developers an

AW: Ant and the Windows Registry

2006-10-13 Thread Jan.Materne
che Nachricht- >Von: Robert Pepersack [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 13. Oktober 2006 14:51 >An: user@ant.apache.org >Betreff: Ant and the Windows Registry > >Hi all, > >I would like to read and alter a Windows registry key with >Ant. You may ask why woul

Ant and the Windows Registry

2006-10-13 Thread Robert Pepersack
Hi all, I would like to read and alter a Windows registry key with Ant. You may ask why would I want to change the Windows registry??!! I want to change the registry because I want to change my J2EE server's (Sybase EAServer) classpath from Ant. My fellow developers and I could change our serve