Skip to main content
1-Visitor
March 19, 2018
Solved

J-Link UIDisplayMessage throws XToolkitNotFound exception

  • March 19, 2018
  • 1 reply
  • 2192 views

Hello,


I am starting a J-Link app to use with Creo 3.0. I can connect to Creo using the AsyncConnection_Connect. I am able to get the session and can use UIShowMessageDialog successfully. When I try to use UIDisplayMessage, I get a XToolkitNotFound exception. Here is the code that I am using.

 

 Executors.newSingleThreadExecutor().execute(() ->
 {
 try {
 pfcAsyncConnection.AsyncConnection_Connect(null, null, null, 1000);

 asyncConnection = pfcAsyncConnection.AsyncConnection_GetActiveConnection();
 session = asyncConnection.GetSession();
 session.UIDisplayMessage("creobot.txt", "CONNECT Success", null);
 } catch (com.ptc.cipjava.jxthrowable jxt) {
 // Some irrelevant stuff in here...
 }
 });

The text file "creobot.txt" exists in a subdirectory of the jar file at \text\usascii\creobot.txt. That file looks like this:

CONNECT#Success
Connected to CreBot!
#
#

 

Any ideas?

Best answer by nborrerojr.

Apparently Protoolkit wasn't installed. Smiley Frustrated

Fixed now.

1 reply

nborrerojr.1-VisitorAuthorAnswer
1-Visitor
March 19, 2018

Apparently Protoolkit wasn't installed. Smiley Frustrated

Fixed now.