#set up jvm options for sdk library
33 messages ยท Page 1 of 1 (latest)
โ This post has been reserved for your question.
Hey @sinful wadi! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
no
What happens and what do you expect to happen?
i used gradle
oh I see you have a build.gradle.kts with an error
Can you show that file and the errors you are getting there?
as well as all the files in your directory structure?
- [warn] The org.gradle.util.VersionNumber type has been deprecated.
org.openjfx.javafxplugin- [warn] The org.gradle.util.VersionNumber type has been deprecated.
org.openjfx.javafxplugin - [warn] The org.gradle.util.VersionNumber type has been deprecated.
org.openjfx.javafxplugin - [warn] The Provider.forUseAtConfigurationTime method has been deprecated.
org.openjfx.javafxplugin - [warn] The Provider.forUseAtConfigurationTime method has been deprecated.
org.openjfx.javafxplugin - [warn] The Provider.forUseAtConfigurationTime method has been deprecated.
org.openjfx.javafxplugin - [warn] The Provider.forUseAtConfigurationTime method has been deprecated.
org.openjfx.javafxplugin - [warn] The Provider.forUseAtConfigurationTime method has been deprecated.
org.openjfx.javafxplugin
- [warn] The org.gradle.util.VersionNumber type has been deprecated.
org.javamodularity.moduleplugin- [warn] The AbstractCompile.destinationDir property has been deprecated.
org.javamodularity.moduleplugin
- [warn] The AbstractCompile.destinationDir property has been deprecated.
Can you show the full output?
ok yeah so IntellIJ didn't properly import the project until now
Can you show the build.gradle.kts and the full output of the Gradle build?
Are there any lines in the build.gradle.kts underlined in red?
Also please share the code as text using a code block and not using images if possible
all lines are red
Did you maybe add Gradle/Groovy code in the build.gradle.kts?
import jdk.tools.jlink.resources.plugins
plugins {
java
application
id("org.javamodularity.moduleplugin") version "1.8.12"
id("org.openjfx.javafxplugin") version "0.0.13"
id("org.beryx.jlink") version "2.25.0"
}
group = "com.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
val junitVersion = "5.10.2"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
application {
mainModule.set("com.example.javafx")
mainClass.set("com.example.javafx.HelloApplication")
}
javafx {
version = "17.0.6"
modules = listOf("javafx.controls", "javafx.fxml")
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
tasks.withType<Test> {
useJUnitPlatform()
}
jlink {
imageZip.set(layout.buildDirectory.file("/distributions/app-${javafx.platform.classifier}.zip"))
options.set(listOf("--strip-debug", "--compress", "2", "--no-header-files", "--no-man-pages"))
launcher {
name = "app"
}
} ```
This message has been formatted automatically. You can disable this using /preferences.
Can you build the project from the CLI and show the output?
(as text)
It seems like you are using JDK 8 with javaFX 17 - you should probably update to a newer JDK
i get a file
ok
Where is that file from?
Can you show the stuff the ./gradlew build command prints to the console?
Do you have a Gradle tab in IntelliJ?
๐ค Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use/help ping.
Warning: abusing this will result in moderative actions taken against you.