# Gradle Jython Plugin Not Working?

**URL:** <https://discuss.gradle.org/t/gradle-jython-plugin-not-working/42537>\
**Category:** Help/Discuss\
**Created:** [March 28, 2022, 12:45am UTC](https://discuss.gradle.org/t/gradle-jython-plugin-not-working/42537 "2022-03-28T00:45:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjiboy50fonz](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@benjiboy50fonz](https://discuss.gradle.org/u/benjiboy50fonz)\
**Post date:** [March 28, 2022, 12:45am UTC](https://discuss.gradle.org/t/gradle-jython-plugin-not-working/42537/1 "2022-03-28T00:45:56Z")

</div>

Hi all,

I’m trying to use [this Jython plugin](https://discuss.gradle.org/t/how-to-get-jython-working/21164) in my project, but it does not seem to be working.

And yes, I have seen [this](https://discuss.gradle.org/t/how-to-get-jython-working/21164) post. I post this because that was not the same plugin.

It seems to me as though this plugin allows me to embed Python into Java. Here is my build.gradle:

```gradle
plugins {
    id 'com.github.hierynomus.jython' version '0.6.0'
    id 'java'
    id 'maven'
    id 'application'
}

mainClassName = 'zumi.HelloWorld'

repositories {
    mavenCentral()
}

jar {
    archiveBaseName = 'zumi-gradle'
    archiveVersion = '0.1.0'
}

```

I am trying to import `org.python.utils`, but it is responding with this when I try to build it:

```gradle
C:\Users\Ben Bistline\Documents\Zumi Research\Deploy\Code>gradlew run

> Task :compileJava FAILED
C:\Users\Ben Bistline\Documents\Zumi Research\Deploy\Code\src\main\java\zumi\HelloWorld.java:3: error: package org.python.util does not exist
import org.python.util.*;
^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* 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.   

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
1 actionable task: 1 executed

```

Alternatively, I have a Jython JAR file, but I get the same error when I try to set that file as a dependency.

Any help is appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [March 28, 2022, 4:10pm UTC](https://discuss.gradle.org/t/gradle-jython-plugin-not-working/42537/2 "2022-03-28T16:10:24Z")

</div>

From a quick look at the description of the plugin and its code, it only downloads Python libraries for you and cares for those downloaded libraries to be packaged in your JAR.

---

<div class="post-metadata">

**Author:** ![benjiboy50fonz](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@benjiboy50fonz](https://discuss.gradle.org/u/benjiboy50fonz)\
**Post date:** [March 31, 2022, 7:50pm UTC](https://discuss.gradle.org/t/gradle-jython-plugin-not-working/42537/4 "2022-03-31T19:50:48Z")

</div>

I was able to solve my problem. I am making use of [this](https://search.maven.org/artifact/org.python/jython-slim/2.7.2/jar) library.
