I am using fantom compiler that exported into jar file via JarDist. When I am trying to compile fantom code that has dependencies to java files I get an error during imports resolving: >JarDistEnv.findFile not implemented: Is there any way to define directories to search (such as {java}lib/ext/ or {fan}lib/java/ext/) for JarDistEnv?
brianWed 12 Jun 2013
That method is really designed to find a file based on the fantom home directory. But inside a Jar there is no notion of a fantom home directory (that is sort of the whole point of the jar environment to not require a fantom installation). So its a bit of an impedance mismatch.
zapletnev Wed 12 Jun 2013
I am using fantom compiler that exported into jar file via JarDist. When I am trying to compile fantom code that has dependencies to java files I get an error during imports resolving: >JarDistEnv.findFile not implemented: Is there any way to define directories to search (such as {java}lib/ext/ or {fan}lib/java/ext/) for JarDistEnv?
brian Wed 12 Jun 2013
That method is really designed to find a file based on the fantom home directory. But inside a Jar there is no notion of a fantom home directory (that is sort of the whole point of the jar environment to not require a fantom installation). So its a bit of an impedance mismatch.