Build kotlin from sources


#1

I tried to build Kotlin.. but I'am experiencing error during compileStdlib target:

  [mkdir] Created dir: C:UsersSonyIdeaProjectsoskotlindistclassesstdlib   [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jetbrains/asm4/ClassVisitor   [java]   at com.intellij.core.JavaCoreEnvironment.<init>(JavaCoreEnvironment.java:70)   [java]   at org.jetbrains.jet.compiler.JetCoreEnvironment.<init>(JetCoreEnvironment.java:42)   [java]   at org.jetbrains.jet.compiler.CompileEnvironment.<init>(CompileEnvironment.java:77)   [java]   at org.jetbrains.jet.cli.KotlinCompiler.exec(KotlinCompiler.java:85)   [java]   at org.jetbrains.jet.cli.KotlinCompiler.exec(KotlinCompiler.java:68)   [java]   at org.jetbrains.jet.cli.KotlinCompiler.exec(KotlinCompiler.java:60)   [java]   at org.jetbrains.jet.cli.KotlinCompiler.doMain(KotlinCompiler.java:48)   [java]   at org.jetbrains.jet.cli.KotlinCompiler.main(KotlinCompiler.java:40)   [java] Caused by: java.lang.ClassNotFoundException: org.jetbrains.asm4.ClassVisitor   [java]   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)   [java]   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)   [java]   at java.security.AccessController.doPrivileged(Native Method)   [java]   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)   [java]   at java.lang.ClassLoader.loadClass(ClassLoader.java:423)   [java]   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)   [java]   at java.lang.ClassLoader.loadClass(ClassLoader.java:356)   [java]   ... 8 more

How can I fix that?

Message was edited by: Sergey Mashkov


#2

Build on the server is ok.

Did you run “update” target?


#3

Did you run ant -f update_dependencies.xml before it?


#4

Yes, of course.. It failed first because of invalid file name, but I fixed it to "ideaIC-118.SNAPSHOT.win.zip" and then I got success with dependencies.. but still can't get success with build


#5

It looks like something with the classpath so compiler launched with no required libs..


#6

I found org.jetbrains.asm4.ClassVisitor in asm4-all.jar in ideaSDKlib..   I added it to the classpath by hands in build.xml and compilation complete successfully.. but why it does not work from the box?


#7

After invoking update_dependencies you should have asm.jar in ideaSDK/core directory. If you don't, something went wrong. Can you attach log of "ant -f update_dependencies.xml" invocation?


#8

It's strange, because now ideaIC-117.SNAPSHOT.win.zip works, and ideaIC-118.SNAPSHOT.win.zip shouldn't. Maybe you have a little bit outdated version of sources, which points to correct dependency build number, but invalid name of it. Can you check that sources are up-to-date?   


#9

Yes are absolutely right. It was outdated sources version.. after update I got it! Thank you!