Project

General

Profile

beanshell illegal reflective access

nona - 2 months ago -

Hi nice people!

I am getting this error with beanshell (libre/beanshell 2.0b6-1.parabola1):

Couldn't start desktop: Sourced file: inline evaluation of: ``desktop();'' : Method Invocation bcm.getClassPath : at Line: 40 : in file: /bsh/commands/makeWorkspace.bsh : bcm .getClassPath ( )

I don't know if I should create a bug report about this. I tried with jdk 8, 11 and 14. I am running like this:

java -jar /usr/share/maven/repository/org/apache-extras/beanshell/bsh/2.0b6/bsh-2.0b6.jar

Is it only me? Thanks!


Replies (6)

RE: beanshell illegal reflective access - nona - 2 months ago -

Oh, and the PKGBUILD only downloads a jar file. I would like to know if this is acceptable (?). Thanks again

RE: beanshell illegal reflective access - bill-auger - 2 months ago -

nona wrote:

I tried with jdk 8, 11 and 14. I am running like this:
java -jar /usr/share/maven/repository/org/apache-extras/beanshell/bsh/2.0b6/bsh-2.0b6.jar

there is also jre7-openjdk - it appears that multiple java
run-times may be installed without conflict; yet there is only
one `java` command in the 'java-runtime-common' package - im not
sure how to specify which version to use; but it is likely that
the above command was using the very same java version each time,
regardless of which packages were installed - some command like:
`java --version` would show that

the package depends only generically on the current 'java-runtime';
so maybe it just needs to be rebuilt; if it can not be forced to
use a specific run-time

nona wrote:

the PKGBUILD only downloads a jar file.

that is itself not a problem - a .jar file is just an archive
like a .tar file - the blacklist entry states the reason why it
is blacklisted

beanshell:beanshell:::[technical] Arch version is not compiled from source

presumably then, the .jar file contains source code - it could
be a problem if that .jar file contains more .jar files; because
would be likely to be blobs

RE: beanshell illegal reflective access - nona - 2 months ago -

bill-auger wrote:

[...]
there is also jre7-openjdk

Using that version does not show anything, but =Beanshell= does not not start.

[...]
one `java` command in the 'java-runtime-common' package - im not

you can do

archlinux-java set java-14-openjdk

the package depends only generically on the current 'java-runtime';
so maybe it just needs to be rebuilt; if it can not be forced to
use a specific run-time

The thing is that it cannot be rebuilt, at least not from the PKGBUILD, because as it was mentioned before, there is only a =.jar= file being copied from upstream. Should I create a freedom bug report, then?

presumably then, the .jar file contains source code - it could
be a problem if that .jar file contains more .jar files; because
would be likely to be blobs

The =.jar= file is a compiled file with binaries. In Java, when one compiles, the machine creates =.class= files which are somewhat equivalent to =.o= files from C or C++. This means that you could reverse engineer the files, but they are definitely not human-readable files. Those =.class= files can then be interpreted by the Java Machine (=java= command). To run a =.jar= file, you would call

java -jar filename.jar

while this code can run a single =.class= file:

java MyClass.class

The irony of this is that /I'm not saying who/ created a /not very sharp C/ with a rather similar idea (to try to take over the [digital] world).

RE: beanshell illegal reflective access - nona - 2 months ago -

Also, we should consider removing the =jdee= package, which comes with a precompiled =bsh.jar= and does not work due to a lack of internal functions (=jdee-autoload= or something).

RE: beanshell illegal reflective access - bill-auger - 2 months ago -

all i know is that i looked quickly at the blacklist and
PKGBUILD - this package is on the blacklist because the arch
package is not built from source - the arch PKGBUILD has only a
package() function; but the parabola PKGBUILD has a
build() function which compiles the program with 'ant' - i dont
know what is in that .jar file; but i assume that it is source
code - maybe someone needs to look into it more; but that should
have been done when the libre package was created

if this program does not compile, then that could be the end of
it; because the PKGBUILD notes that the software has been
unmaintained for a long time

RE: beanshell illegal reflective access - bill-auger - 2 months ago -

if the =jdee= program does not work, that is at least worthy of
a bug report

    (1-6/6)