<?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[Java - Engr]]></title><description><![CDATA[Mechanical and Software Engineering]]></description><link>http://engr.io/</link><generator>Ghost 0.5</generator><lastBuildDate>Fri, 17 Apr 2026 15:57:04 GMT</lastBuildDate><atom:link href="http://engr.io/tag/java/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><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>