# Using Console in Centos (BundleException in PlatformActivator.start()))

**URL:** <https://forum.katalon.com/t/using-console-in-centos-bundleexception-in-platformactivator-start/30206>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [July 24, 2019, 7:08pm UTC](https://forum.katalon.com/t/using-console-in-centos-bundleexception-in-platformactivator-start/30206 "2019-07-24T19:08:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hstine](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hstine/32/23869_2.png) [@hstine](https://forum.katalon.com/u/hstine)\
**Post date:** [July 24, 2019, 7:08pm UTC](https://forum.katalon.com/t/using-console-in-centos-bundleexception-in-platformactivator-start/30206/1 "2019-07-24T19:08:47Z")

</div>

I saw that someone else asked a very similar question ([Unable to start Katalon Studio on Ubuntu server](http://forum.katalon.com/t/unable-to-start-katalon-studio-on-ubuntu-server/21970)), however the conversation did not progress to a confirmation of a solution.

I am attempting to get katalon in the console to work on CentOS (in order to integrate it with Jenkins). Recently, I attempted to run my test suite with the following command:

./katalon -noSplash -runMode=console -consoleLog -projectPath=“/var/lib/jenkins/workspace/eaportal-regression/EAPService.prj” -reportFolder=“.” -reportFileName=“Report” -browserType=“Firefox (headless)” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/Initial”

The result I got was the same as that which the person in the link I provided experienced:  
!ENTRY com.katalon.platform 4 0 2019-07-24 14:59:56.854  
!MESSAGE FrameworkEvent ERROR  
!STACK 0  
org.osgi.framework.BundleException: Exception in com.katalon.platform.internal.PlatformActivator.start() of bundle com.katalon.platform.  
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:795)  
. . .  
Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct  
. . .  
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct  
. . .  
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di\_1.6.1.v20160712-0927  
. . . etc

I found potential solutions in the link above, as well as here: [https://stackoverflow.com/questions/55370539/starting-katalon-studio-on-linux-ubuntu-server](https://stackoverflow.com/questions/55370539/starting-katalon-studio-on-linux-ubuntu-server)

These solutions involved ensuring that the jdk was installed and updating the katalon.ini file. I changed the .ini, to no effect, making these its contents:  
-startup  
plugins/org.eclipse.equinox.launcher\_1.3.201.v20161025-1711.jar  
–launcher.library  
plugins/org.eclipse.equinox.launcher.gtk.linux.x86\_64\_1.1.401.v20161122-1740  
-data  
config  
-vmargs  
-Xms256m  
-Xmx2048m  
-Dosgi.requiredJavaVersion=11  
–add-modules=ALL-SYSTEM

The jdk is installed. java --version returns:  
java version “11.0.3” 2019-04-16 LTS  
Java™ SE Runtime Environment 18.9 (build 11.0.3+12-LTS)  
Java HotSpot™ 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)

Another piece of data that may be relevant is that this katalon instance was downloaded and installed by the jenkins plugin. I am not sure what impact that will have. I just have had some experiences where Jenkins processes operated in a different environment than that used by the rest of the system.

Thank you for any help! If I end up finding a solution, I’ll update here.

---

<div class="post-metadata">

**Author:** ![hstine](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hstine/32/23869_2.png) [@hstine](https://forum.katalon.com/u/hstine)\
**Post date:** [July 24, 2019, 8:45pm UTC](https://forum.katalon.com/t/using-console-in-centos-bundleexception-in-platformactivator-start/30206/2 "2019-07-24T20:45:54Z")

</div>

I solved the problem.

The NoClassDefFoundError was for a class in java, itself. The eclipse message boards referenced: [https://bugs.openjdk.java.net/browse/JDK-8189188](https://bugs.openjdk.java.net/browse/JDK-8189188)

An issue when using java 11. I switched back to 8, and the problem went away.

Unfortunately, I might be compelled to use only 11, but that is another matter.

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [July 24, 2019, 8:49pm UTC](https://forum.katalon.com/t/using-console-in-centos-bundleexception-in-platformactivator-start/30206/3 "2019-07-24T20:49:14Z")

</div>

java 11 is a no go. stick with 8 for now  
you can have both java’s in linux, but involve some headache

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:43am UTC](https://forum.katalon.com/t/using-console-in-centos-bundleexception-in-platformactivator-start/30206/4 "2022-08-08T07:43:15Z")

</div>

Archived on August 8, 2022, 7:43am UTC


