You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I use a library which is supposed to work on jdk6 and jdk7. In some places it uses nio2.
Javac is to use this library just fine, but scalac throws
error: error while loading TFile, Missing dependency 'class java.nio.file.Path', required by c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-file\7.4.3\truezip-file-7.4.3.jar(de/schlichtherle/truezip/file/TFile.class)
here is a transcript:
D:\>javac -cp c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-file\7.4.3\truezip-file-7.4.3.jar;c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-driver-file\7.4.3\truezip-driver-file-7.4.3.jar;c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-kernel\7.4.3\truezip-kernel-7.4.3.jar test.java
de\schlichtherle\truezip\file\TFile.class(de\schlichtherle\truezip\file:TFile.class):warning: Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.DefaultAnnotation':classfilefor edu.umd.cs.findbugs.annotations.DefaultAnnotation not found
de\schlichtherle\truezip\file\TFile.class(de\schlichtherle\truezip\file:TFile.class):warning: Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressWarnings':classfilefor edu.umd.cs.findbugs.annotations.SuppressWarnings not found
de\schlichtherle\truezip\fs\FsMountPoint.class(de\schlichtherle\truezip\fs:FsMountPoint.class):warning: Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.DefaultAnnotation'
de\schlichtherle\truezip\fs\FsMountPoint.class(de\schlichtherle\truezip\fs:FsMountPoint.class):warning: Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressWarnings'
de\schlichtherle\truezip\fs\FsPath.class(de\schlichtherle\truezip\fs:FsPath.class):warning: Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.DefaultAnnotation'
de\schlichtherle\truezip\fs\FsPath.class(de\schlichtherle\truezip\fs:FsPath.class):warning: Cannot find annotation method 'value()' in type 'edu.umd.cs.findbugs.annotations.SuppressWarnings'6 warnings
D:\>java -cp c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-file\7.4.3\truezip-file-7.4.3.jar;c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-driver-file\7.4.3\truezip-driver-file-7.4.3.jar;c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-kernel\7.4.3\truezip-kernel-7.4.3.jar;.
test
D:\
D:\>scalac -cp c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-file\7.4.3\truezip-file-7.4.3.jar;c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-driver-file\7.4.3\truezip-driver-file-7.4.3.jar;c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-kernel\7.4.3\truezip-kernel-7.4.3.jar
test.scala
error: error while loading TFile, Missing dependency 'class java.nio.file.Path', required by c:\Users\OlegYch\.m2\repository\de\schlichtherle\truezip\truezip-file\7.4.3\truezip-file-7.4.3.jar(de/schlichtherle/truezip/file/TFile.class)
one error found
D:\>java -version
java version "1.6.0_24"Java(TM) SERuntimeEnvironment (build 1.6.0_24-b07)
JavaHotSpot(TM) ClientVM (build 19.1-b02, mixed mode)
D:\>scala -version
Scala code runner version 2.9.1.final--Copyright2002-2011, LAMP/EPFL
Pedro Furlanetto (pedrofurla) said (edited on Dec 28, 2011 6:08:29 PM UTC):
A sequence of bash commands creating and running a small test case.
echo "public class A { public B b; }">A.java
echo "public class B { public C c; }">B.java
echo "public class C { }">C.java
echo classA_scala { varb:B= _ } >A.scala # only to avoid name .classfile name confusion
javac *.java
scalac A.scala
Every thing works fine so far.
rm C.class
rm A.class
Now comes the interesting part:
javac A.java
ls
As you can see, Java compiles just fine.
scalac A.scala
This will cause
{panel}
error: error while loading B, Missing dependency 'class C', required by ./B.class
one error found
{panel}
Scalac seems to be trying to load dependencies of B, despite B being already compiled.
So I use a library which is supposed to work on jdk6 and jdk7. In some places it uses nio2.
Javac is to use this library just fine, but scalac throws
here is a transcript:
here is test.scala
here is test.java
here is path to dependency packed as one jar
http://repo1.maven.org/maven2/de/schlichtherle/truezip/truezip-samples/7.4.3/truezip-samples-7.4.3-jar-with-dependencies.jar
The text was updated successfully, but these errors were encountered: