Failure to find ptII.properties

Failure to find ptII.properties

Post by krulan » Sun, 12 Feb 2006 03:07:40


Hi all.

I'm curious about the ptII.properties file loaded from $CLASSPATH/lib/.
I looked at the one generated for my laptop and it is a bunch of paths
to various system things. The problems its causing me is on startup if
it cannot be found, I'm notified with:

java.io.IOException: Could not find $CLASSPATH/lib/ptII.properties

This is a little unsightly especially since ptexecute and vergil (from
Kepler's configuration) still appear to work correctly.

Is it possible that kepler does not need these properties set at all,
and if not, is there a way for us to quite down the startup.

Thanks much.

Kevin

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
 
 
 

Failure to find ptII.properties

Post by cxh » Sun, 12 Feb 2006 04:32:46

Hi Kevin,

ptII.properties is created by running configure which reads in
lib/ptII.properties.in and substitutes in values like the location
of the TinyOS directory. Viptos, which is an interface to TinyOS
needs configure-time information, so rather than passing the variables
as Java properties, which makes it difficult to run Eclipse etc.,
we create a properties file that gets read in at start up time.

Note that these are not user preferences, they are configure-time
properties.

If ptII.properties was missing, you would probably only notice a
problem if you were running Viptos.

In principle, I could modify the configuration so that we would only
print a message if we really needed that file. However, this is
difficult because the place we are reading it
(MoMLApplication._createDefaultConfiguration()) has not yet read in
the configuration.

Instead, I commented out the println and left a FIXME that we should log
this message.

BTW - when Vergil or Kepler is run from an installer as an application
then standard out and standard error will be eaten because there is no
standard out. We do have a certain amount of verbiage going on
though. It should all go in to a log file somewhere.

_Christopher

--------

Hi all.

I'm curious about the ptII.properties file loaded from $CLASSPATH/lib/.
I looked at the one generated for my laptop and it is a bunch of paths
to various system things. The problems its causing me is on startup if
it cannot be found, I'm notified with:

java.io.IOException: Could not find $CLASSPATH/lib/ptII.properties

This is a little unsightly especially since ptexecute and vergil (from
Kepler's configuration) still appear to work correctly.

Is it possible that kepler does not need these properties set at all,
and if not, is there a way for us to quite down the startup.

Thanks much.

Kevin

---------------------------------------------------------------------------
-
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM