Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not initialize class envs.config.GenericConfig #15

Open
jungleblack007 opened this issue May 8, 2023 · 5 comments
Open

Could not initialize class envs.config.GenericConfig #15

jungleblack007 opened this issue May 8, 2023 · 5 comments

Comments

@jungleblack007
Copy link

I have intalled ufcg on WSL, however, when I used the same way (mamba install -y ufcg) to install it on ubuntu 22.04.2 LTS, it got wroing.
ufcg -u Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class envs.config.GenericConfig at envs.toolkit.Prompt.print(Prompt.java:31) at pipeline.UFCGMainPipeline.main(UFCGMainPipeline.java:289)
I checked my java is openjdk-17-jdk, how can I process it?

image

@endixk
Copy link
Member

endixk commented May 9, 2023

Hi, I tried to reproduce your error in both conda and docker environment, but both worked fine from my side.

Could you please try to create a clean conda environment and install the package again to see if the issue persists?

@JuliaPlewka
Copy link

Hi, I have the same error, also on Ubuntu systems, after installing it with mamba in clean conda envs. Do you have any solution?

@endixk
Copy link
Member

endixk commented Aug 2, 2023

Hey @JuliaPlewka, could you please run java --version and which java on the system from which you encountered the error? I suspect this occurs in specific version(s) of JDK/JRE.

@Muzixibeijin
Copy link

Hi, I have the same error,

java -version
openjdk version "21.0.2-internal" 2024-01-16
OpenJDK Runtime Environment (build 21.0.2-internal-adhoc.conda.src)
OpenJDK 64-Bit Server VM (build 21.0.2-internal-adhoc.conda.src, mixed mode, sharing)

which java
/home/zmz/miniconda3/envs/ufcg_env/bin/java
@endixk Do you have any solution?

@endixk
Copy link
Member

endixk commented Mar 12, 2024

@Muzixibeijin I recommend you to compile the program from source instead of using conda, as described in https://github.com/steineggerlab/ufcg?tab=readme-ov-file#build-from-source.

Alternatively, you can install older versions of JDK (8 or 11), which should work consistently.

I suppose the pre-compiled JAR included in the conda package raises such exceptions in some environments. I will try to make it consistent in the later versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants