|
Re: Reading OS CLASSPATH from an Eclipse Plug-in ? [message #41281 is a reply to message #41186] |
Thu, 09 January 2003 13:32 |
Eclipse User |
|
|
|
Originally posted by: dwhitema.us.ibm.com
ask in eclipse.tools
"Alexandre Vermeerbergen" <ave@ds-fr.com> wrote in message
news:avjhme$1hu$1@rogue.oti.com...
> Hello,
>
> I need to read the OS / system CLASSPATH from an Eclipse Plug-in, so as to
> save needless user work to set the PATH for a Jar file that is already in
> system CLASSPATH (db2java.zip, if you mind, but it could be anything in
the
> system CLASSPATH).
>
> I have tried
> String classPath = System.getProperty("java.class.path");
>
> But it only returns Eclipse's internal classpath:
>
> Class path =
>
E:\eclipse21M3\eclipse\plugins\org.eclipse.pde.ui_2.1.0\laun cher\slimlaunche
> r.jar;E:\eclipse21M3\eclipse\plugins\org.eclipse.core.boot_2 .1.0\boot.jar
>
> And I do not want to force my users to launch Eclipse using a modified
> command line, such as with option -cp <...>.
>
> How could I do that without resorting to JNI ?
>
> Best regards,
>
> Alex.
>
>
>
>
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03608 seconds