[Fink-devel] Re: Fink init.csh broke classpath
http://lists.apple.com/mhonarc/java-dev/msg43140.html ( user archives pwd archives ) On 9-8-2004 21:56, Daniel Macks [EMAIL PROTECTED] wrote: I just committed a patch to the template for /sw/bin/init.csh: -setenv CLASSPATH `cat BASEPATH/share/java/classpath` +setenv CLASSPATH `cat BASEPATH/share/java/classpath`:. Could you please try that on your systems (with removal of other CLASSPATH hacking in your .cshrc aimed at solving this problem)? If that solves the problem, we can get this patched version released in a day or two. Or if this solution is deficient, please let me know so we can get it fixed. As I understood the java-dev thread, the problem to be solved was that calling init.csh was setting CLASSPATH when it was initially unset, and so classes/jars in . were not being found. Yes it seems to be. I got a little more time this morning. I tested a bit. Indeed if the environment variable CLASSPATH is unset, it has the same effect as if it set to .. This is distinctively different from having it set to . By examining your patch, this does indeed solve exactly this. You correctly fixed this line only. Also, I found that if share/java/classpath is empty, this is not a problem. Having the CLASSPATH set to :. is the same as having it set to .. Your patch is correct. Thank you! I have not been able to test the file completely, since I was not able to find which package installs the BASEPATH/share/java/classpath file. Sorry if I added some confusion by stating it didn't work for me. I had little time to investigate, and barely realised it was because I didn't have a problem in the first place. (I'm only the messenger here). You are correct not to include /Library/Java/Extensions. This was just an example to the poster on the java-dev list, not suggested as a fix for fink. Regards, Freek -- Never ask a man what kind of computer he owns. If it's a Mac, he'll tell you. If not, why embarrass him? --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Re: Fink init.csh broke classpath
Freek Dijkstra wrote: [] I have not been able to test the file completely, since I was not able to find which package installs the BASEPATH/share/java/classpath file. Every package that has a JarFiles field, for example findbugs xalan-j xerces-j db41 db42-java pilot-link9 fop ppower4 saxon -- Martin --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
[Fink-devel] Re: Fink init.csh broke classpath
Freek Dijkstra [EMAIL PROTECTED] said: On 06-08-2004 11:34, Luca Lutterotti wrote to [EMAIL PROTECTED]: I search in the archives not finding anything on the subject. So my problem is the following: - I have fink installed - I use the c-shell, so I have a .cshrc in my home in which fink put the source /sw/bin/init.csh - With this configuration if I run a java program from the command line (or launching it as a shell script that uses the terminal app) I always get a java.lang.NoClassDefFoundError; java does not find my jars/classes. (But if I run them as a packaged App, no problems). - If I remove from the .cshrc the infamous source /sw/bin/init.csh line everything is ok and java programs launch correctly. [...] if I remember correctly the java classpath on Mac is setup on the fly when you ran java [...] As Dan suggested, You can either unset the $CLASSPATH variable just after the source /sw/bin/init.csh line. Alternatively, you can manually set the $CLASSPATH just before that line to whatever Apple uses. Personally, I have set it to .:/Library/Java/Extensions. Yes, it sounds like we should be including those defaults if we do set CLASSPATH. A Bugs tracker item was just opened for it: http://sourceforge.net/tracker/index.php?func=detailaid=1005793group_id=17203atid=117203 dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
[Fink-devel] Re: Fink init.csh broke classpath
On 06-08-2004 11:34, Luca Lutterotti wrote to [EMAIL PROTECTED]: I search in the archives not finding anything on the subject. So my problem is the following: - I have fink installed - I use the c-shell, so I have a .cshrc in my home in which fink put the source /sw/bin/init.csh - With this configuration if I run a java program from the command line (or launching it as a shell script that uses the terminal app) I always get a java.lang.NoClassDefFoundError; java does not find my jars/classes. (But if I run them as a packaged App, no problems). - If I remove from the .cshrc the infamous source /sw/bin/init.csh line everything is ok and java programs launch correctly. [...] if I remember correctly the java classpath on Mac is setup on the fly when you ran java [...] As Dan suggested, You can either unset the $CLASSPATH variable just after the source /sw/bin/init.csh line. Alternatively, you can manually set the $CLASSPATH just before that line to whatever Apple uses. Personally, I have set it to .:/Library/Java/Extensions. Regardless of what you do, I strongly suggest to mail this issue to the fink-devel mailing list, [EMAIL PROTECTED] At least, it may be something which can be benefitial if it is put in their FAQ: Note that you can refer to your original message with this URL: http://lists.apple.com/mhonarc/java-dev/msg43140.html The archives can be accessed by using user archives pwd archives. Regards, Freek Dijkstra --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com ___ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel