How to fix Error java.lang.ClassNotFoundException: com.tibco.tea.agent.internal.MachineUtil

How to fix Error java.lang.ClassNotFoundException: com.tibco.tea.agent.internal.MachineUtil

book

Article ID: KB0071167

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.x,6.x

Description

The following error is shown while starting be-teagent :-

WRAPPER - start method threw an exception
Exception in thread "main" java.lang.NoClassDefFoundError: com/tibco/tea/agent/internal/MachineUtil
    at com.tibco.tea.agent.be.launcher.BETeaAgentLauncher.registerJMXConnectorServer(BETeaAgentLauncher.java:230)
    at com.tibco.tea.agent.be.launcher.BETeaAgentLauncher.main(BETeaAgentLauncher.java:73)
Caused by: java.lang.ClassNotFoundException: com.tibco.tea.agent.internal.MachineUtil
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)


 

Issue/Introduction

This article demonstrates how to fix Error java.lang.ClassNotFoundException: com.tibco.tea.agent.internal.MachineUtil while starting the be-teagent

Environment

All Supported Environments

Resolution

Issue is caused by a missing entry of the TEA_Home installation directory in the "be-teagent.tra" file.

Please point TEA_HOME to the TEA installation directory in the "be-teagent.tra" file and try to run the be-teagent again.

tibco.env.TEA_HOME=<TEA_HOMEdirectory>

e.g:- tibco.env.TEA_HOME=C:/tibco/tea/2.4.1