Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jre setup documentation #62

Closed
josephtaylor opened this issue Mar 8, 2016 · 0 comments
Closed

Fix jre setup documentation #62

josephtaylor opened this issue Mar 8, 2016 · 0 comments

Comments

@josephtaylor
Copy link

@josephtaylor josephtaylor commented Mar 8, 2016

...
    <p>
        Download the following files from the <a
            href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Oracle website</a>:
    </p>

    <ul>
        <li>Windows x64 Server JRE 8u31</li>
        <li>Linux x64 Server JRE 8u31</li>
        <li>Mac OSX x64 JRE 8u31</li>
    </ul>

    <p>and place them in your local maven repository as</p>

    <ul>
        <li>~/.m2/repository/com/oracle/server-jre/8.31/server-jre-8.31-windows-x64.tar.gz</li>
        <li>~/.m2/repository/com/oracle/server-jre/8.31/server-jre-8.31-linux-x64.tar.gz</li>
        <li>~/.m2/repository/com/oracle/jre/8.31/jre-8.31-macosx-x64.tar.gz</li>
    </ul>
...

When I first read this, I just tried to copy the files into those specific locations. That doesn't work of course, they have to be installed via the maven install command. Seems like the documentation could benefit from that detail.

Here's the commands I used, assuming the tar.gz files are in the current dir

mvn install:install-file -DgroupId=com.oracle \
-DartifactId=server-jre \
-Dclassifier=windows-x64 \
-Dtype=tar.gz \
-Dversion=8.74 \
-Dpackaging=tar.gz \
-Dfile=server-jre-8u74-windows-x64.tar.gz
mvn install:install-file -DgroupId=com.oracle \
-DartifactId=server-jre \
-Dclassifier=linux-x64 \
-Dtype=tar.gz \
-Dversion=8.74 \
-Dpackaging=tar.gz \
-Dfile=server-jre-8u74-linux-x64.tar.gz
mvn install:install-file -DgroupId=com.oracle \
-DartifactId=jre \
-Dclassifier=macosx-x64 \
-Dtype=tar.gz \
-Dversion=8.74 \
-Dpackaging=tar.gz \
-Dfile=jre-8u74-macosx-x64.tar.gz

Not sure if this is something that people are expected to know, but just wanted to note that it threw me off for a little bit.

@axelfontaine axelfontaine changed the title jre documentation Fix jre setup documentation May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.