[Android Software Development] sixgunmojo:
I'm probably making a noob/idiot mistake but I'm stuck at trying to get an apk to recompile. I'm just trying to make sure I have the basics down and everthing is working before I get into anything really fun. Basic info is:

Mint Linux, Apktool2 beta7, Java 7, latest Android SDK istalled.

I have run the command "apktool if" (no quotes) on both my framework-res.apk and twframework-res.apk (I think this Samsung's framework).

I then run "apktool d SystemUI.apk" and the apk decompile with no errorrs and creates a folder named SystemUI. I then type, without changing anything, "apktool b SystemUI" and get the following errors

: Using Apktool 2.0.0-Beta7 on SystemUI

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_1262117421041899345.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-L710VPUDND8, -F, /tmp/APKTOOL5533513859846743489.tmp, -0, arsc, -I, /home/sixgunmojo/apktool/framework/1.apk, -S, /home/sixgunmojo/phonedev/apkmod/SystemUI/res, -M, /home/sixgunmojo/phonedev/apkmod/SystemUI/AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)

at brut.androlib.Androlib.buildResources(Androlib.java:362)

at brut.androlib.Androlib.build(Androlib.java:285)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:233)

at brut.apktool.Main.main(Main.java:88)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_1262117421041899345.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-L710VPUDND8, -F, /tmp/APKTOOL5533513859846743489.tmp, -0, arsc, -I, /home/sixgunmojo/apktool/framework/1.apk, -S, /home/sixgunmojo/phonedev/apkmod/SystemUI/res, -M, /home/sixgunmojo/phonedev/apkmod/SystemUI/AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_1262117421041899345.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-L710VPUDND8, -F, /tmp/APKTOOL5533513859846743489.tmp, -0, arsc, -I, /home/sixgunmojo/apktool/framework/1.apk, -S, /home/sixgunmojo/phonedev/apkmod/SystemUI/res, -M, /home/sixgunmojo/phonedev/apkmod/SystemUI/AndroidManifest.xml]

at brut.util.OS.exec(OS.java:93)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:475)

... 6 more

Caused by: java.io.IOException: Cannot run program "/tmp/brut_util_Jar_1262117421041899345.tmp": error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)

at java.lang.Runtime.exec(Runtime.java:617)

at java.lang.Runtime.exec(Runtime.java:485)

at brut.util.OS.exec(OS.java:84)

... 7 more

Caused by: java.io.IOException: error=2, No such file or directory

at java.lang.UNIXProcess.forkAndExec(Native Method)

at java.lang.UNIXProcess.<init>(UNIXProcess.java:186)

at java.lang.ProcessImpl.start(ProcessImpl.java:130)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)

... 10 more

I have been beating my head against this wall for 2 days now. Things I have tried:

3 or 4 different versions of Apktool - any thing prior to Apktool2 rc7 gives me "can't find aapt" errors, even when I'm looking right at it.

Run Apktool with sudo and as root.

Run Apktool from inside the created SystemUI folder - saw it in a Youtube video

Changed Linux distros.

The error message is basicly the same no matter what I do. Am I using Apktool correctly to recompile? If I am any help that can point me in the right direction would be greatly appreciated