[JXTA discuss] [ext.config] JXTA_HOME trouble

Michele Amoretti <[email protected]> Tue, 21 Feb 2006 14:38:22 +0100
Newsgroups gmane.comp.java.jxta.general
Message-ID <[email protected]>
Hello,

I am trying to use the auto-conf with jxta 2.3.6. I have a problem, since I=
=20
want to create several folders, each one with its .jxta/config.properties.
I have to pass the "/path/to/.jxta" to the Configurator constructor, i.e.

=2E........

	URI jh =3D null;
=20
	try {
	    jh =3D new URI("file:///path/to/.jxta");
	}=20
	catch (URISyntaxException use) {
	    use.printStackTrace();
	}

        c =3D new Configurator(jh, peerProfile);

=2E.......

Now, how can tell the URI that .jxta is in the local folder (i.e., in .)?

I tried with jh =3D new URI("file:///./.jxta"); and so on, but nothing seem=
s to=20
work. And I do not want to set an absolute path...


p.s. if I do not declare the path to .jxta, the platform uses by default=20
~/.jxta, which is absolutely ugly! I do not understand why, with 2.3.6=20
release, the default behaviour did changed...


Thank you

=2D-=20
Michele Amoretti, Ph.D. Student
Distributed Systems Group
Dip. di Ingegneria dell'Informazione, Universit=E0 degli Studi di Parma
Parco Area delle Scienze, 181A I-43100 Parma Italy
Phone: +39-(0521)-906147  Fax: +39-(0521)-905723

Home page:
http://dsg.ce.unipr.it/People/amoretti/Amoretti.html