Skip to content

Tag: gradle

Java required module can’t be found

I have a basic JavaFX project set up in IntelliJ: The project uses Gradle for dependency management. The dependency that was added by my is javax.mail.api as you can see in the build.gradle file here: The iissue I have now is that when trying to execute to programm with the following run configuration: I get the following exception: The

Gradle: Execution failed for task ‘:test’. > No tests found for given includes:

I try to run this single unit test of this open-source project on GitHub with IntelliJ. The test class The build.gradle What I have tried Updating to the newest JUnit testImplementation group: ‘org.junit.jupiter’, name: ‘junit-jupiter-api’, version: ‘5.9.1’ Adding this to my build.gradle file: test { useJUnitPlatform() } The only workaround yet: When I go to Settings -> Build-Tool -> Gradle

Gradle, Apache TomEE – TomEEWebappClassLoader loader constraint violation

The gradle project runtime at Apache TomEE plus has the error java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/tomee/catalina/TomEEWebappClassLoader) previously initiated loading for a different type with name “javax/faces/context/ExternalContext” at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass( at at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal( at org.apache.catalina.loader.WebappClassLoaderBase.findClass( at org.apache.catalina.loader.WebappClassLoaderBase.loadClass( at org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass( at org.apache.catalina.loader.WebappClassLoaderBase.loadClass( at org.apache.tomee.myfaces.TomEEWebConfigProvider.getFacesServletMappings( at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces( at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized( at org.apache.catalina.core.StandardContext.listenerStart( at org.apache.catalina.core.StandardContext.startInternal( at org.apache.catalina.util.LifecycleBase.start( at org.apache.catalina.core.ContainerBase$

React Native Task error ‘:app:processDebugMainManifest FAILED’

I recently upgraded React Native 0.63.4 to 0.70.1 and have been trying to iron everything out re upgrading packages and dependencies etc. I’m really stuck on this particular error and can’t seem to find a solution. The command prompt says: Task :app:processDebugMainManifest FAILED … FAILURE: Build completed with 2 failures. 1: Task failed with an exception. What went wrong: Execution

IntelliJ: Unresolved reference, but gradle build still succeeds

I have a Java library which I want to use in a Kotlin project. This is the build.gradle where I have the library as dependency: I also made sure I have a file named in my project where I set gpr.user and gpr.key correctly. The authentication works and the library is downloaded and indexed. IntelliJ also shows the

AbstractGoogleClientRequest and GoogleClientRequestInitializer class not found in

My Android app with Cloud Endpoints says these classes do not exist when using any version higher than 1.31.0 of the following import The latest version is 2.0.0 but even 1.32.1 has the issue. Anything that is 1.31.0 or lower works. This is what my code looks like (taken from this link): Is there a different way to be doing

How to configure VSCode on Linux to make it apply different JAVA_HOME for Gradle in different projects?

Right now I have a Spring project (needs Java 17) and a minecraft-forge-1.12 project (needs Java 8) on the same system. I want vscode to automatically change JAVA_HOME between /usr/lib/jvm/java-17-openjdk-amd64 and /usr/lib/jvm/java-8-openjdk-amd64 for gradlew command when I switch between these two project. I tried using .vscode/settings.json to do that, but cannot change in settings.json, so I can’t change this