<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[J-Link - Engr]]></title><description><![CDATA[Mechanical and Software Engineering]]></description><link>http://engr.io/</link><generator>Ghost 0.5</generator><lastBuildDate>Mon, 20 Apr 2026 04:00:14 GMT</lastBuildDate><atom:link href="http://engr.io/tag/j-link/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Creo APIs]]></title><description><![CDATA[<p>This is the start of information that I have gathered about the various <a href="http://http//creo.ptc.com/" title="Creo">Creo</a> APIs.</p>

<h2 id="visualbasicapi">Visual Basic API</h2>

<p>This may be called the Visual Basic API, however it can be accessed via any of the .net languages (and i belive anything with COM access), I will show examples in:</p>

<ul>
<li>C# .NET</li>
<li>Powershell</li>
</ul>

<p>Posts will be tagged with <a href="http://engr.io/tag/vb-api/" title="J-Link Pages">vb-api</a>.</p>

<h2 id="jlinkapi">J-Link API</h2>

<p>J-Link is the Java API for <a href="http://http//creo.ptc.com/" title="Creo">Creo</a>, it is the most powerful free API and has the ability to start when creo is loaded</p>

<p>Posts will be tagged with <a href="http://engr.io/tag/j-link/" title="J-Link Pages">j-link</a>.</p>

<h2 id="weblinkapi">Web.Link API</h2>

<p>This is the ActiveX component inside the embedded browser in <a href="http://http//creo.ptc.com/" title="Creo">Creo</a>. It can be access via JavaScript and therefore its supersets (e.g. CoffeeScript and TypeScript).</p>

<p>Posts will be tagged with <a href="http://engr.io/tag/web-link/" title="J-Link Pages">web-link</a>.</p>]]></description><link>http://engr.io/creo-apis/</link><guid isPermaLink="false">1b3b15ea-34aa-45cc-8724-1062112ab8ad</guid><category><![CDATA[Creo]]></category><category><![CDATA[MCAD]]></category><category><![CDATA[API]]></category><category><![CDATA[J-Link]]></category><category><![CDATA[VB-API]]></category><category><![CDATA[Web-Link]]></category><dc:creator><![CDATA[veggielane]]></dc:creator><pubDate>Mon, 24 Nov 2014 20:27:40 GMT</pubDate></item><item><title><![CDATA[Creo J-Link Pane Launcher]]></title><description><![CDATA[<p>I have created a customisable J-Link that adds a pane (see screenshot) with an embedded web page inside it. The web page is fully compatable with the Web.Link API, so it can be used to create custom tools/infomation pages. <br>
<img src="http://engr.io/content/images/2014/11/screenshot.png" alt="Screenshot"></p>

<h3 id="compiling">Compiling</h3>

<p>If you want to compile the files they are available on <a href="https://github.com/veggielane/Engr.Creo.Jlink.LaunchPane" title="Engr.Creo.Jlink.LaunchPane">github</a>, and use Java SDK 6 described in <a href="http://engr.io/creo-j-link-compiling/" title="Creo J-Link Compiling">Creo J-Link Compiling</a></p>

<p>If you don't want to there is a released binary also available on <a href="https://github.com/veggielane/Engr.Creo.Jlink.LaunchPane/releases">github releases</a>.</p>

<h3 id="installation">Installation</h3>

<p>Copy the files into a folder, i am using <code>C:/temp/</code> for this example.</p>

<p>First change the <code>java_app_classpath</code> location in the protk.dat file to your directory.</p>

<pre><code>name     Engr.Creo.Jlink.LaunchPane
startup  java
java_app_class  LaunchPane
java_app_classpath C:/temp/LaunchPane/
java_app_start  start
java_app_stop   stop
allow_stop      true
delay_start     false
end
</code></pre>

<p>As per <a href="http://engr.io/creo-j-link-running-program/" title="Creo J-Link Running Program">Creo J-Link Running Program</a>, change the <code>protkdat</code> location to your folder, And revise the location of your java executable.</p>

<pre><code>jlink_java_command C:\Program Files\Java\jre7\bin\java.exe
protkdat C:/temp/LaunchPane/protk.dat
</code></pre>

<p>Finally update the <code>LaunchPane.properties</code> file with your desired locations.</p>

<pre><code>name=LaunchPane
icon=C:/temp/LaunchPane/icon.png
url=http://www.google.com
</code></pre>

<p>Then run your application as per <a href="http://engr.io/creo-j-link-running-program/" title="Creo J-Link Running Program">Creo J-Link Running Program</a></p>]]></description><link>http://engr.io/creo-j-link-pane-launcher/</link><guid isPermaLink="false">1086c0fe-e53e-4c62-9bb4-dced2399efb9</guid><category><![CDATA[Creo]]></category><category><![CDATA[J-Link]]></category><dc:creator><![CDATA[veggielane]]></dc:creator><pubDate>Fri, 21 Nov 2014 18:21:29 GMT</pubDate></item><item><title><![CDATA[Creo J-Link Running Program]]></title><description><![CDATA[<p>It took me a while to decipher the user guide to get my first Hello World application working; it could be that i am not normally a Java programmer. <br>
However here is the process that I am happy with that runs a J-Link program, it uses the source from my <a href="https://github.com/veggielane/Engr.Creo.Jlink.LaunchPane" title="Engr.Creo.Jlink.LaunchPane">Engr.Creo.Jlink.LaunchPane</a> tool.</p>

<h3 id="configpro">config.pro</h3>

<p>These lines need to be added to your config pro:</p>

<pre><code>jlink_java_command C:\Program Files\Java\jre7\bin\java.exe
protkdat C:/temp/LaunchPane/protk.dat
</code></pre>

<p><code>jlink_java_command</code> points towards your JRE and doesn't use the internal Java shipped with Creo (which i couldn't get working); in this case I am using JRE 7. If Java's bin directory is in your system path, you can shorten this to <code>jlink_java_command java</code> <br>
<code>protkdat</code> points towards your application's <code>protkdat.dat</code> file.</p>

<h3 id="protkdat">protk.dat</h3>

<p>This file contains all the information creo needs to launch the program.</p>

<pre><code>name     Engr.Creo.Jlink.LaunchPane
startup  java
java_app_class  LaunchPane
java_app_classpath C:/temp/LaunchPane/
java_app_start  start
java_app_stop   stop
allow_stop      true
delay_start     false
end
</code></pre>

<p>The user guide details what each of these are, the important entry for me was the <code>java_app_classpath</code> this avoids needing to put this folder in the systems CLASSPATH.</p>

<h3 id="running">Running</h3>

<p>Creo should now load the J-Link program on startup, if you set <code>delay_start false</code> then its loaded but not started. You can then start it via the Auxiliary Applications menu.</p>]]></description><link>http://engr.io/creo-j-link-running-program/</link><guid isPermaLink="false">17949cc6-a77a-4bd3-b50a-f1318fb0a288</guid><category><![CDATA[Creo]]></category><category><![CDATA[J-Link]]></category><category><![CDATA[Java]]></category><dc:creator><![CDATA[veggielane]]></dc:creator><pubDate>Fri, 21 Nov 2014 18:07:46 GMT</pubDate></item><item><title><![CDATA[Creo J-Link Compiling]]></title><description><![CDATA[<p>I am not a Java program but after a bit of trial and error I managed to get a J-Link application compiled, here are the details.  </p>

<h3 id="jdkversion">JDK Version</h3>

<p>Currently I have only managed to run programs compiled with JDK 6 available at the <a href="http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html" title="Java SE 6 Downloads">Java Archive Downloads</a>. However the programs do seem to run using JRE 7, see <a href="http://engr.io/creo-j-link-running-program/" title="Creo J-Link Running Program">Creo J-Link Running Program</a>, for details on how to run an application.</p>

<h3 id="commandline">Command Line</h3>

<p>I initially used the command line to compile the .java files. Here is the batch file that resided in source directory.</p>

<pre><code>"C:\Program Files\Java\jdk1.6.0_45\bin\javac" *.java -classpath "C:\Program Files\PTC\Creo 2.0\Common Files\M070\text\java\pfc.jar"
pause
</code></pre>

<p>I am using a 64bit machinem so am using the 64bit jdk, you will have to change the paths to <code>javac</code> and <code>pfc.jar</code> depending on your creo version.</p>

<h3 id="intellijideaandeclipseluna">IntelliJ IDEA and Eclipse Luna</h3>

<p>After having success with compiling with the command line, I decided to switch to an IDE; I managed to get programs compiling with <a href="https://www.jetbrains.com/idea/" title="IntelliJ IDEA IDE - JetBrains">IntelliJ IDEA</a> and <a href="https://eclipse.org/" title="Eclipse Luna">Eclipse Luna</a>. The important step is to ensure they were using JDK 6 for compiling. I ended up using IDEA, but the different was marginal.</p>]]></description><link>http://engr.io/creo-j-link-compiling/</link><guid isPermaLink="false">e8575ed6-31aa-4be5-8eaf-6505e075d02f</guid><category><![CDATA[Creo]]></category><category><![CDATA[J-Link]]></category><category><![CDATA[Java]]></category><dc:creator><![CDATA[veggielane]]></dc:creator><pubDate>Fri, 21 Nov 2014 18:07:27 GMT</pubDate></item></channel></rss>