This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
[...] | |
<build> | |
[...] | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.8.0</version> | |
<configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class ScannerExample { | |
public static void main (String[] args) { | |
// System.in -> キーボード入力を受け付けるための引数 | |
Scanner scanner = new Scanner(System.in); | |
System.out.print("名前を入力してください:"); | |
// キーボード入力を受け付ける | |
String name = scanner.next(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
class BufferedReaderExample { | |
public static void main (String[] args) { | |
// System.in -> キーボード入力を受け付けるための引数 | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
System.out.print("名前を入力してください:"); | |
try { | |
// キーボード入力を受け付ける |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew search tomcat | |
==> Formulae | |
tomcat tomcat-native tomcat@6 tomcat@7 tomcat@8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install tomcat | |
==> Downloading https://www.apache.org/dyn/closer.cgi?path=/tomcat/tomcat-9/v9.0.10/bin/apac | |
==> Best Mirror http://ftp.kddilabs.jp/infosystems/apache/tomcat/tomcat-9/v9.0.10/bin/apache | |
######################################################################## 100.0% | |
==> Caveats | |
To have launchd start tomcat now and restart at login: | |
brew services start tomcat | |
Or, if you don't want/need a background service you can just run: | |
catalina run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew services start tomcat | |
==> Successfully started `tomcat` (label: homebrew.mxcl.tomcat) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew services stop tomcat | |
Stopping `tomcat`... (might take a while) | |
==> Successfully stopped `tomcat` (label: homebrew.mxcl.tomcat) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /opt/pi4j/examples | |
$ javac -classpath .:classes:/opt/pi4j/lib/'*' -d . ControlGpioExample.java | |
$ sudo java -classpath .:classes:/opt/pi4j/lib/'*' ControlGpioExample | |
<--Pi4J--> GPIO Control Example ... started. | |
Unable to determine hardware version. I see: Hardware : BCM2835 | |
, | |
- expecting BCM2708 or BCM2709. | |
If this is a genuine Raspberry Pi then please report this | |
to projects@drogon.net. If this is not a Raspberry Pi then you | |
are on your own as wiringPi is designed to support the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-cache policy pi4j | |
pi4j: | |
インストールされているバージョン: (なし) | |
候補: 1.1 | |
バージョンテーブル: | |
1.1 0 | |
500 http://repository.pi4j.com/ wheezy/rpi armhf Packages | |
100 /var/lib/dpkg/status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get remove pi4j |