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.

Proble in J-link examples

urnn

New member
I have following configuration for executing J-link sample example.When I try to execute sample example it gives me following error:-


"Startup of application "InstallTest" failed".


The configurations are as follow


1) Operating system:- Windows 2000


2)Proe :- ProeWildFire2.0


3)Java :- 1.4.02_9


4)Classpath :-


.;[path_to_swingall_archive] ;C:\j2sdk1.4.2_09\lib;C:\j2sdk1.4.2_09\bin;%cd%;".";D:\PTC\t ext\java\cipjava.jar;D:\PTC\text\java\pfc.jar;".";%classpath %;D:\PTC\text\java\swingall.jar


5)Path:-


C:\j2sdk1.4.2_09\bin; D:\PTC\text\java\com; D:\PTC\bin\proe.exe; C:\j2sdk1.4.2_09\bin; D:\PTC\i486_nt\obj\PRO_COMM_MSG_EXE;


6)jlink_java_command:- C:\j2sdk1.4.2_09\jre\bin;.


7)Lib:-D:\PTC\i486_nt\lib;C:\j2sdk1.4.2_09\lib;


8)PRO_COMM_MSG_EXE:- D:\PTC\i486_nt\obj\pro_comm_msg.exe


9)PRO_JAVA_COMMAND:- C:\j2sdk1.4.2_09\bin\java com.ptc.pfc.Implementation.Starter


If any one the reson of error, pl. help me.


Pl. try to solve my proble as early as possible.


Thanks in advance.
 
I will list my settings, to see if they jive with yours. Note, I
do not think you actually want "[path_to_swingall_archive]" in your
classpath. You probably read this in the J-Link guide, but you
already added it with the line "D:\PTC\text\java\swingall.jar".



Classpath:
.;C:\ptc\proe2001\text\java\pfc.jar;C:\ptc\pro e2001\text\java\cipjava.jar;C:\ptc\proe2001\apps\mfgapps\jav a\lib\swingall.jar;%CLASSPATH%



Path:

C:\ptc\proe2001\i486_nt\lib;C:\Program Files\Java\jdk1.5.0_04\bin;%PATH%



PRO_COMM_MSG_EXE

C:\ptc\proe2001\i486_nt\obj\pro_comm_msg.exe



PRO_JAVA_COMMAND

java com.ptc.pfc.Implementation.Starter



Hope this helps,

Jim
 
ThanksJim, for u r quick reply. I have tried according to u r settings. But still it is giving the same error called,


"Startup of application "InstallTest" failed".


Now what will be the problem?
 
I don't know if you did this, but it is in the readme file for the Install Test folder.





1. Rename the file AsyncInstallTest.java to AsyncInstallTest.java.old

There is a problem with this file for what you are doing and needs to
be renamed. Also, delete any AsyncInstallTest.class files in that
folder.





2. open a command prompt in the folder "install_test" and type:

(typically something like: C:\ptc\proe2001\jlink\jlink_appls\install_test)





javac *.java





This will compile the java files in to usable class files.





Can't think of anything else that could be wrong, aside from the protk.dat file eluded to by Patrick.





Later,


Jim
 
ThanksMr. Patrickand Jim.


My protk.dat file configurations are as follow :-


name InstallTest
startup java
java_app_class StartInstallTest
java_app_start start
java_app_stop stop
java_app_classpathD:/PTC/jlink/jlink_appls/install_tes t
allow_stop true
delay_start false
text_dir D:/PTC/jlink/jlink_appls/install_test/text
end


This location of file is under d:\ptc\bin.


There isone more problem , on my machine, ptc\text\java\cipjava.jar file is missing. I havecopied thisfromproe2001 on other machine.But still it is not working.Is this ok or from where I can take the coorectcipjava.jar file?


Thanks,


urnn
 
Here is my protk.dat for the install_test



name InstallTest

startup java

java_app_class StartInstallTest

java_app_start start

java_app_stop stop

allow_stop true

delay_start false

end



Note, this should already be in your install_test folder. If it
is not, try copying the above to a plain text file and name it
protk.dat and save it to the install_test folder.



I also don't think you need these lines:

java_app_classpathD:/PTC/jlink/jlink_appls/install_tes t

text_dir D:/PTC/jlink/jlink_appls/install_test/text



I don't see a problem with copying the cipjava.jar file from another
computer. I do think it should be the same version and build of
Pro/E though.



You might also want to reinstall your version of Pro/E. This might put the files where they need to be.



Finally, you should double check all files in your path and classpath
variables. Make sure each file you point to exists. Also,
each files should be seperated by a ";" semicolon. This could
cause a problem and be easy to overlook.



Hope this helps. Sometimes it seems like a mystery on how to
actually implement this. If in doubt, call 877-ASK-4PTC (in EU -
00-800-78-24-43-57). Might as well use the maintenance you pay
for. $$$
smiley30.gif
$$$



Later,

Jim
 
hi guys,


if you are using proe 2001 follow these procedure:


install following softwares Pro E 2001 , java 1.1.8 while installing foldernames should not have any spaces.


Procedure
1. Set the PATH environment variable to include:
o the <Java SDK loadpoint>\bin directory
o the <Pro/ENGINEER loadpoint>\<machine type>\lib directory.
2. Set the CLASSPATH environment variable to include:
o the current working directory (as defined by the standard "." abbreviation)
o the <Pro/ENGINEER load point>\text\java\pfc.jar file
o the <Pro/ENGINEER load point>\text\java\cipjava.jar file
o the complete path to any directories that contain required .class files
(NOTE: This path is not required for .class files that exist in the current working directory.)
o the complete path to any required .jar files
(NOTE: Paths to .jar files are always required regardless if they are in the current working directory, except for .jar files used with model programs. The paths to these .jar files are set via the Model Programs dialog box opened via #Program #J-Link within Pro/ENGINEER.)
o the complete path to the swingall.jar file
(this last path is optional and only necessary if using Swing components)
o NOTE: The CLASSPATH environment variable cannot include any spaces. For example: d:\Program Files\JDK1.1.8\lib\classes.zip is not allowed. Reinstall the Java SDK to a more appropriate location if necessary.
2. Set the PRO_JAVA_COMMAND environment variable to:
o <Java SDK loadpoint>\bin\java com.ptc.pfc.Implementation.Starter
3. The J-Link environment is now configured. To test the configuration, perform the J-Link install test.





if you are using Proe wildfire 2.0


install the following software, proe wf2.0 java 1.4.2


follow the procedure as attached


2006-03-01_002701_Starting_up_of_J_Link.zip


if you have any probs send me mail to [email protected] my mail server will not accept mails from yahoo and rediff and all send mail from company ids


christo thomas


+91 9886810293
 

Sponsor

Articles From 3DCAD World

Back
Top