FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java4cpp/run.sh at java4cpp-1.2 · wshackle/java4cpp · GitHub
wshackle
/
java4cpp
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
9
Code
Issues
1
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
java4cpp
/
run.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
33 lines (24 loc) · 825 Bytes
Breadcrumbs
java4cpp
/
run.sh
Copy path
File metadata and controls
executable file
·
33 lines (24 loc) · 825 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!
/bin/bash
set
-x
;
if
test
"
x
${JAVA_HOME}
"
=
"
x
"
-a -d /usr/local/jdk1.8.0_60/bin/
;
then
export
JAVA_HOME=/usr/local/jdk1.8.0_60/
;
fi
if
test
"
x
${JAVA_HOME}
"
=
"
x
"
;
then
echo
"
Please install JDK 1.8 or higher and set JAVA_HOME to this directory
"
;
exit
1
;
fi
if
"
${JAVA_HOME}
/bin/java
"
-version
2>&1
|
grep java
|
grep version
|
grep 1.8
>
/dev/null
2>
/dev/null
;
then
"
${JAVA_HOME}
/bin/java
"
-jar
${top_dir}
/target/java4cpp-1.0-SNAPSHOT-jar-with-dependencies.jar
${
@
}
else
echo
"
Please install JDK 1.8 or higher and set JAVA_HOME to this directory
"
;
exit
1
;
fi
orig_dir=
`
pwd
`
;
top_dir=
`
pwd
`
#
JAVA4CPPRUN.sh
if
test
!
-f ./run.sh
||
grep -v
'
#JAVA4CPPRUN.sh
'
./run.sh
>
/dev/null
2>
/dev/null
;
then
top_dir=
`
(cd
"
${0
%%
run.sh}
"
;
pwd)
`
;
fi
echo
${
@
}
pwd
"
${JAVA_HOME}
/bin/java
"
-version
Back
|
FazBrowse Home
|
New Git URL