Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


JLink Samples Installation Problem

JLink Samples Installation Problem

JLink Samples Installation Problem

I'm having trouble running the JLink samples.

I'm running wildfire 2.0 on windows xp pro.

I've run the following command at the c: prompt

set classpath=.;C:\Program Files\proeWildfire 2.0\text\java\pfc.jar;%classpath%

without any messages

When  I try to run javac *.java from the samples folder it tells me that javac is not recognised as an internal or external command.

When I try to run C:\Program Files\Java\jdk1.5.0_03\bin\javac *.java i get the message 'c:\program' is not  recognised as an internal or external command.

When I go to the jdk1.5.0_03\bin folder and run javac c:\program files\proewildfire 2.0\jlink\jlink_appls\install_test\*.java I get the message 'invalid flag: C:program '.

What is going on?

Why won't it work?

RE: JLink Samples Installation Problem

Try reinstalling Pro/E to a folder without spaces in its name(i.e. c:\ptc\proewildfire2\...)

From the sounds of it, J-Link thinks the location string ends with the space.

I managed to make the demos work at our old office, and all of our Pro/E Installations were in folders like the one I stated above. We never really got into our own J-Link customization due to time constraints, though.

RE: JLink Samples Installation Problem

Sorry, forgot to include this...

I believe you also need to set a CLASSPATH environment variable that points it to the Java Runtime Environment as well. Unfortunately I don't have any documentation any more so I am strictly going on memory.

RE: JLink Samples Installation Problem

Thanks for the tip, I used the dir /x flag to show the short names (folder/file names without spaces) and used those.

The java files have now compiled but I still get an 'Installation failed' message?

RE: JLink Samples Installation Problem

If I use NetBeans to try and review the pfcInstallTest.java file it tells me that the package com.ptc.pfc.pfcSession does not exist.

RE: JLink Samples Installation Problem

It appears that I might not have a licence to run JLink as I'm only running an evaluation copy.

Does anyone know how I check to see if I have a licence to run JLink?

RE: JLink Samples Installation Problem

JLink doesn't work with Java JDK 1.5, you need 1.4.2

RE: JLink Samples Installation Problem

You don't need a license to compile and run jlink applications.  If you are using netbeans 4.1 then to add the package execute the following steps:
1.  Right click on your project and click properties.
2.  Click the 'Libraries' category.
3.  Click the 'Add JAR/Folder'.
4.  Browse to the pfc.jar (c:\ptc\pro\text\java\pfc.jar) and add it.
5.  Rebuild and the pfcSession should be defined.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close