0.30.375 only for java 7?

Hi,

I have an exception with 0.30.375 and Idea 13.0.2 (running with jdk 6), when I am trying to compile a maven project.
Is the plugin use some API from Java 7 ? Is it still compatible with jdk 6?

Thanks.

Internal error: (java.io.IOException) Cannot create output directory: ......./target/classes
java.io.IOException: Cannot create output directory: /Users/leifhallgren/Dev/workspaces/Xingtech/sparta/sparta-log/sparta-log-slf4j/target/test-classes
 at org.jetbrains.jps.incremental.scala.data.CompilationData$.checkOrCreate(CompilationData.scala:73)
 at org.jetbrains.jps.incremental.scala.data.CompilationData$.from(CompilationData.scala:41)
 at org.jetbrains.jps.incremental.scala.ScalaBuilderDelegate$$anonfun$compile$1$$anonfun$apply$1.apply(ScalaBuilderDelegate.scala:39)
 at org.jetbrains.jps.incremental.scala.ScalaBuilderDelegate$$anonfun$compile$1$$anonfun$apply$1.apply(ScalaBuilderDelegate.scala:38)
 at scala.util.Either$RightProjection.flatMap(Either.scala:523)
 at org.jetbrains.jps.incremental.scala.ScalaBuilderDelegate$$anonfun$compile$1.apply(ScalaBuilderDelegate.scala:38)
 at org.jetbrains.jps.incremental.scala.ScalaBuilderDelegate$$anonfun$compile$1.apply(ScalaBuilderDelegate.scala:37)
 at scala.util.Either$RightProjection.flatMap(Either.scala:523)
 at org.jetbrains.jps.incremental.scala.ScalaBuilderDelegate.compile(ScalaBuilderDelegate.scala:37)
 at org.jetbrains.jps.incremental.scala.IdeaIncrementalBuilder$.build(IdeaIncrementalBuilder.scala:45)
 at org.jetbrains.jps.incremental.scala.ScalaBuilder.build(ScalaBuilder.scala:29)
 at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1084)
 at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:801)
 at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:849)
 at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:764)
 at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:587)
 at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:344)
 at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:184)
 at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129)
 at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:224)
 at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113)
 at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:133)
 at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path;
 at org.jetbrains.jps.incremental.scala.data.CompilationData$.checkOrCreate(CompilationData.scala:74)
 ... 28 more

4 comments
Comment actions Permalink

It should be compatible with Java 6, but it's not compatible now. We will fix it in the next releases, sorry for inconveniences. For now as workaround you need to use Java 7 OR use Java 7 for the first compilation then you will be able to use Java 6 OR create all output directories manually, then Java 6 will work.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

I just updated 0.30.378 with fix. Thank you for request.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Thank you for the quick fix!

0
Comment actions Permalink

Thanks, that fixed my issue on Mac.

0

Please sign in to leave a comment.