Re: Java task, classpath problem

2007-08-28 Thread Ognjen Blagojevic
Hi Peter, Thanks for your answer. And sorry for late reply, I was on vacation. Peter Reilly wrote: The task does strange things with the classloader. My advice would be to use fork="yes" unless there is a reason not to. Yes, I see. fork="yes" solved the problem. As regards the exception y

Re: Java task, classpath problem

2007-08-16 Thread Peter Reilly
The task does strange things with the classloader. My advice would be to use fork="yes" unless there is a reason not to. As regards the exception you are seeing, this is as far as I can see behaviour as designed. If one gives a classpath to the task, the classname *must* be in the classpath, fo

Java task, classpath problem

2007-08-10 Thread Ognjen Blagojevic
Hi, Can someone try to explain this behavior of java ant task: gives: java.lang.NoSuchMethodException: (...)ContextFactory.main Which is what I expected. ContextFactory is class in JRE's lib rt.jar, java task can find it, but it does not have main method. However, this task:

Re: Java task classpath problem

2006-08-01 Thread Andrew Goktepe
2ee.rmi.RMIInitialContextFactory as the initail context >> factory. >> I have done everything obvious to solve this problem but to no avail. Has >> anybody had any similar experiences and if so, how did they resolve them? >> >> Thanks >> >> Angus >>

Re: Java task classpath problem

2006-08-01 Thread Angus Rose
t; factory. >> I have done everything obvious to solve this problem but to no avail. Has >> anybody had any similar experiences and if so, how did they resolve them? >> >> Thanks >> >> Angus >> -- &

Re: Java task classpath problem

2006-07-31 Thread Andrew Goktepe
nce of oracle.j2ee.rmi.RMIInitialContextFactory as the initail context factory. I have done everything obvious to solve this problem but to no avail. Has anybody had any similar experiences and if so, how did they resolve them? Thanks Angus -- View this message in context: http://www.nabble.com/Java-task-classpath-p

Java task classpath problem

2006-07-31 Thread Angus Rose
://www.nabble.com/Java-task-classpath-problem-tf2026624.html#a5573041 Sent from the Ant - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]