FS#27341 - [gnustep-make] prevents Java class files from running

Attached to Project: Community Packages
Opened by Andrew Gunnerson (chenxiaolong) - Wednesday, 30 November 2011, 06:55 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 16 April 2012, 16:10 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

GNUStep includes an /etc/profile.d/GNUStep.sh which alters the CLASSPATH variable in a way that java .class files in the current directory refuse to run anymore.


Additional info:
* package version(s)

All

* config and/or log files etc.

/etc/profile.d/GNUStep.sh
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 16 April 2012, 16:10 GMT
Reason for closing:  Not a bug
Comment by Sergej Pupykin (sergej) - Monday, 16 April 2012, 13:34 GMT
GNUStep.sh should append its pathes to head of CLASSPATH variable.

Please check if it overwrites your CLASSPATH.
Comment by Andrew Gunnerson (chenxiaolong) - Monday, 16 April 2012, 16:06 GMT
You are correct in that paths are appended to CLASSPATH variable. The problem is, by default, java searches a certain group of paths (including . ) if CLASSPATH is empty. When GNUStep alters the CLASSPATH variable, those paths aren't searched anymore.
Comment by Sergej Pupykin (sergej) - Monday, 16 April 2012, 16:09 GMT
I think solution is something like

export CLASSPATH=$CLASSPATH:.

in your ~/.bashrc or removing gnustep-make.

Adding current directory into gnustep.sh is bad idea I think.

Loading...