Hey.. I’m working on a change to a connector and I...
# ask-community-for-troubleshooting
m
Hey.. I’m working on a change to a connector and I want to test it locally. I see in this README that I need to build the solution with
gradlew
but I’m getting an error when running
SUB_BUILD=PLATFORM ./gradlew build
Copy code
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at <https://docs.gradle.org/7.4/userguide/gradle_daemon.html>
Process command line: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -Xss4m --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -Xmx4g -Dfile.encoding=UTF-8 -Duser.country=NZ -Duser.language=en -Duser.variant -cp /Users/maikel.penz/.gradle/wrapper/dists/gradle-7.4-bin/c0gwcg53nkjbqw7r0h0umtfvt/gradle-7.4/lib/gradle-launcher-7.4.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.4
Please read the following process output to find out more:
-----------------------
Unrecognized option: --add-exports
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
I tried many things already and I think its something with my gradle installation. I’ve been working on a Python connector so I’m very new to using gradle + java
1
a
Hey @Maikel Penz, in the context of connector development it is not mandatory to build the platform. Platform build is useful if you wish to contribute on Airbyte's core. You should be able to build your connector using the following command:
Copy code
./gradlew :airbyte-integrations:connectors:source-<your-source-name>:build
If you need further assistance feel free to post on our Connector Development forum.
m
Thanks for your reply @Augustin Lafanechere (Airbyte), good to know I can build only my connector. I just noticed though that the issue is not with the build command itself. If I only run
./gradlew
I get the same error complaining about
Unrecognized option: --add-exports
a
I think this is probably related to your java version. Do you mind posting this exact question on our connector development forum so that the eventual resolution might help the rest of the community
👍 1