Thread: Make CLASSPATH persistent in Ubuntu
hi all. noticed turning computer off removes classpath variable set, i.e., on next session, running java programs importing non native apis throws classnotfoundexceptions. i'm following instructions jdbc mysql connector documentation:
how make setting "persistent", i.e., remains if turn computer off? (doing while in su doesn't as, exiting su, library unavailable non-su users).code:export set classpath=/usr/import/jdbc-mysql-connector.jar:$classpath
thanks!
putting export line in ~/.bashrc of user needs extended classpath should trick.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Make CLASSPATH persistent in Ubuntu
Ubuntu
Comments
Post a Comment