Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 63819cf

Browse files
author
rakeshrathi
committed
First commit
0 parents commit 63819cf

File tree

14 files changed

+896
-0
lines changed

14 files changed

+896
-0
lines changed

‎.idea/artifacts/com_hello_client_jar.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/modules.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/workspace.xml

Lines changed: 772 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎build.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/bin/rm -rf output
2+
3+
mkdir -p output/mlib
4+
5+
6+
javac -p output/mlib -d output/classes `find com.hello -name *.java`
7+
jar -c -f output/mlib/hello.jar -C output/classes .
8+
/bin/rm -rf output/classes
9+
10+
jar -f output/mlib/hello.jar -d
11+
12+
13+
javac -p output/mlib -d output/classes `find com.hello.client -name *.java`
14+
jar -c -f output/mlib/helloclient.jar --main-class com.hello.client.HelloClient -C output/classes .
15+
/bin/rm -rf output/classes
16+
17+
18+
#java -p output/mlib -m com.hello.client.HelloClient
19+
java -p output/mlib -m com.hello.client/com.hello.client.HelloClient
20+
21+
export JAVA_HOME=$(/usr/libexec/java_home -v 9)
22+
export PATH="$JAVA_HOME/bin:$PATH"
23+
24+
/bin/rm -rf helloclientimage/
25+
jlink --module-path /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/jmods:output/mlib --add-modules com.hello --add-modules com.hello.client --output helloclientimage --launcher=helloclient=com.hello.client
26+
27+
./helloclientimage/bin/java --list-modules
28+
./helloclientimage/bin/java -m com.hello.client
29+
./helloclientimage/bin/helloclient
30+

‎com.hello.client/com.hello.client.iml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
<orderEntry type="module" module-name="com.hello" />
11+
</component>
12+
</module>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Main-Class: com.hello.client.HelloClient
3+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.hello.client;
2+
3+
import com.hello.Hello;
4+
5+
public class HelloClient {
6+
public static void main(String[] args){
7+
Hello hello = new Hello();
8+
System.out.println(hello.sayHello("Rakesh"));
9+
10+
}
11+
}

‎com.hello.client/src/module-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module com.hello.client {
2+
requires com.hello;
3+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /