Skip to content

Instantly share code, notes, and snippets.

@ch1ago
Created July 24, 2012 23:20
Show Gist options
  • Save ch1ago/3173321 to your computer and use it in GitHub Desktop.
Save ch1ago/3173321 to your computer and use it in GitHub Desktop.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
JAVA_HOME=/usr/lib/jvm/jdk1.6.0_33/bin
export JAVA_HOME
PATH=$PATH:$JAVA_HOME # Add JDK to PATH for scripting
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
.
...
$ echo $JAVA_HOME
/usr/lib/jvm/jdk1.6.0_33/bin
$ echo $PATH
/home/user/.rvm/gems/ruby-1.9.3-p194/bin:
/home/user/.rvm/gems/ruby-1.9.3-p194@global/bin:
/home/user/.rvm/rubies/ruby-1.9.3-194/bin:/home/user/.rvm/bin:
/usr/local/sbin:/usr/local/bin:
/usr/sbin:/usr/bin:/sbin:/bin:
/usr/games:/usr/lib/jvm/jdk1.6.0_33/bin:
/home/user/.rvm/bin
(I added enter to be easier to read)
java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b04)
Java HotSpot(TM) Server VM (build 20.8-b03, mixed mode)
Hey, can you please help me run my Ti on Ubuntu?
I'm pressing CTRL+F11, and I open the Android Emulator without any problem,
and the Dashboard tab does NOT mark Configure in red.
as of the app
I'm hitting tiapp.xml with "Install To Android Device"
then I get the following message in the log
[INFO] logfile = /home/user/Titanium_Studio_Workspace/yakko2/build.log
[DEBUG] /home/user/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py install yakko2 /home/user/programs/android-sdk-linux /home/user/Titanium_Studio_Workspace/yakko2 me.yakko.yakko2 4
[TRACE] app property, ti.ui.defaultunit : system
[ERROR] Missing Java SDK. Please make sure Java SDK is on your PATH (exception: [Errno 2] No such file or directory)
I tried everything, even restarting my computer.
it's like it doesn't run my .bashrc file to add the $PATH
I'm not running anything as root.
what should I do?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment