Using Jlink in Eclipse

Hello again,

Today, I’m going to show you how to use Creo jlink in Ecilipse. First of all, you have to install Ecilipse enterprise edition (called Eclipse-EE and you can download it from here.)

After install it, creating a new java project.

then create Creo configuration file in project folder.

First file is config.pro. it must contain following statement.

jlink_java_command C:\Program Files\Java\jdk1.8.0_121\bin\java.exe -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

Please take consider that jdk folder can be different in your computer. please check version of the java from your computer.

other file is protk.dat.

name updatewithxml
startup java
java_app_class updatewithxml
java_app_start startApp
java_app_stop stopApp
allow_stop true
delay_start false
text_dir C:/Users/frost_tiger/workspaceEE/ZFxmlUpdater/text
java_app_classpath C:/Users/frost_tiger/workspaceEE/ZFxmlUpdater/bin/
end

you can see following picture files of folder.

Now I’m supposing you know all details configuration of creo jlink. Just I want to give you a couple of tricks.

for compiling the project, as you already know that run and debug button don’t work. we have to built project. You can see clearly where the button locates in eclipse.

then we can see class files in bin folder.

however, If I want to debug my program simultaneously with Creo. We have to use Remote Java Application.

before click remote java application. Creo must be opened.

with clicking debug button. Eclipse is listening what you are doing in creo until catch your breakpoint.

I hope that it is useful for all of you.
BestRegards,
Gökhan

http://www.gokhansaman.com/wp-content/plugins/sociofluid/images/google_48.png http://www.gokhansaman.com/wp-content/plugins/sociofluid/images/myspace_48.png http://www.gokhansaman.com/wp-content/plugins/sociofluid/images/facebook_48.png http://www.gokhansaman.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.gokhansaman.com/wp-content/plugins/sociofluid/images/twitter_48.png

Bir Cevap Yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir