Closed dionys closed 6 years ago
Note that
jrunscript -cp .:perlito.jar -l Perl5 -e 'print 1'
should be:
jrunscript -cp .:perlito5.jar -l Perl5 -e 'print 1'
but that doesn't explain the problem, because even this works here:
jrunscript -cp . -l Perl5 -e 'print 1'
The error may be related to the problem fixed in commit 066f25cfa12bde0543615f6a23126f0093726d0a from about 2 weeks ago:
classLoader = new DynamicClassLoader( new PlArray().getClass().getClassLoader() );
This patch makes sure that eval
runs in the same ClassLoader context as the Perl runtime (PlArray comes from the Perl runtime).
I can't reproduce the bug here.
Would you try the sequence below, hopefully it will give us some hints on how to reproduce the problem:
git reset --hard
git pull
make clean
make
jrunscript -cp .:perlito5.jar -l Perl5 -e 'print "1\n" '
java -version
git show --oneline -s
Yes, it's typo. I ran:
jrunscript -cp .:perlito5.jar -l Perl5 -e 'print 1'
The error is not solved after all your commands are executed.
> java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
> git show --oneline -s
5822b31 Perlito5 - java - Java API wip
I can reproduce with Java 8:
$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
The error goes away with Java 9:
$ java -version
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
73ade0c seems to fix it, tested in Oracle Java "1.8.0_131" and "9.0.1"
It works. Thanks!
When I try to run on last master:
I receive the following error message:
Running
make test-5jar
is ok. Runingjava -jar perlito5.jar -I src5/lib -e 'print 1'
is ok. Onlyjrunscript
throws the error.