
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A JNI error has occurred, please check your installation and try again - Getting this error in Linux environment
When I am trying to run the job in Linux environment, getting below error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Address
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)
Caused by: java.lang.ClassNotFoundException: javax.mail.Address
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 7 more

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Could you please indicate which talend build version and JDK version you are using? Please ensure that you are using the JDK executables and not the JRE ones and your JAVA_HOME and PATH variables are set properly.
Have you ever tried to run your job on others OS(Mac/ Windows) to see if it works?
Best regards
Sabrina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are using Talend Studio Version: 7.3.1 and Build id: R2023-12
JDK8 (1.8.0_291)
Yes we are setting JAVA_HOME and PATH according. Please see below:
JAVA_HOME=/data/apps/java8 -> Points to home directory
PATH=.:$JAVA_HOME/bin:$PATH
When checked java and javac versions I see 1.8 set for both:
java -version
java version "1.8.0_291"
javac -version
javac 1.8.0_291

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, we've encountered this issue before, and it had to do with the child job build type. Try to change the build type from OSGI Bundle to Standalone on the job that is failing. See screenshot.
