tag:blogger.com,1999:blog-8781383461061929571.post698934957653937589..comments2024-03-14T09:08:19.035-04:00Comments on OR in an OB World: CP Optimizer, Java and NetBeansPaul A. Rubinhttp://www.blogger.com/profile/05801891157261357482noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8781383461061929571.post-48742549234435860312014-04-29T08:13:14.441-04:002014-04-29T08:13:14.441-04:00Thanks for this really great post
http://www.imesh...Thanks for this really great post<br />http://www.imeshlab.com/Core-Java.IMAnonymoushttps://www.blogger.com/profile/14008955959624815088noreply@blogger.comtag:blogger.com,1999:blog-8781383461061929571.post-67910164848361565032014-03-19T03:43:36.408-04:002014-03-19T03:43:36.408-04:00Paul,
do you start Netbeans from a shell or from ...Paul,<br /><br />do you start Netbeans from a shell or from some menu?<br /><br />If you start it from a shell, this is strange. You could try to set some variable FOO=BAR in .profile and check whether it actually exists in the shell.<br /><br />Best regards,<br />ThomasThomas Opferhttps://www.blogger.com/profile/01379302702721609320noreply@blogger.comtag:blogger.com,1999:blog-8781383461061929571.post-43948979780690541232014-03-17T15:19:50.340-04:002014-03-17T15:19:50.340-04:00Thomas,
I think you are correct about .bash_profi...Thomas,<br /><br />I think you are correct about .bash_profile, but I don't have one (just .bashrc). I'm pretty sure .profile is executed, because it adds things to MANPATH, INFOPATH and PATH that I find when I printenv in a shell. So I'm not sure why LD_LIBRARY_PATH didn't work there.<br /><br />Thanks,<br />PaulPaul A. Rubinhttps://www.blogger.com/profile/05801891157261357482noreply@blogger.comtag:blogger.com,1999:blog-8781383461061929571.post-73381881781245382072014-03-16T11:09:39.382-04:002014-03-16T11:09:39.382-04:00Paul,
hmm, this might have different reasons, dep...Paul,<br /><br />hmm, this might have different reasons, depending on the distribution, window manager, etc.<br /><br />If you have a .bash_profile, .profile is not executed if I remember correctly.<br /><br />Maybe, your window manager does not execute .profile at all. One other hint might be /etc/profile or /etc/profile.d/, where you can put system-wide environment variables (this might also be distribution-dependant).<br /><br />Best regards,<br />ThomasThomas Opferhttps://www.blogger.com/profile/01379302702721609320noreply@blogger.comtag:blogger.com,1999:blog-8781383461061929571.post-60216303713558540452014-03-16T10:02:20.579-04:002014-03-16T10:02:20.579-04:00Thomas,
Thanks for the tip. I tried moving the li...Thomas,<br /><br />Thanks for the tip. I tried moving the lines to .profile (and commenting them out of both .bashrc and netbeans.conf), but after a reboot neither NetBeans nor a terminal could find LD_LIBRARY_PATH. I've run into this before: a few years ago, when IBM was still using license files for the academic version of CPLEX, I put the path to the license file in .profile, but also had to put it in netbeans.conf.<br /><br />One thing I do not understand is why LD_LIBRARY_PATH in .profile did not show up when I ran printenv in a terminal. At any rate, I'm back to using both .bashrc and netbeans.conf for now, but it would have been preferable to have a single file (.profile) to edit whenever the library path changes.<br /><br />Cheers,<br />PaulPaul A. Rubinhttps://www.blogger.com/profile/05801891157261357482noreply@blogger.comtag:blogger.com,1999:blog-8781383461061929571.post-65559921389318519692014-03-15T04:53:58.646-04:002014-03-15T04:53:58.646-04:00Paul,
LD_LIBRARY_PATH is an environment variable ...Paul,<br /><br />LD_LIBRARY_PATH is an environment variable that states where shared objects can be found at runtime. (On Windows, PATH shoud be sufficient.) So, maybe Netbeans provides a way to set environment variables.<br /><br />Instead of .bashrc, it might be better to use .profile (might be depending on the window manager you use, etc.) to set it globally, then you should not need to set it in Netbeans (after reboot/relogin).<br /><br />Best regards,<br />ThomasThomas Opferhttps://www.blogger.com/profile/01379302702721609320noreply@blogger.com