Friday, February 25, 2011

Dependency Hell

I seem to be stuck in Dependency Hell when trying to write some Java code that will compile Java source; I'm trying to use Apache JCI but it's turning into a nightmare. Here is the list of all its dependencies, which need to be downloaded one by one (at least, I can see nowhere where they are all included in one nice download).

But unfortunately, at least one of the dependencies (as I could see no point looking for any more) doesn't exist, and I can't find it after lots of Googling. So, as far as I can see, there is no way to use Apache Commons JCI.

5 comments:

Charlie said...
This comment has been removed by the author.
Charlie said...

Why are you using Java to compile Java?

If you want a really good build solution, check out EBuild:
http://ebuild-project.org/

Steve said...

Cos it should have been easy according to the example at http://www.java2s.com/Code/Java/JDK-6/CompileaJavacode.htm - 2 lines basically.

My overall reason is because I'm going to write a simple version of Basic that hopefully my kids will be able to use.

I've finally got it to work now by using the standard built-in java compiler.

fun hut said...

dependency hell , what an idea sir ji
chk my blog too

fun hut said...

thts a nice blog man , i like it