Re: javac ImageNoise, file location

2012-01-25 Thread Alexander Burger
On Tue, Jan 24, 2012 at 09:24:01PM +0100, Christian Kellermann wrote:
 * Jon Kleiser jon.klei...@usit.uio.no [120124 21:14]:
  With the ImageNoise script file in some other directory than the
  picoLisp, where the ersatz and tmp are, then I get
  ClassNotFoundException: ImageNoise; otherwise it works as intended. Is
 ...
 Have you tried setting the classpath to also point to the picolisp
 Ersatzlisp? Either the -classpath or the environment variable should
 work. Other java apps have got the same problem and usually work
 around it by some trampoline script.

Hmm, strange.

The startup script ersatz/pil does some proper classpath fiddling. In
particular, it specifies the local tmp/ directory. And it is also in
that directory where 'javac' creates its classfile. So far so good. The
ClassNotFoundException should not happen.

If that tmp/ directory doesn't exist yet, it is created by 'javac'.

Now the strange thing is that the 'java' call in ersatz/pil seems to
ignore the tmp/ classpath specification if that directory doesn't
exist yet. This results in the above error.

If you start it a second time (when tmp/ already exists at startup of
ersatz/pil) it works!

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: javac ImageNoise, file location

2012-01-25 Thread Jon Kleiser

On 1/25/12 11:51 AM, Alexander Burger wrote:

On Tue, Jan 24, 2012 at 09:24:01PM +0100, Christian Kellermann wrote:

* Jon Kleiserjon.klei...@usit.uio.no  [120124 21:14]:

With the ImageNoise script file in some other directory than the
picoLisp, where the ersatz and tmp are, then I get
ClassNotFoundException: ImageNoise; otherwise it works as intended. Is

...
Have you tried setting the classpath to also point to the picolisp
Ersatzlisp? Either the -classpath or the environment variable should
work. Other java apps have got the same problem and usually work
around it by some trampoline script.

Hmm, strange.

The startup script ersatz/pil does some proper classpath fiddling. In
particular, it specifies the local tmp/ directory. And it is also in
that directory where 'javac' creates its classfile. So far so good. The
ClassNotFoundException should not happen.

If that tmp/ directory doesn't exist yet, it is created by 'javac'.

Now the strange thing is that the 'java' call in ersatz/pil seems to
ignore the tmp/ classpath specification if that directory doesn't
exist yet. This results in the above error.

If you start it a second time (when tmp/ already exists at startup of
ersatz/pil) it works!

Cheers,
- Alex


Yes, if tmp/ already exists, then it works. Maybe the tmp/ should be 
created if it doesn't already exist ...?


/Jon
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: javac ImageNoise, file location

2012-01-25 Thread Alexander Burger
On Wed, Jan 25, 2012 at 12:25:33PM +0100, Jon Kleiser wrote:
 Yes, if tmp/ already exists, then it works. Maybe the tmp/
 should be created if it doesn't already exist ...?

You mean in the ersatz/pil wrapper script, before the JVM is started?

I would be reluctant to do so, because tmp/ is created by the 'tmp'
and 'javac' functions only if really needed. Creating it on each and
every start might clobber too many places with unnecessary tmp/
directories, and could even crash (no write permission).

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: javac ImageNoise, file location

2012-01-25 Thread Jon Kleiser
 On Wed, Jan 25, 2012 at 12:25:33PM +0100, Jon Kleiser wrote:
 Yes, if tmp/ already exists, then it works. Maybe the tmp/
 should be created if it doesn't already exist ...?

 You mean in the ersatz/pil wrapper script, before the JVM is started?

 I would be reluctant to do so, because tmp/ is created by the 'tmp'
 and 'javac' functions only if really needed. Creating it on each and
 every start might clobber too many places with unnecessary tmp/
 directories, and could even crash (no write permission).

 Cheers,
 - Alex

I'm not sure from which script it would be correct to create the tmp/.

/Jon

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: javac ImageNoise, file location

2012-01-24 Thread Christian Kellermann
Hi Jon,

* Jon Kleiser jon.klei...@usit.uio.no [120124 21:14]:
 With the ImageNoise script file in some other directory than the
 picoLisp, where the ersatz and tmp are, then I get
 ClassNotFoundException: ImageNoise; otherwise it works as intended. Is
 it possible to modify the ImageNoise code so that the location of this
 file is not so critical? If that is not easy, then I think it would be a
 good idea to write a few words on this at the rosettacode.org/wiki.

Have you tried setting the classpath to also point to the picolisp
Ersatzlisp? Either the -classpath or the environment variable should
work. Other java apps have got the same problem and usually work
around it by some trampoline script.

Kind regards,

Christian

-- 
Who can (make) the muddy water (clear)? Let it be still, and it will
gradually become clear. Who can secure the condition of rest? Let
movement go on, and the condition of rest will gradually arise.
 -- Lao Tse. 
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe