質問編集履歴
2
補足の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -194,6 +194,50 @@
|
|
194
194
|
|
195
195
|
### 補足情報(FW/ツールのバージョンなど)
|
196
196
|
|
197
|
-
|
198
|
-
|
199
|
-
|
197
|
+
ちなみにkotlincとだけ入力すると
|
198
|
+
|
199
|
+
Welcome to Kotlin version 1.2.71 (JRE 1.8.0_144-_2017_08_24_19_19-b00)
|
200
|
+
|
201
|
+
Type :help for help, :quit for quit
|
202
|
+
|
203
|
+
exception: java.lang.NoClassDefFoundError: java.nio.file.FileSystems$DefaultFileSystemHolder
|
204
|
+
|
205
|
+
at java.nio.file.FileSystems.getDefault(Unknown Source)
|
206
|
+
|
207
|
+
at java.nio.file.Paths.get(Unknown Source)
|
208
|
+
|
209
|
+
at org.jline.reader.impl.history.DefaultHistory.getPath(Unknown Source)
|
210
|
+
|
211
|
+
at org.jline.reader.impl.history.DefaultHistory.save(Unknown Source)
|
212
|
+
|
213
|
+
at org.jetbrains.kotlin.cli.jvm.repl.reader.ConsoleReplCommandReader.flushHistory(Unknown Source)
|
214
|
+
|
215
|
+
at org.jetbrains.kotlin.cli.jvm.repl.ReplFromTerminal.doRun(Unknown Source)
|
216
|
+
|
217
|
+
at org.jetbrains.kotlin.cli.jvm.repl.ReplFromTerminal.access$doRun(Unknown Source)
|
218
|
+
|
219
|
+
at org.jetbrains.kotlin.cli.jvm.repl.ReplFromTerminal$Companion.run(Unknown Source)
|
220
|
+
|
221
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(Unknown Source)
|
222
|
+
|
223
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(Unknown Source)
|
224
|
+
|
225
|
+
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(Unknown Source)
|
226
|
+
|
227
|
+
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(Unknown Source)
|
228
|
+
|
229
|
+
at org.jetbrains.kotlin.cli.common.CLITool.exec(Unknown Source)
|
230
|
+
|
231
|
+
at org.jetbrains.kotlin.cli.common.CLITool.exec(Unknown Source)
|
232
|
+
|
233
|
+
at org.jetbrains.kotlin.cli.common.CLITool.exec(Unknown Source)
|
234
|
+
|
235
|
+
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(Unknown Source)
|
236
|
+
|
237
|
+
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(Unknown Source)
|
238
|
+
|
239
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(Unknown Source)
|
240
|
+
|
241
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(Unknown Source)
|
242
|
+
|
243
|
+
がでてきます。
|
1
内容を入力しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,11 +2,23 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
winodws 10にkotlinの環境を構築しようとしています。
|
6
6
|
|
7
|
-
|
7
|
+
kotlinのcompiler 1.2.71をProgram fileにダウンロードし、pathを通しました。kotlinc のコマンド自体には反応するのですが、かなり長いWARNが出てしまいます。なぜこのような警告が出てしまうのかわからず、悪戦苦闘しています。
|
8
8
|
|
9
|
+
javaはjdk-11.0.1\binを通しています。
|
10
|
+
|
11
|
+
JAVA_HOMEにはjdk-1.8.0_191を通しています。
|
12
|
+
|
13
|
+
javaには触れずにkotlinを勉強しているので、javaの知識が不足しているかもしれません。
|
14
|
+
|
15
|
+
不足している情報、解決方法を教えていただきたいです。
|
16
|
+
|
9
|
-
|
17
|
+
お手数をおかけしますが、ぜひよろしくお願いします。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
10
22
|
|
11
23
|
|
12
24
|
|
@@ -16,7 +28,141 @@
|
|
16
28
|
|
17
29
|
```
|
18
30
|
|
31
|
+
kotlinc p1.kt
|
32
|
+
|
33
|
+
WARN: Failed to load filesystem access layer: Windows 10, 1.8.0_144, nio2=true
|
34
|
+
|
35
|
+
java.lang.reflect.InvocationTargetException
|
36
|
+
|
37
|
+
at com.intellij.openapi.util.io.FileSystemUtil$Nio2MediatorImpl.getAttributes(Unknown Source)
|
38
|
+
|
39
|
+
at com.intellij.openapi.util.io.FileSystemUtil.check(Unknown Source)
|
40
|
+
|
41
|
+
at com.intellij.openapi.util.io.FileSystemUtil.getMediator(Unknown Source)
|
42
|
+
|
43
|
+
at com.intellij.openapi.util.io.FileSystemUtil.<clinit>(Unknown Source)
|
44
|
+
|
45
|
+
at com.intellij.openapi.util.io.FileSystemUtil.getAttributes(Unknown Source)
|
46
|
+
|
47
|
+
at com.intellij.openapi.vfs.impl.ZipHandler.setFileAttributes(Unknown Source)
|
48
|
+
|
49
|
+
at com.intellij.openapi.vfs.impl.ZipHandler$1.createAccessor(Unknown Source)
|
50
|
+
|
51
|
+
at com.intellij.openapi.vfs.impl.ZipHandler$1.createAccessor(Unknown Source)
|
52
|
+
|
53
|
+
at com.intellij.util.io.FileAccessorCache.createHandle(Unknown Source)
|
54
|
+
|
55
|
+
at com.intellij.util.io.FileAccessorCache.get(Unknown Source)
|
56
|
+
|
57
|
+
at com.intellij.openapi.vfs.impl.ZipHandler.getCachedZipFileHandle(Unknown Source)
|
58
|
+
|
59
|
+
at com.intellij.openapi.vfs.impl.ZipHandler.acquireZipHandle(Unknown Source)
|
60
|
+
|
61
|
+
at com.intellij.openapi.vfs.impl.ZipHandlerBase.createEntriesMap(Unknown Source)
|
62
|
+
|
63
|
+
at com.intellij.openapi.vfs.impl.ArchiveHandler.getEntriesMap(Unknown Source)
|
64
|
+
|
65
|
+
at com.intellij.openapi.vfs.impl.jar.CoreJarHandler.<init>(Unknown Source)
|
66
|
+
|
67
|
+
at com.intellij.openapi.vfs.impl.jar.CoreJarFileSystem.lambda$new$0(Unknown Source)
|
68
|
+
|
69
|
+
at com.intellij.openapi.vfs.impl.jar.CoreJarFileSystem$$Lambda$52.fun(Unknown Source)
|
70
|
+
|
71
|
+
at com.intellij.util.containers.ConcurrentFactoryMap$3.create(Unknown Source)
|
72
|
+
|
73
|
+
at com.intellij.util.containers.ConcurrentFactoryMap.get(Unknown Source)
|
74
|
+
|
75
|
+
at com.intellij.openapi.vfs.impl.jar.CoreJarFileSystem.findFileByPath(Unknown Source)
|
76
|
+
|
77
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.findJarRoot(Unknown Source)
|
78
|
+
|
79
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.contentRootToVirtualFile(Unknown Source)
|
80
|
+
|
81
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.access$contentRootToVirtualFile(Unknown Source)
|
82
|
+
|
83
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$4.invoke(Unknown Source)
|
84
|
+
|
85
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$4.invoke(Unknown Source)
|
86
|
+
|
87
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.ClasspathRootsResolver.convertClasspathRoots(Unknown Source)
|
88
|
+
|
89
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(Unknown Source)
|
90
|
+
|
91
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<unknown>(Unknown Source)
|
92
|
+
|
93
|
+
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.createForProduction(Unknown Source)
|
94
|
+
|
95
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createCoreEnvironment(Unknown Source)
|
96
|
+
|
97
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(Unknown Source)
|
98
|
+
|
99
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(Unknown Source)
|
100
|
+
|
101
|
+
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(Unknown Source)
|
102
|
+
|
103
|
+
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(Unknown Source)
|
104
|
+
|
105
|
+
at org.jetbrains.kotlin.cli.common.CLITool.exec(Unknown Source)
|
106
|
+
|
107
|
+
at org.jetbrains.kotlin.cli.common.CLITool.exec(Unknown Source)
|
108
|
+
|
109
|
+
at org.jetbrains.kotlin.cli.common.CLITool.exec(Unknown Source)
|
110
|
+
|
111
|
+
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(Unknown Source)
|
112
|
+
|
113
|
+
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(Unknown Source)
|
114
|
+
|
115
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(Unknown Source)
|
116
|
+
|
117
|
+
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(Unknown Source)
|
118
|
+
|
119
|
+
Caused by: java.lang.ExceptionInInitializerError
|
120
|
+
|
121
|
+
at sun.nio.fs.Util.split(Unknown Source)
|
122
|
+
|
123
|
+
at sun.nio.fs.WindowsFileSystem.<init>(Unknown Source)
|
124
|
+
|
125
|
+
at sun.nio.fs.WindowsFileSystemProvider.<init>(Unknown Source)
|
126
|
+
|
127
|
+
at sun.reflect.NativeConstructorAccessorImpl.<unknown>(Unknown Source)
|
128
|
+
|
129
|
+
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
|
130
|
+
|
131
|
+
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
|
132
|
+
|
133
|
+
at java.lang.reflect.Constructor.newInstance(Unknown Source)
|
134
|
+
|
135
|
+
at java.lang.Class.newInstance(Unknown Source)
|
136
|
+
|
137
|
+
at sun.nio.fs.DefaultFileSystemProvider.<unknown>(Unknown Source)
|
138
|
+
|
139
|
+
at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(Unknown Source)
|
140
|
+
|
141
|
+
at java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(Unknown Source)
|
142
|
+
|
143
|
+
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.<unknown>(Unknown Source)
|
144
|
+
|
145
|
+
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.<unknown>(Unknown Source)
|
146
|
+
|
147
|
+
at java.security.AccessController.<unknown>(Unknown Source)
|
148
|
+
|
149
|
+
at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(Unknown Source)
|
150
|
+
|
151
|
+
at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(Unknown Source)
|
152
|
+
|
153
|
+
at java.nio.file.FileSystems.getDefault(Unknown Source)
|
154
|
+
|
155
|
+
at java.nio.file.Paths.get(Unknown Source)
|
156
|
+
|
19
|
-
|
157
|
+
... 41 more
|
158
|
+
|
159
|
+
Caused by: java.nio.charset.UnsupportedCharsetException: MS932
|
160
|
+
|
161
|
+
at java.nio.charset.Charset.forName(Unknown Source)
|
162
|
+
|
163
|
+
at sun.nio.fs.Util.<clinit>(Unknown Source)
|
164
|
+
|
165
|
+
... 59 more
|
20
166
|
|
21
167
|
```
|
22
168
|
|
@@ -26,9 +172,13 @@
|
|
26
172
|
|
27
173
|
|
28
174
|
|
29
|
-
```
|
175
|
+
```kotlin
|
30
176
|
|
177
|
+
fun main(args: Array<String>){
|
178
|
+
|
31
|
-
|
179
|
+
println("hello world")
|
180
|
+
|
181
|
+
}
|
32
182
|
|
33
183
|
```
|
34
184
|
|
@@ -36,11 +186,11 @@
|
|
36
186
|
|
37
187
|
### 試したこと
|
38
188
|
|
189
|
+
初めはkotlinのコンパイラーをダウンロードしただけでしたが、jdkをダウンロードしました。
|
39
190
|
|
191
|
+
classpathについても調べましたが、関係あるかさえわかりませんでした。
|
40
192
|
|
41
|
-
|
193
|
+
ご迷惑をおかけします。
|
42
|
-
|
43
|
-
|
44
194
|
|
45
195
|
### 補足情報(FW/ツールのバージョンなど)
|
46
196
|
|