Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

how to run Jlink program in Pro-E

nitinap

New member
I am trying to create 3D Model in Pro-E through Java Program which is compiled in NetBean 5.5. But while runningit in pro-EI get XNativeException. Steps followed Tools--> Program--> JLink--> Addition of jar file and application start stop method And
smiley19.gif
Pro-E shows following error "Application appName failed to start : Exception: ciplib : XNativeException"


Oprating system is Windows Professional XP


Pro-E Wildfire V2


Thanks in advance
 
nitinap,


Please do a search on this forum for the answer to this question. I know it is asked at least once a month.
 
The protk.dat file is as follows


name java_demo


startup java


java_app_class MyJavaApp


java_app_start start


java_app_stop stop


java_app_classpath C:\demo\demo.jar; C:\demo\classes


allow_stop true


delay_start true


text_dir


end


I am novice about JLink and confused where to put this protk.dat file. Guide me how to set the runtimeenviornment variables.


Thanks in advance
Edited by: nitinap
 
hi nitinap,

i am trying the same thing that u have tried. I am also tyring to access and update the parameters in proe through java but getting the same error as u got. I have compiled java code through netbeans 5.5.But while runningit in pro-EI get XNativeException. Steps followed
Tools--> Program--> JLink--> Addition of jar file and
application start stop method And Pro-E shows following error "Application appName failed to start : Exception: ciplib : XNativeException"

please suggest me regarding this. Can u tell me the entire steps to b followed in proe to include my jar file and also other necessary steps to run my application in proe.....


thanks in advance,
 
Well, I would not use the java_app_classpath as your main classpath. I only use it for pointing the main application classes. If I use another library, then I use the environtment CLASSPATH to point them.


And another probably problem: the relative path in the package. If in your jar file the main class is in a package (very common in netbeans), then you have to use the full path. In netbeans there are two different directories in which the classes are compiled: the build directory and the dist directory. The .class files are stored in the build directory. If your application is called MyApp and the main class its calles MyMainClass, its very common that netbeans proposes a package called MyMainClass so if you look into build directory you will see another directory called MyMainClass and the MyMainClass.class is stored there.


The same its seen in the .jar file. If the .jar file is called MyApp.jar, then if you open this file with a .zip uncompressor, then you will see that there is an internal directory called MyMainClass and another calles META-INF.


So the point is ... the correct path to your main class is:


java_app_path MyMainClass.MyMainClass
and
java_app_classpath c:\....\MyApp.jar
 
Hello Jadhav,


Look into the Pro-Engineer installed directoy in your disk.Under the Loadpoint of the Pro-Engineer>Jlink folder exist,if you look into that you can have the "jlinkdoc" subfolder contain the ".html" help documentation to learn the Jlink application.There are some sample application files availible as well.


Kishore
 
Hello Kishore

Thanks for guidance. But can you tell me is Advanced JAVA knowledge is required for Proe Customization.
 
Hello,


I am more into Pro-Toolkit.As per knowledge is concern Core Java knowledge is sufficent to build the J-Link applications.





Kishore V
 
Hello Nitinap


You can create features in J-Link. Why are you wanted to attache the Jlink program using the Tools > Program > Jlink? I am teaching a course on how to use J-Link on May 19 to May 23 in Atlanta, GA if you are interested. Go to wwww.felcosolutions.com to find out more information.


What are you are trying to do with JLink?





QUOTE=nitinap]


I am trying to create 3D Model in Pro-E through Java Program which is compiled in NetBean 5.5. But while runningit in pro-EI get XNativeException. Steps followed Tools--> Program--> JLink--> Addition of jar file and application start stop method And
smiley19.gif
Pro-E shows following error "Application appName failed to start : Exception: ciplib : XNativeException"


Oprating system is Windows Professional XP


Pro-E Wildfire V2


Thanks in advance[/QUOTE]
 

Sponsor

Back
Top