Home Download Buy Blog Forum Support

Java CLASSPATH

Java CLASSPATH

Postby apx on Tue Mar 01, 2011 7:29 am

Is there a way to modify the java classpath in sublime text? I have appended a location to my .bashrc file. It all compiles fine in a terminal.

Using Ubuntu 10.10 with Build 2032 of Sublime Text 2.
apx
 
Posts: 1
Joined: Tue Mar 01, 2011 7:26 am

Re: Java CLASSPATH

Postby jps on Tue Mar 01, 2011 10:21 am

.bashrc is read by bash only, so unless you've started Sublime Text 2 from bash, the variable won't be seen.

If you set the variable in .profile instead, then it should get picked up by the Display Manager, and thus inherited by Sublime Text 2 when it's started. Take a look at http://help.ubuntu.com/community/EnvironmentVariables for more information.

You can check (and set, too) the values of the env vars from within Sublime Text 2 by using os.environ in the console:

Code: Select all
import os
os.environ
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 20 guests