cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

J-Link UIDisplayMessage throws XToolkitNotFound exception

nborrerojr.
7-Bedrock

J-Link UIDisplayMessage throws XToolkitNotFound exception

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Apparently Protoolkit wasn't installed. Smiley Frustrated

Fixed now.

View solution in original post

1 REPLY 1

Apparently Protoolkit wasn't installed. Smiley Frustrated

Fixed now.

Top Tags