Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-11-04 09:33:17 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
885089b136211d2b92f7b9ac2852a2992a885999
885089b1
1 parent
d6a0ac30
onos command to use Java 1.8
Change-Id: I8741c41a74dba3b816a838aa1db1588be7f9816a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
tools/package/bin/onos
tools/package/bin/onos
View file @
885089b
...
...
@@ -3,7 +3,15 @@
# ONOS command-line client
# -----------------------------------------------------------------------------
export
JAVA_HOME
=
${
JAVA_HOME
:-
/usr/lib/jvm/java-7-openjdk-amd64/
}
if
[
-z
"
${
JAVA_HOME
}
"
]
;
then
if
[
-x /usr/libexec/java_home
]
;
then
export
JAVA_HOME
=
$(
/usr/libexec/java_home -v 1.8
)
elif
[
-d /usr/lib/jvm/java-8-oracle
]
;
then
export
JAVA_HOME
=
"/usr/lib/jvm/java-8-oracle"
elif
[
-d /usr/lib/jvm/java-7-openjdk-amd64
]
;
then
export
JAVA_HOME
=
"/usr/lib/jvm/java-7-openjdk-amd64"
fi
fi
cd
$(
dirname
$0
)
/../apache-karaf-
$KARAF_VERSION
/bin
./client -h localhost -u karaf
"
$@
"
...
...
Please
register
or
login
to post a comment