Re: [JXTA discuss] [ext.config] JXTA_HOME trouble

James Todd <[email protected]> Tue, 21 Feb 2006 10:01:02 -0800
Newsgroups gmane.comp.java.jxta.general
Message-ID <[email protected]>
While working on ext:config issue #1453 I believe we should be able to 
support relative JXTA_HOME
URIs.

I've been burned by this one as well.

hth,

- james

--

James Todd :: blogs.sun.com/gonzo | weblogs.java.net/blog/gonzo

MyJXTA :: use it - learn it - do it

Java == platform independence
XML  == application independence
JXTA == network independence

Secure End-to-End Computing



Michele Amoretti wrote:

>Hello,
>
>I am trying to use the auto-conf with jxta 2.3.6. I have a problem, since I 
>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.
>
>.........
>
>	URI jh = null;
> 
>	try {
>	    jh = new URI("file:///path/to/.jxta");
>	} 
>	catch (URISyntaxException use) {
>	    use.printStackTrace();
>	}
>
>        c = new Configurator(jh, peerProfile);
>
>........
>
>Now, how can tell the URI that .jxta is in the local folder (i.e., in .)?
>
>I tried with jh = new URI("file:///./.jxta"); and so on, but nothing seems to 
>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 
>~/.jxta, which is absolutely ugly! I do not understand why, with 2.3.6 
>release, the default behaviour did changed...
>
>
>Thank you
>
>  
>