Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

pro/e 2001 and java problems

Status
Not open for further replies.

sartan

Automotive
Feb 24, 2002
2
Are there any detailed instructions on how to correctly set up jdk with pro/e 2001. In 2000i2 I managed to write some code that added menu items to the Applications menu on the pro/e interface and all was well. Since upgrading to 2001 pro/e loads then locks up, the only way to fix it seems to be to open the config.pro file and delete the protk.dat location line. I've tried countless combinations of CLASSPATH and path variations but to no avail.
I'm using jdk1.1.5 as this worked fine on 2000i2, does any one know if it works on 2001? Any suggestions at all would be appreciated.
 
Replies continue below

Recommended for you

I have extracted this from my own notes, references to paths are obviously for my own environment, yours will be different.

Jlink Runtime Requirements

1) Path


The path variable must include C:\jdk1.1.8\bin or the equivalent.


2) Classpath - Set in proe.bat


set CLASSPATH=%CLASSPATH%;d:\ptc\proe\text\java\cipjava.jar;d:\ptc\proe\text\java\pfc.jar;K:\PTC\toolkitapps\jparams\jparam.jar;K:\PTC\toolkitapps\jparams\swingall.jar



3) PRO_JAVA_COMMAND – set in Proe.bat

for jdk environment:-
set
PRO_JAVA_COMMAND=C:\jdk1.1.8\bin\java com.ptc.pfc.Implementation.Starter

or for run time environment:-
set
PRO_JAVA_COMMAND=C:\JavaSoft\JRE\1.1\bin\jre -cp %CLASSPATH% com.ptc.pfc.Implementation.Starter


Note to test the environment open a DOS window and set the CLASSPATH variable then run the command as specified by the PRO_JAVA_COMMAND setting. This should result in the help message being displayed by the ‘Starter’ function giving the correct syntax. Any other error means that the environment is not correctly configured.


Good Luck!
 
You can use JDK1.3.1 now in pro/engineer.

You must set the path and classpath as BryanM said.

It is easy to set up jdk. You must read the User Guide of J-Link first ,and there are many important information in it.
 
Thanks for the help guys. It's working again!!
 
I am unable to find jparam.jar which is mentioned by BryanM (Visitor) in the line:

2) Classpath - Set in proe.bat

set CLASSPATH=%CLASSPATH%;d:\ptc\proe\text\java\cipjava.jar;d:\ptc\proe\text\java\pfc.jar;K:\PTC\toolkitapps\jparams\jparam.jar;K:\PTC\toolkitapps\jparams\swingall.jar


Please a little more help is required. N P Singh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor