Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlen Error #61

Closed
tariqawni opened this issue Oct 18, 2021 · 2 comments
Closed

Kotlen Error #61

tariqawni opened this issue Oct 18, 2021 · 2 comments

Comments

@tariqawni
Copy link

Hi i am a new in code i am taking a course on Kotlin and i have an issue i download a Kotlin in vscode and when i run a simple code its give me an error as i know i download the latest
java 17 and add it to path this is my code i want to understand what i missing and how i do solve the error and thank you.

fun main() {
println("Hello World")
}
and this is the output

[Running] cd "c:\Users\tariq\Desktop" && kotlinc Hello World.kt -include-runtime -d Hello World.jar && java -jar Hello World.jar
error: source file or directory not found: Hello
error: source file or directory not found: World.kt
error: source file or directory not found: World.jar

[Done] exited with code=1 in 2.459 seconds

@tariqawni tariqawni reopened this Oct 18, 2021
@tariqawni tariqawni reopened this Oct 18, 2021
@tariqawni
Copy link
Author

i got the answer after many try when i save my file there was a space like that Hello World.kt and this is wrong i should to save my file without space like that HelloWorld.kt

@CesarValiente
Copy link
Member

Please, don't open issues that are not related to the code exposed in this repository.
If you are learning Kotlin I encourage you to follow the original Kotlin docs from their creators: https://kotlinlang.org/docs/getting-started.html and from Android docs: https://developer.android.com/kotlin/learn

Thanks,
Cesar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants