# Oracle and java cookbook

**URL:** <https://discourse.chef.io/t/oracle-and-java-cookbook/5025>\
**Category:** Chef Infra (archive)\
**Created:** [February 14, 2014, 6:40am UTC](https://discourse.chef.io/t/oracle-and-java-cookbook/5025 "2014-02-14T06:40:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Montgomery](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@David\_Montgomery](https://discourse.chef.io/u/David_Montgomery)\
**Post date:** [February 14, 2014, 6:40am UTC](https://discourse.chef.io/t/oracle-and-java-cookbook/5025/1 "2014-02-14T06:40:54Z")

</div>

Does the java cookbook work with oracle?

from the below…not. Totaly leave me no were to go. Is the use java  
the java cookbook depricated?

Converging 49 resources  
Recipe: build-essential::default

- package[build-essential] action install (up to date)

- package[binutils-doc] action install (up to date)

- package[autoconf] action install (up to date)

- package[flex] action install (up to date)

- package[bison] action install (up to date)  
Recipe: ntp::default

- package[ntp] action install (up to date)  
Recipe: java::set\_java\_home

- ruby\_block[set-env-java-home] action run

- directory[/etc/profile.d] action create (up to date)

- file[/etc/profile.d/jdk.sh] action create (up to date)  
Recipe: java::oracle

- java\_ark[jdk] action install[2014-02-14T14:37:06+08:00] FATAL: Failed  
to extract file jdk-7u25-linux-x64.tar.gz!

# ================================================================================ Error executing action `install` on resource ‘java\_ark[jdk]’

## SystemExit

exit

## Cookbook Trace:

/home/ubuntu/workspace/augno-chef/chef-repo/cookbooks/java/providers/ark.rb:154:in  
`block (2 levels) in class_from_file' /home/ubuntu/workspace/augno-chef/chef-repo/cookbooks/java/providers/ark.rb:130:in`block in class\_from\_file’

---

<div class="post-metadata">

**Author:** ![Steve\_Hummingbird](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Steve\_Hummingbird](https://discourse.chef.io/u/Steve_Hummingbird)\
**Post date:** [February 14, 2014, 9:57am UTC](https://discourse.chef.io/t/oracle-and-java-cookbook/5025/2 "2014-02-14T09:57:34Z")

</div>

I haven't had a chance to use that for a few month now, but I have a fork (with just one minor change to allow wrapper cookbooks) and a small wrapper to install oracle java on GitHub: [st-h (Steve) · GitHub](https://github.com/st-h/)  
Probably there might have been some updates which I haven't merged yet, but at least that should give a working example  
-Steve

Sent from mobile.

> On 14.02.2014, at 07:40, David Montgomery [davidmontgomery@gmail.com](mailto:davidmontgomery@gmail.com) wrote:
> 
> Does the java cookbook work with oracle?
> 
> from the below.....not. Totaly leave me no were to go. Is the use java the java cookbook depricated?
> 
> Converging 49 resources  
> Recipe: build-essential::default
> 
> - package[build-essential] action install (up to date)
> 
> - package[binutils-doc] action install (up to date)
> 
> - package[autoconf] action install (up to date)
> 
> - package[flex] action install (up to date)
> 
> - package[bison] action install (up to date)  
> Recipe: ntp::default
> 
> - package[ntp] action install (up to date)  
> Recipe: java::set\_java\_home
> 
> - ruby\_block[set-env-java-home] action run
> 
> - directory[/etc/profile.d] action create (up to date)
> 
> - file[/etc/profile.d/jdk.sh] action create (up to date)  
> Recipe: java::oracle
> 
> - java\_ark[jdk] action install[2014-02-14T14:37:06+08:00] FATAL: Failed to extract file jdk-7u25-linux-x64.tar.gz!
> 
> # ================================================================================ Error executing action `install` on resource 'java\_ark[jdk]'
> 
> ## SystemExit
> 
> exit
> 
> ## Cookbook Trace:
> 
> /home/ubuntu/workspace/augno-chef/chef-repo/cookbooks/java/providers/ark.rb:154:in `block (2 levels) in class_from_file' /home/ubuntu/workspace/augno-chef/chef-repo/cookbooks/java/providers/ark.rb:130:in `block in class\_from\_file'
