Skip to content

add README for Java with information on downloading source tarball#6294

Merged
boegel merged 4 commits intoeasybuilders:developfrom
cstackpole:JavaReadme
May 14, 2018
Merged

add README for Java with information on downloading source tarball#6294
boegel merged 4 commits intoeasybuilders:developfrom
cstackpole:JavaReadme

Conversation

@cstackpole
Copy link
Copy Markdown

Took me a few minutes to figure out how to install Java with a weird warning about not being able to find the download. I thought I would post my notes for others in the future who might benefit.

Comment thread easybuild/easyconfigs/j/Java/README.md Outdated
@@ -0,0 +1,4 @@
In order to use these configs you must first download Java from [Oracle](http://www.oracle.com/technetwork/java/javase/downloads/index.html).

To install, you must past eb the sourcepath to find the download. For example, if the file is in /tmp your command might look something like:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right that EasyBuild only looks in particular places for 'sources', but the way it's stated now is not how it's typically done.

You usually have configured EasyBuild with a particular sourcepath location, either directly via the --sourcepath configuration option (via a configuration file or via $EASYBUILD_SOURCEPATH), or indirectly via --prefix (or $EASYBUILD_PREFIX or cfg file).

So typically you'll copy/move the downloaded tarball for Java into <sourcepath>/j/Java, since that's also where EasyBuild will download stuff into (when it can).

@boegel boegel added this to the 3.6.1 milestone May 6, 2018
@boegel boegel changed the base branch from master to develop May 6, 2018 07:42
@boegel boegel changed the title Add Readme for how to use. add README for Java with information on downloading source tarball May 6, 2018
@cstackpole
Copy link
Copy Markdown
Author

Thanks for the feedback. Let me research the other methods you mentioned then I will update the notes.

Update the Java documentation to include the three ways that I was able to get to work.
@cstackpole
Copy link
Copy Markdown
Author

I wasn't able to get the method you mentioned about /j/Java, but I was able to verify three ways that worked and I updated the documentation accordingly. Hopefully this helps.

Comment thread easybuild/easyconfigs/j/Java/README.md Outdated
@@ -0,0 +1,8 @@
In order to use these configs you must first download Java from [Oracle](http://www.oracle.com/technetwork/java/javase/downloads/index.html). The file should look like this: jdk-8u162-linux-x64.tar.gz
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file -> file name?

Comment thread easybuild/easyconfigs/j/Java/README.md Outdated
@@ -0,0 +1,8 @@
In order to use these configs you must first download Java from [Oracle](http://www.oracle.com/technetwork/java/javase/downloads/index.html). The file should look like this: jdk-8u162-linux-x64.tar.gz

To install, you must past eb the sourcepath to find the download. There are a number of ways to do this assuming the file is in ~/EB_Downloads.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you must past eb the sourcepath to find the download. ->

you must configure EasyBuild to use the right `sourcepath` so it can find the manually downloaded file.

Update based on feedback
@cstackpole
Copy link
Copy Markdown
Author

Updated based on the feedback. Thanks!
Again, I think this is best left separate from the Intel simply because the Intel has at least one extra step. I prefer to err on the side of clarity than 'efficient but confuses new comers' when it pertains to documentation. But maybe someone else can come up with a better middle ground. In the mean time, I know that this works. :-)

Path updates
@boegel boegel merged commit f1a2599 into easybuilders:develop May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants