Did pydev overwrite java's CLASSPATH?

View: New views
5 Messages — Rating Filter:   Alert me  

Did pydev overwrite java's CLASSPATH?

by Jurgen F. Doreleijers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem arose a week ago after updating to pydev extensions 1.4.7.2843

When I execute the following in Eclipse thru pydev

os.environ['CLASSPATH']

'/Applications/eclipse34/plugins/org.python.pydev_1.4.7.2843/PySrc/pydev_sitecustomize:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages:/Users/jd/workspace34/testPython/src:/Applications/YASARA.app/yasara/plg:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Numeric:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PyObjC:/Users/jd/workspace34/ccpn/python:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac:/Users/jd/workspace34/cing/python:/Applications/YASARA.app/yasara/pym:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip:/Users/jd/workspace34/wattos/python:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PIL:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages:/Users/jd/workspace34/recoord/python:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5:/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload'

The output shows items I would have expected for the python path not the Java CLASSPATH.

I startup Eclipse from the commandline with the following CLASSPATH I expect to have been maintained.
/Users/jd/workspace34/wattos/build:/Users/jd/workspace34/wattos/lib/ant-contrib.jar:/Users/jd/workspace34/wattos/lib/colt.jar:/Users/jd/workspace34/wattos/lib/CSVutils.jar:/Users/jd/workspace34/wattos/lib/jakarta-regexp.jar:/Users/jd/workspace34/wattos/lib/javacc.jar:/Users/jd/workspace34/wattos/lib/JFlex.jar:/Users/jd/workspace34/wattos/lib/printf_hb15.jar:/Users/jd/workspace34/wattos/lib/mysql-connector-java-5.0.3-bin.jar:/Users/jd/workspace34/wattos/lib/starlibj_with_source.jar:/Users/jd/workspace34/wattos/lib/swing-layout-1.0.jar:/Users/jd/workspace34/wattos/lib/jfreechart-1.0.1.jar:/Users/jd/workspace34/wattos/lib/jcommon-1.0.0.jar:/Users/jd/workspace34/wattos/lib/gnujaxp.jar:/Users/jd/workspace34/wattos/lib/itext-1.4.jar:/Users/jd/workspace34/wattos/lib/junit-3.8.1.jar

I've checked my settings and even created a new pydev eclipse project with the same result.

Any ideas? Did I screw up my Eclipse install?
--
Jurgen F. Doreleijers
Centre for Molecular & Biomolecular Informatics, NCMLS &
Protein Biophysics, Institute for Molecules & Materials
Radboud University of Nijmegen
Visitors: NCMLS Research building, room 0.25, Geert-Grooteplein 26-28, 6525 GA Nijmegen, The Netherlands
Mail: Protein Biophysics 260, PO Box 9101, 6500 HB Nijmegen, The Netherlands        
Tel: +31 24 3619674


------------------------------------------------------------------------------

_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

Re: Did pydev overwrite java's CLASSPATH?

by Jurgen F. Doreleijers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just made a separate install of Eclipse 3.5 with pydev and found no improvement:

>>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version))
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
2.5.4 (r254:67916, Jun 25 2009, 13:54:39)
[GCC 4.0.1 (Apple Inc. build 5484)]
>>> import os
>>> os.environ['CLASSPATH']
'/Applications/eclipse35/plugins/org.python.pydev_1.4.7.2843/PySrc/pydev_sitecustomize:/Users/jd/workspace35/cing/python:/opt/l

Using fink's instead of macports python interpreter 2.5 .... didn't
solve it either.

Any other ideas?

------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

Re: Did pydev overwrite java's CLASSPATH?

by Fabio Zadrozny-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jurgen,

> The problem arose a week ago after updating to pydev extensions 1.4.7.2843
> When I execute the following in Eclipse thru pydev
>
> os.environ['CLASSPATH']
>
> ...
>
> The output shows items I would have expected for the python path not the
> Java CLASSPATH.
>
> ...
>
> I've checked my settings and even created a new pydev eclipse project with
> the same result.
>
> Any ideas? Did I screw up my Eclipse install?

I've just taken a look at the code and it seems it's a bug...

In Jython, Pydev is expected to set the CLASSPATH to be the same as
the PYTHONPATH, because you have to add the jars you're using to your
PYTHONPATH.

You can do that for each project or you can add those jars directly to
the jython interpreter (if they should be used by all your projects),
but it seems that incidentally it's set not only in Jython, but also
in Python runs (I'll try to fix that for the next nightly build --
meanwhile, I think that you can force CLASSPATH to be what you want in
your run configuration).

Cheers,

Fabio

------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

Re: Did pydev overwrite java's CLASSPATH?

by Fabio Zadrozny-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, it should be fixed for 1.4.8 (svn: 2856) -- see:
http://pydev.blogspot.com/2009/02/pydev-nightly-builds.html on details
on how to get it when the next nightly build comes out.

Cheers,

Fabio

On Thu, Jul 23, 2009 at 10:04 AM, Jurgen F.
Doreleijers<jurgenfd@...> wrote:

> Just made a separate install of Eclipse 3.5 with pydev and found no improvement:
>
>>>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version))
> /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
> 2.5.4 (r254:67916, Jun 25 2009, 13:54:39)
> [GCC 4.0.1 (Apple Inc. build 5484)]
>>>> import os
>>>> os.environ['CLASSPATH']
> '/Applications/eclipse35/plugins/org.python.pydev_1.4.7.2843/PySrc/pydev_sitecustomize:/Users/jd/workspace35/cing/python:/opt/l
>
> Using fink's instead of macports python interpreter 2.5 .... didn't
> solve it either.
>
> Any other ideas?
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Pydev-users mailing list
> Pydev-users@...
> https://lists.sourceforge.net/lists/listinfo/pydev-users
>

------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

Re: Did pydev overwrite java's CLASSPATH?

by Jurgen F. Doreleijers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Fabio, the latest revision doesn't have this issue anymore for me either.
Cheers,
Jurgen

On Thu, Jul 23, 2009 at 9:17 AM, Fabio Zadrozny<fabiofz@...> wrote:

> Hi Jurgen,
>
>> The problem arose a week ago after updating to pydev extensions 1.4.7.2843
>> When I execute the following in Eclipse thru pydev
>>
>> os.environ['CLASSPATH']
>>
>> ...
>>
>> The output shows items I would have expected for the python path not the
>> Java CLASSPATH.
>>
>> ...
>>
>> I've checked my settings and even created a new pydev eclipse project with
>> the same result.
>>
>> Any ideas? Did I screw up my Eclipse install?
>
> I've just taken a look at the code and it seems it's a bug...
>
> In Jython, Pydev is expected to set the CLASSPATH to be the same as
> the PYTHONPATH, because you have to add the jars you're using to your
> PYTHONPATH.
>
> You can do that for each project or you can add those jars directly to
> the jython interpreter (if they should be used by all your projects),
> but it seems that incidentally it's set not only in Jython, but also
> in Python runs (I'll try to fix that for the next nightly build --
> meanwhile, I think that you can force CLASSPATH to be what you want in
> your run configuration).
>
> Cheers,
>
> Fabio
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Pydev-users mailing list
> Pydev-users@...
> https://lists.sourceforge.net/lists/listinfo/pydev-users
>



--
Jurgen F. Doreleijers
Centre for Molecular & Biomolecular Informatics, NCMLS &
Protein Biophysics, Institute for Molecules & Materials
Radboud University of Nijmegen
Visitors: NCMLS Research building, room 0.25, Geert-Grooteplein 26-28,
6525 GA Nijmegen, The Netherlands
Mail: Protein Biophysics 260, PO Box 9101, 6500 HB Nijmegen, The
Netherlands
Tel: +31 24 3619674

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users