On May 28, 9:26 am, Remco van 't Veer <[email protected]> wrote:
>
> Try giving the dx command a bit more memory by adding something like:
>
>   -Jmx1024m
>
> before --dex.
>
Unfortunately that didn't work quite so well. The java process ended
up using 1.4GB ram without terminating (waited approximately 10
minutes before I killed it).
I am using:
---------------------------------------------------------------
tho...@lisper:/$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

tho...@lisper:/$ uname -a
Linux lisper 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC
2010 x86_64 GNU/Linux

tho...@lisper:/$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"
--------------------------------------------------------------
The script I am using (hello-dalvik.sh):
--------------------------------------------------------------
#!/bin/sh

export ANDROID_DIR=/home/thomas/sources/android-sdk-linux_86
export CLOJURE_JAR=/home/thomas/sources/clojure/clojure.jar

set -e
rm -rf hello-dalvik; mkdir hello-dalvik; cd hello-dalvik

echo '(ns HelloDalvik (:gen-class)) (defn -main [] (println (str
"hello dalvik from clojure " (clojure-version))))' > HelloDalvik.clj
java -classpath $CLOJURE_JAR:. -Dclojure.compile.path=.
clojure.lang.Compile HelloDalvik

$ANDROID_DIR/platforms/android-8/tools/dx -Jmx1024m --dex --
output=classes.dex HelloDalvik*.class $CLOJURE_JAR
$ANDROID_DIR/platforms/android-8/tools/aapt add HelloDalvik.jar
classes.dex
jar uf HelloDalvik.jar -C ../src/clj clojure/version.properties
$ANDROID_DIR/tools/adb push HelloDalvik.jar /sdcard/

echo dalvikvm -classpath /sdcard/HelloDalvik.jar HelloDalvik \; exit |
$ANDROID_DIR/tools/adb shell
-------------------------------------------------------------
Anything wrong with my configuration?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to