I replaced my JAVA_HOME with that and ran ant.
Here’s the result:
Buildfile: build.xml does not exist!
Build failed
I guess I’ll try downloading a Github version UE4 and install the latest TADP from nvidia…
I replaced my JAVA_HOME with that and ran ant.
Here’s the result:
Buildfile: build.xml does not exist!
Build failed
I guess I’ll try downloading a Github version UE4 and install the latest TADP from nvidia…
And here’s the build result:
MainFrameActions: Packaging (Android (All)): Error: JAVA_HOME is not defined correctly.
MainFrameActions: Packaging (Android (All)): We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java
It seems no matter what I do to my JAVA_HOME, it’s always returning the same error with the same path… I doubt this is right…
Ok, try this: open terminal and type:
export JAVA_HOME=$(/usr//java_home)
ant
copy the output here
Wait, this message is correct, just include
export JAVA_HOME=$(/usr//java_home)
in your .bash_profile, log out from your account and back in, open a terminal, and type: export
Please copy the output here
See my comment above. Put it in .bash_profile, log out, log in, print here “export” output
ok, try packaging now?
declare -x ANDROID_HOME=“/Users/vito0719/NVPACK/android-sdk-macosx”
declare -x ANT_HOME=“/Users/vito0719/NVPACK/apache-ant-1.8.2”
declare -x Apple_PubSub_Socket_Render=“/private/tmp/com.apple.launchd.zxRzcklsV0/Render”
declare -x GRADLE_HOME=“/Users/vito0719/NVPACK/gradle-2.1”
declare -x HOME=“/Users/vito0719”
declare -x JAVA_HOME=“/Library/Java/JavaVirtualMachines/jdk1.7.0_76.jdk/Contents/Home”
declare -x LANG=“zh_CN.UTF-8”
declare -x LOGNAME=“vito0719”
declare -x NDKROOT=“/Users/vito0719/NVPACK/android-ndk-r10c”
declare -x NDK_ROOT=“/Users/vito0719/NVPACK/android-ndk-r10c”
declare -x NDK_STANDALONE_46_ANDROID9=“/Users/vito0719/NVPACK/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/gen_standalone/darwin-x86”
declare -x NVPACK_NDK_VERSION=“android-ndk-r10d”
declare -x NVPACK_ROOT=“/Users/vito0719/NVPACK”
declare -x OLDPWD
declare -x PATH=“/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vito0719/NVPACK/android-sdk-macosx/tools:/Users/vito0719/NVPACK/android-sdk-macosx/platform-tools:/Users/vito0719/NVPACK/android-sdk-macosx/build-tools:/Users/vito0719/NVPACK/android-sdk-macosx/extras/android/support-tools:/Users/vito0719/NVPACK/android-ndk-r10d:/Users/vito0719/NVPACK/android-sdk-macosx/platform-tools:/Users/vito0719/NVPACK/android-sdk-macosx/build-tools:/Users/vito0719/NVPACK/android-sdk-macosx/tools:/Users/vito0719/NVPACK/android-ndk-r10c:/Users/vito0719/NVPACK/apache-ant-1.8.2/bin:/Users/vito0719/NVPACK/gradle-2.1/bin”
declare -x PWD=“/Users/vito0719”
declare -x SHELL=“/bin/bash”
declare -x SHLVL=“1”
declare -x SSH_AUTH_SOCK=“/private/tmp/com.apple.launchd.SuqrkUxAYf/Listeners”
declare -x TERM=“xterm-256color”
declare -x TERM_PROGRAM=“Apple_Terminal”
declare -x TERM_PROGRAM_VERSION=“343.7”
declare -x TERM_SESSION_ID=“422D3598-B48D-44F6-992C-1FCBA56D5044”
declare -x TMPDIR=“/var/folders/bj/y9tj49y12cb64_3djrrbcc7w0000gn/T/”
It’s apparently too long so I deleted the last a few lines, which don’t look very related…
same error…T_T
what if you open a terminal and type ant now?
Hi vito_BumpingWorkshop,
Something I noticed is you might have incomplete file locations for the various parts of the SDK. I don’t have a screenshot for the OSX version, however, so I am not sure if setup is that different. Here is how it should look for Windows.
same result…
I don’t think that’s any different from mine, except some different version and the lack of the entry “Location of JAVA”, which I suppose is how OS X version should be. (I don’t believe OS X use C: or anything alike to represent the partition it uses. All file-paths for OS X start with / or sometimes .)
If you want to try setting the JAVA_HOME to see if that makes a difference, here is a Stack Overflow thread with some instructions. If you try this or not, can you attach the latest failed build output logs to this thread as a txt file? I want to see if there’s any errors further up than what you’ve posted.
Here’s the log:link text
I’ve tried a different version of UE4 hoping to solve the problem but it didn’t. I used the promoted version (4.9) from Github. The log seems a bit different but it still returned error when using ant.
Thanks for the help!
And here’s another try using the official 4.7.6 release: link text
Hi, have you tried just re-installing java on your mac? That error is coming from ant (as others have suggested) when it tries to run. I know we expect java to be installed on the mac (and it usually is), but it might be possible your installation has gotten corrupted somehow. Make sure you install Java 6 from Apple and then Java 7 from Oracle. That should resolve the JAVA_HOME issue for ant.
-Pete
Hey Pete,
Just to be clear, when you say install Java, you do mean JDK, right? Not Java Runtime stuff? I don’t know about Java 6 from Apple, but I did install JDK7 SE from Oracle. And it seems like my Java Runtime(or whatever it is called…just not the SDK) is actually version 8.
Please clarify this for me: do I re-install my JDK or just that JAVA?
Thanks a lot!
Also btw, should I remove Java 8 or could I keep it?
Hey Pete, I’ve solved it! The problem was that Java 6 from Apple! I installed that and it worked like a charm! Thanks!