I see you tried to using javaLibs in the build file - that makes perfect sense, but I am counting on reflection from the system classloader right now (I know very lame - I need to fix it eventually).
cheeserTue 12 May 2009
yeah. andy just suggested dumping that jar in one of the ext directories. I did that and it worked. That's definitely a bug there... I might play with that compiler tonight and see about updating that classpath with the contents of javaLibs and see if I can't resolve that for you. But since I have a workaround, I might just finish the task at hand before I get too distracted. :)
brianTue 12 May 2009
I might play with that compiler tonight and see about updating that classpath with the contents of javaLibs and see if I can't resolve that for you
The root problem is that I need to parse the bytecode in the jars myself and build up the Java class representations without using reflection.
My current approach has two major flaws:
it requires the class be the compiler's classpath
it won't let the compiler cross compile Java FFI while running on .NET
Reflection was just a quick hack to get everything working, but it isn't the long term solution.
cheeser Tue 12 May 2009
I'm having a bit of trouble and need a some help here. I have this source file:
compiling gives me the following output:
and my build.fan is:
What am I missing here? i tried explicitly having a
using
line for each type from the servlet api but it still complains about that package.brian Tue 12 May 2009
Currently the jars you compile against have to be in the classpath used to run Fan.
See this section.
You dump the classpath the compiler is using:
I see you tried to using
javaLibs
in the build file - that makes perfect sense, but I am counting on reflection from the system classloader right now (I know very lame - I need to fix it eventually).cheeser Tue 12 May 2009
yeah. andy just suggested dumping that jar in one of the ext directories. I did that and it worked. That's definitely a bug there... I might play with that compiler tonight and see about updating that classpath with the contents of javaLibs and see if I can't resolve that for you. But since I have a workaround, I might just finish the task at hand before I get too distracted. :)
brian Tue 12 May 2009
The root problem is that I need to parse the bytecode in the jars myself and build up the Java class representations without using reflection.
My current approach has two major flaws:
Reflection was just a quick hack to get everything working, but it isn't the long term solution.