Date sent:              Wed, 06 Aug 2008 11:25:23 -0700 (PDT)
From:                   wskent <[EMAIL PROTECTED]>
Subject:                Re: Tomcat 6 classpath issue
To:                     users@tomcat.apache.org
Send reply to:          Tomcat Users List <users@tomcat.apache.org>

> 
> I looked at the Tomcat HowTo, so what do I use in place of
> "System.getProperty("java.class.path",".");"
> 

Try this:


ClassLoader sysClassLoader = getClass().getClassLoader();

        URL[] urls = ((URLClassLoader)sysClassLoader).getURLs();

        for(int i=0; i< urls.length; i++)
        {
            out.println(urls[i].getFile() + "<br>\n");
        }       




-Steve O.




> Ageed on not including the 2.4 jar!
> -- 
> View this message in context:
> http://www.nabble.com/Tomcat-6-classpath-issue-tp18853872p18856933.htm
> l Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED] For additional commands,
> e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to