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

J-Link UIDisplayMessage throws XToolkitNotFound exception

SOLVED
nborrerojr.
Regular Member

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

Re: J-Link UIDisplayMessage throws XToolkitNotFound exception

Apparently Protoolkit wasn't installed. Smiley Frustrated

Fixed now.

View solution in original post

1 REPLY 1

Re: J-Link UIDisplayMessage throws XToolkitNotFound exception

Apparently Protoolkit wasn't installed. Smiley Frustrated

Fixed now.

View solution in original post

Announcements