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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

J-Link messages file text directory under UNIX

gchampoux
1-Newbie

J-Link messages file text directory under UNIX

I have just developed my first J-link application (syncronous) in WildFire 3 (M130), and it works fine under Windows XP (and XP x64).
I also need it under UNIX as well (Solaris 10 on a sparc SunBlade 1000).

It does not fail initialization. It's definitely running.
However, it cannot display messages or add menu buttons because it cannot find the messages file.
During initializing, it is supposed to add a menu button and display a success message.
Instead, all I get is this error in the Pro/E message area:
Message 'WIGenMessage' not found in file WIMessages.txt.

When I catch the exceptions for UIAddButton & UIDisplayMessage, the exception message (same for both) is:
com.ptc.pfc.Implementation.pfcExceptions$XToolkitMsgNotFound

This is my protk.dat file:
name wicheckplot
startup java
java_app_class CheckPlotNote
java_app_start CheckPlotTextStart
java_app_stop CheckPlotTextStop
allow_stop true
delay_start false
text_dir /a/ptc_apps/unix/jlink/checkplotnote/text
end

I have also tried setting: text_dir /a/ptc_apps/unix/jlink/checkplotnote
That did not change anything.

My message file WIMessages.txt is in /a/ptc_apps/unix/jlink/checkplotnote/text.
It's contents:
WIGenMessage
%0s
#
#
CheckPlotNoteLabel
Check-Plot Note
#
#
CheckPlotNoteDesc
Creates the standard Check-Plot note on every sheet of this drawing.
#
#

Any advice?

> Gerry Champoux Williams International
> Lead Engineer 2280 E. West Maple Road
> Information Technology Walled Lake, MI 48390
> ' (248) 960-2816 7 (248) 960-2607
> * - * www.williams-int.com
2 REPLIES 2


> I have just developed my first J-link application (syncronous) in WildFire 3 (M130),
> and it works fine under Windows XP (and XP x64). I also need it under UNIX as well
> (Solaris 10 on a sparc SunBlade 1000).
>
> ... I get is this error in the Pro/E message area:
> Message 'WIGenMessage' not found in file WIMessages.txt.
>
> ... My message file WIMessages.txt is in /a/ptc_apps/unix/jlink/checkplotnote/text.

There are many undocumented "rules" for message files. I'm not sure if this is
a rule, but I would suggest that you use all lowercase letters for the file name
of your message files.



Marc
--
Marc Mettes
-
Visit My CAD/PDM AutomationBlog
Or, Subscribe to My CAD/PDM Automation Blog by Email





Bingo.

That was it.
After I changed the file name to lower case (and referenced it as such
in the source code) it all worked properly.

Gerry
Top Tags