# Custom java class library

**URL:** <https://forum.robotframework.org/t/custom-java-class-library/2936>\
**Category:** Robot Framework\
**Created:** [11 December 2021 14:19 UTC](https://forum.robotframework.org/t/custom-java-class-library/2936 "2021-12-11T14:19:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh-ragavan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/vignesh-ragavan/32/1125_2.png) [@vignesh-ragavan](https://forum.robotframework.org/u/vignesh-ragavan)\
**Post date:** [11 December 2021 14:19 UTC](https://forum.robotframework.org/t/custom-java-class-library/2936/1 "2021-12-11T14:19:56Z")

</div>

I have custom java class library using in robot framework.I have passed package name in library path but it gives error com.java.\* failed importers no module named

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [13 December 2021 13:20 UTC](https://forum.robotframework.org/t/custom-java-class-library/2936/2 "2021-12-13T13:20:04Z")

</div>

Please paste here the full command you use to call robot, and also the complete error message (remove any sensitive info).

---

<div class="post-metadata">

**Author:** ![vignesh-ragavan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/vignesh-ragavan/32/1125_2.png) [@vignesh-ragavan](https://forum.robotframework.org/u/vignesh-ragavan)\
**Post date:** [18 December 2021 09:48 UTC](https://forum.robotframework.org/t/custom-java-class-library/2936/3 "2021-12-18T09:48:48Z")

</div>

command I have used : jython -m robot gherkin\_login.robot  
java library name :mylibrary

error i got:[ERROR] Error in file ‘C:\Users\eclipse-workspace\robot-example\src\main\java\javalibrary\gherkin\_login.robot’ on line  
3: Importing library ‘mylibrary’ failed: ImportError: No module named mylibrary  
Traceback (most recent call last):  
None  
PYTHONPATH:  
C:\jython2.7.2\Lib  
**classpath**  
**pyclasspath** /  
C:\jython2.7.2\Lib\site-packages  
C:\jython2.7.2\Lib\site-packages\install-1.3.5-py2.7.egg  
C:\jython2.7.2\Lib\site-packages\robotframework-4.1.2-py2.7.egg  
CLASSPATH:  
C:\jython2.7.2\jython.jar
