Skip to main content
10-Marble
January 27, 2011
Question

Properties...

  • January 27, 2011
  • 3 replies
  • 1174 views
Hey, folks,



When you start up JLink, do y'all use any initialization files? If so,
where do you store those? Just in the users' home directory? Install
path? Other path? I'm trying to figure out the best way to read in an
initialization file, but keep it generic enough to not put in paths into
the code.



Thoughts?

Brian Krieger

Peterbilt Motors

3 replies

10-Marble
January 28, 2011
Brian,
This might not answer your question directly, but could give you some
alternative ideas for initialization.
I have made a class called constants.java and made that available as a jar
library. It contains methods that returns offen used information in a
Pro/E environment like working dir, linked to Windchill status, test or
production environment, etc.
This jar just has to be in the classpath and can then be reused in any
J-Link application. If hardcode places changes I just have to change them
in this code and replace the jar library.
/Bjarne



Brian Krieger <->
27-01-2011 19:04
Please respond to
Brian Krieger <->


To
<->
cc

Subject
[proecus] - Properties...






Hey, folks,

When you start up JLink, do y’all use any initialization files? If so,
where do you store those? Just in the users’ home directory? Install
path? Other path? I’m trying to figure out the best way to read in an
initialization file, but keep it generic enough to not put in paths into
the code.

Thoughts?
Brian Krieger
Peterbilt Motors

Site Links: View post online View mailing list online Send new post
via email Unsubscribe from this mailing list Manage your subscription
Use of this email content is governed by the terms of service at:
1-Visitor
January 28, 2011

Hi Brian,

I normally read Windows systemvariables with the path to the ini files, so I can set them in the startup script of Pro/E.

Michael Holzwarth
Deere & Company

10-Marble
January 28, 2011
Great suggestions, folks! What I was specifically looking for was first
in from Gary Hoffman (and Michael from Deere, too!):



For user specific preferences we read/write files in the user's home
directory and use System.getProperty("user.home").



Using a class to store all of those values, etc. is a good idea, too,
thanks all!



A simple solution to my problem (I'm still just learning). Thanks
y'all!



BK