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
GemsFX 1.29.1 - SearchTextField //missing export in module-info #47
Comments
You don't have to upgrade ... GemsFX is (should be) Java 11 compatible. Isn't it? |
I checked ... it is targeting 11.
|
Thanks for the fast reply. |
Yes, older versions used the wrong Java version. Please use 1.41 |
Actually 1.42. |
i get the error also for 1.41 and 1.42 :/ |
Are you building the project yourself or downloading from Maven central? |
You might also consider using the enforcer plugin in your pom.xml file (hope you use Maven). This way you get told which dependency is using what. <properties>
<java.version>11</java.version>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
</plugin>
..... <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.5.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>enforce</goal>
</goals>
<phase>validate</phase>
<configuration>
<rules combine.children="override">
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
<requireJavaVersion>
<version>${java.version}</version>
</requireJavaVersion>
<enforceBytecodeVersion>
<maxJdkVersion>${java.version}</maxJdkVersion>
</enforceBytecodeVersion>
<dependencyConvergence/>
<requireUpperBoundDeps/>
</rules>
</configuration>
</execution>
</executions>
</plugin> |
yes, i am using maven and i am downloading gemsfx via maven. |
the enforcer plugin says it requires upper bound dependencies for some, but i dont understand how to fix the gemsfx issue with it. |
I checked the manifest file and it shows this: Manifest-Version: 1.0 That looks correct to me. |
it looks correct to me to. `
` I added gemsfx 1.42 as a dependency. Maven clean install still claims "Unsupported major.minor version 56.0" :( |
you can also get around it by using a newer JDK to compile ... Simply use a JDK > 11 and everything works fine. Since you specify the Java version target in the pom.xml file the compiled code will be Java 11 compatible. I just realised that this is the reason that I did not notice this problem. I use JDK 17 or 18. |
Actually my last comment is what you want to do. |
okay but then i need to ugrade from jdk 11. idk i like to have the same jdk as the target i´m trying to compile. |
Maybe you find some maven docs on how to exclude code inside multi-version jar files that require a newer java version? |
should it be working if i exclude the whole tech.units:indriya:2.1.2 or only the java 12 and 14 parts? |
Not sure you can exclude parts individually. Probably the whole thing needs to be excluded. |
it works!! one last question: why has gemsfx a dependency to tech.units:indriya when it works without it? was just wondering |
oh and btw, is there anyway to paypal a beer/coffee to you because of gemsfx and your help today? |
gemsfx has a dependency to UnitFX and UnitFX has the dependency to tech.units:indriya. Some of the controls inside GemsFX require controls from UnitFX. |
Sponsoring is available here: https://github.com/dlsc-software-consulting-gmbh |
solution: |
Hello :)
When using the SearchTextFIeld i get the message "module com.dlsc.gemsfx does not export com.dlsc.gemsfx.skins to module javafx.fxml". I saw that this has been fixed in newer releases, but i dont want to upgrade from JDK 11.
Is it possible/planned to fix this?
Thanks in advance
The text was updated successfully, but these errors were encountered: