[SOLVED] I can't to run Java in IntelliJ IDEA

I installed IntelliJ IDEA via configuration.nix and build it, all right until I run a Java project, is literally a empty main, is only for test if works in NixOS. And throws this output:

Abnormal build process termination: 
nice -n 10 /home/franco/.jdks/openjdk-23.0.1/bin/java -Xmx700m -Djava.awt.headless=true -Djna.boot.library.path=/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/jna/amd64 -Djna.nosys=true -Djna.noclasspath=true --add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Didea.IntToIntBtree.page.size=32768 -Djdt.compiler.useSingleThread=true -Daether.connector.resumeDownloads=false -Dio.netty.initialSeedUniquifier=-3349971364023320126 -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Didea.paths.selector=IdeaIC2024.1 -Didea.home.path=/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community -Didea.config.path=/home/franco/.config/JetBrains/IdeaIC2024.1 -Didea.plugins.path=/home/franco/.local/share/JetBrains/IdeaIC2024.1 -Djps.log.dir=/home/franco/.cache/JetBrains/IdeaIC2024.1/log/build-log -Djps.fallback.jdk.home=/nix/store/hld0l87x8ln7727v2n6amlfq0yy2xqzx-jetbrains-jdk-jcef-21.0.4-b598.4/lib/openjdk -Djps.fallback.jdk.version=21.0.4 -Dio.netty.noUnsafe=true -Djava.io.tmpdir=/home/franco/.cache/JetBrains/IdeaIC2024.1/compile-server/icecream_2c046b42/_temp_ -Djps.backward.ref.index.builder=true -Djps.backward.ref.index.builder.fs.case.sensitive=true -Djps.kotlin.home=/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/Kotlin/kotlinc -Dkotlin.incremental.compilation=true -Dkotlin.incremental.compilation.js=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"/tmp/kotlin-idea-15972571345196752835-is-running\" -Dide.propagate.context=false -classpath /nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/jps-launcher.jar org.jetbrains.jps.cmdline.Launcher /nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/jps-builders.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/jps-builders-6.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/jps-javac-extension.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/util-8.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/util_rt.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/platform-loader.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/annotations.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/trove.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/jetbrains.kotlinx.metadata.jvm.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/protobuf.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/jps-model.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/javac2.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/forms_rt.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/util.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/aether-dependency-resolver.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/maven-resolver-connector-basic.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/maven-resolver-transport-file.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/java/lib/maven-resolver-transport-http.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/idea_rt.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/lib/util-8.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/eclipse/lib/eclipse-jps.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/eclipse/lib/eclipse-common.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/platform-langInjection/lib/java-langInjection-jps.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/Groovy/lib/groovy-jps.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/Groovy/lib/groovy-constants-rt.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/javaFX/lib/javaFX-jps.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/javaFX/lib/javaFX-common.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/uiDesigner/lib/jps/java-guiForms-jps.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/maven/lib/maven-jps.jar:/nix/store/ivxdgbx0v18wv9yvw10cz4p0q6kc80kh-idea-community-2024.1.3/idea-community/plugins/gradle-java/lib/gradle-jps.jar org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 46243 a0d7dd0a-3435-4b15-b322-bda57c61a244 /home/franco/.cache/JetBrains/IdeaIC2024.1/compile-server
Could not start dynamically linked executable: /home/franco/.jdks/openjdk-23.0.1/bin/javaNixOS cannot run dynamically linked executables intended for generic
linux environments out of the box.

Fine, I added jdk23 in configuration.nix and it works. I need a Python interpreter for Pycharm. It can have a similar solution? adding the packages to the config file? I installed a interpreter with nix-env but Pycharm don’t recognizes it.

Ok, I’ll investigate how to setup Pycharm in Nix. Thank you.