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

Reply via email to