IntelliJ Compile Problem[SOLVED]


#1

Hello i am new in Kotlin, very new as “HelloWorld” level.
I have last version of IntelliJ and Kotlin, java version is 1.8 , you can see 1.7 in log i change it.
So the problem is no matter what i did i cant run simple hello function in intelliJ message is below,
Icant solve this issue, also i didnt understand anythink about what its say below

Error:Abnormal build process termination:
“C:\Program Files\Java\jdk1.7.0_79\bin\java” -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs="" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=C:/Users/keremyucel/IdeaProjects/untitled -Dpreload.config.path=C:/Users/keremyucel/.IdeaIC2016.2/config/options -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-7543654683177948004 -Dfile.encoding=windows-1254 -Djps.file.types.component.name=CommunityFileTypes -Duser.language=en -Duser.country=US -Didea.paths.selector=IdeaIC2016.2 “-Didea.home.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.2” -Didea.config.path=C:\Users\keremyucel.IdeaIC2016.2\config -Didea.plugins.path=C:\Users\keremyucel.IdeaIC2016.2\config\plugins -Djps.log.dir=C:/Users/keremyucel/.IdeaIC2016.2/system/log/build-log -Djps.fallback.jdk.home=C:/Progra~1/Java/jdk1.8.0_65/jre -Djps.fallback.jdk.version=1.8.0_65 -Djava.io.tmpdir=C:/Users/keremyucel/.IdeaIC2016.2/system/compile-server/temp -Dkotlin.incremental.compilation.experimental=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=“C:\Users\KEREMY~2\AppData\Local\Temp\kotlin-idea-8040512660719547550-is-running” -classpath “C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.7.0_79/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/ecj-4.5.2.jar” org.jetbrains.jps.cmdline.Launcher “C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/javac2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/jna.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/trove4j.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/snappy-in-java-0.3.1.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/netty-all-4.1.1.Final.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/util.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/jna-platform.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/asm-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/rt/jps-plugin-system.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/annotations.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/jdom.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/oromatcher.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/resources_en.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/protobuf-2.5.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/openapi.jar;C:/Program Files/Java/jdk1.8.0_65/jre/lib/ext/log4j-1.2.15.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/forms_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/jps-model.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/idea_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/jgoodies-forms.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/jps-builders.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/nanoxml-2.2.3.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/commons-io-2.2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-base-services-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-base-services-groovy-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-cli-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-core-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-messaging-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-model-core-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-model-groovy-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-native-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-resources-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-tooling-api-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-tooling-extension-api.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-tooling-extension-impl.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-wrapper-2.13.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/guava-jdk5-17.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/jna-3.2.7.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/jsr305-1.3.9.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/kryo-2.22.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/minlog-1.2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-freebsd-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-freebsd-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-linux-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-linux-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-osx-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-osx-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-windows-amd64-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/native-platform-windows-i386-0.10.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/objenesis-1.2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/reflectasm-1.07.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/resources_en.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/lib/gson-2.5.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/jarutils.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/ant/lib/ant-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/devkit/lib/devkit-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/Groovy/lib/groovy-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/Groovy/lib/groovy-rt-constants.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/eclipse/lib/eclipse-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/eclipse/lib/common-eclipse-util.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/maven/lib/maven-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/maven/lib/maven3/lib/plexus-utils-2.0.6.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/gradle/lib/gradle-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/jps/android-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/jps/android-gradle-jps.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/android-common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/android-rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/sdk-common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/repository.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/sdklib.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/common.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/jarutils.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/layoutlib-api.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/android/lib/manifest-merger.jar;C:/Users/keremyucel/.IdeaIC2016.2/config/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;C:/Users/keremyucel/.IdeaIC2016.2/config/plugins/Kotlin/lib/kotlin-runtime.jar;C:/Users/keremyucel/.IdeaIC2016.2/config/plugins/Kotlin/lib/kotlin-reflect.jar;C:/Users/keremyucel/.IdeaIC2016.2/config/plugins/Kotlin/lib/kotlin-plugin.jar;C:/Users/keremyucel/.IdeaIC2016.2/config/plugins/Kotlin/lib/kotlin-android-extensions-plugin.jar;C:/Users/keremyucel/.IdeaIC2016.2/config/plugins/Kotlin/lib/kotlin-android-extensions-compiler-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/javaFX/lib/javaFX-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.2/plugins/javaFX/lib/common-javaFX-plugin.jar” org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 58757 a92de285-d5c4-4035-a92a-f0e679f36720 C:/Users/keremyucel/.IdeaIC2016.2/system/compile-server
Exception in thread “main” java.lang.NoSuchMethodError: org.apache.log4j.PropertyConfigurator.configure(Ljava/io/InputStream;)V at org.jetbrains.jps.cmdline.LogSetup.initLoggers(LogSetup.java:51) at org.jetbrains.jps.cmdline.BuildMain.(BuildMain.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:59)
The error may be caused by JARs in Java Extensions directory which conflicts with libraries used by the external build process.
Try adding -Djava.ext.dirs="" argument to ‘Build process VM options’ in File | Settings | Build, Execution, Deployment | Compiler to fix the problem.


#2

You have copied a version of log4j into your JDK directory which is incompatible with the version of log4j required by IntelliJ IDEA. Deleting this file should help:

C:/Program Files/Java/jdk1.8.0_65/jre/lib/ext/log4j-1.2.15.jar


#3

Its simply and flawslessly work thankyou very much