classloading Questions

1

Solved

I am trying to load a projects class during the execution of a maven mojo. Unfortunately this operation fails, since the class loader is missing a referenced class. Looking around I found already t...
Aleda asked 26/5, 2021 at 10:37

1

Solved

All the documentation I've been able to find mentions the 'jre/lib/ext' folder but such does not exist on my JRE 13 installation. I guess somewhere between Java 8 (where I can see the jars in jre...

2

I'm running openjdk 11.0.3 on a server. Whenever the server has been rebooted (every night): For the first initial launch of my Application, the users have to wait for 35 Seconds before the Applica...
Abort asked 26/4, 2019 at 6:23

2

Solved

As per java doc, static block is executed when the class is initialized. Could anyone please tell me why static block is not executed when I run below code? class A { static { System.out.printl...
Dual asked 16/3, 2018 at 8:55

3

I'm running Cassandra 2.2.11 (and won't be upgrading) on a host. Periodically, in a cron job, I run nodetool commands for monitoring. nodetool is implemented as just another java process that uses ...
Wifehood asked 26/10, 2017 at 0:9

1

Solved

I have a jar file foobar.jar containing the following two classes: public class Foo { public static void main(String[] args) { System.out.println("Foo"); } } The other class looks like this:...
Lyckman asked 18/3, 2017 at 22:41
1

© 2022 - 2024 — McMap. All rights reserved.