Install jdk7 failed on OSX #516

Closed
wuranbo opened this Issue Jan 5, 2017 · 3 comments

Projects

None yet

2 participants

@wuranbo
wuranbo commented Jan 5, 2017

~/yottafrontendnew (ttl_conf_key_more_desc ✔) ᐅ sdk install java 7u79
tr: Illegal byte sequence

Oracle requires that you agree with the Oracle Binary Code License Agreement
prior to installation. The license agreement can be found at:

http://www.oracle.com/technetwork/java/javase/terms/license/index.html

Do you agree to the terms of this agreement? (Y/n): Y

Downloading: java 7u79

In progress...

######################################################################## 100.0%
Binary validation passed...
We will be needing super powers...

Repackaging java 7u79...
Attaching to the DMG...
Mounting DMG as Volume...
One or more volume(s) failed to mount
Installing PKG inside DMG...
installer: Error the package path specified was invalid: '/Volumes/JDK 7 Update 79/JDK 7 Update 79.pkg'.
Copy JDK Home to temp folder...
cp: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home: No such file or directory
Preparing archive...

zip error: Nothing to do! (try: zip -qr /Users/wrb/.sdkman/tmp/.zip . -i .)
Unmounting volume...
hdiutil: unmount: "/Volumes/JDK 7 Update 79" failed to unmount due to error 2.
hdiutil: unmount failed - No such file or directory
Done repackaging...
Cleaning up cookie...
mv: rename /Users/wrb/.sdkman/tmp/.zip to /Users/wrb/.sdkman/archives/java-7u79.zip: No such file or directory
unzip: cannot find or open /Users/wrb/.sdkman/archives/java-7u79.zip, /Users/wrb/.sdkman/archives/java-7u79.zip.zip or /Users/wrb/.sdkman/archives/java-7u79.zip.ZIP.
rm: /Users/wrb/.sdkman/archives/java-7u79.zip: No such file or directory

Stop! The archive was corrupt and has been removed! Please try installing again.

@marc0der
Member
marc0der commented Jan 5, 2017 edited

The clue lies in the following line:
One or more volume(s) failed to mount

I suggest unmounting all volumes on your machine and trying again. Please let me know if this resolves the issue.

@marc0der
Member

@wuranbo please confirm that this solves the problem before I close this issue.

@marc0der marc0der changed the title from Install jdk7 failed to Install jdk7 failed on OSX Jan 11, 2017
@wuranbo
wuranbo commented Jan 18, 2017

Please close, it's OK when I following your instruction.
@marc0der sorry, in my vacation. Thanks your sdkman.

@wuranbo wuranbo closed this Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment