Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » strange behavior of JavaCore.getClasspathVariable() in 3.0RC1
strange behavior of JavaCore.getClasspathVariable() in 3.0RC1 [message #248653] Thu, 03 June 2004 00:12 Go to next message
Eclipse UserFriend
Originally posted by: ximor_iksivich.lycos.co.uk

Hi,
I am using the JavaCore.getClasspathVariable("JRE_LIB") function in my
plugin to get the classpath entry of the jre classlibrary. This was
working fine in eclipse 3.0 M8. However in 3.0RC1 it is giving strange
errors. When I use the run-time workbench and invoke the menu that carries
this action, sometimes I am getting null as the return value and sometimes
it returns the proper value. I am unable to get hold of the cause as it
seems unpredictable. Anyone got any ideas as to why this might happen in
this version?

The java doc for the function says that it returns null if it can't bind
the variable name but then it should do that at all times and not as it
wishes. I am grateful for any help.

Thanks,
Ximor.
Re: strange behavior of JavaCore.getClasspathVariable() in 3.0RC1 [message #248720 is a reply to message #248653] Thu, 03 June 2004 05:55 Go to previous message
Eclipse UserFriend
I would try to find out who binds this variable (by putting a breakpoint in
JavaCore.setClasspathVariables(...)) in the case it is bound.

Jerome

"ximor" <ximor_iksivich@lycos.co.uk> wrote in message
news:c9m8f2$ukc$1@eclipse.org...
> Hi,
> I am using the JavaCore.getClasspathVariable("JRE_LIB") function in my
> plugin to get the classpath entry of the jre classlibrary. This was
> working fine in eclipse 3.0 M8. However in 3.0RC1 it is giving strange
> errors. When I use the run-time workbench and invoke the menu that carries
> this action, sometimes I am getting null as the return value and sometimes
> it returns the proper value. I am unable to get hold of the cause as it
> seems unpredictable. Anyone got any ideas as to why this might happen in
> this version?
>
> The java doc for the function says that it returns null if it can't bind
> the variable name but then it should do that at all times and not as it
> wishes. I am grateful for any help.
>
> Thanks,
> Ximor.
>
Previous Topic:XML Editor such as for plugin.xml
Next Topic:CVS merge - Root Version Tag
Goto Forum:
  


Current Time: Wed May 07 11:38:50 EDT 2025

Powered by FUDForum. Page generated in 0.04230 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top