This is actually a general java programming question, and I’m just looking for any handy resources people here know; it’s quite hardcore, and I know there are people here who’ve more than a passing familiarity with this stuff, so…
I want to find out exactly what files “javac” and to a lesser extent “java” use and how in order to execute. Everything; I have to build a virtual FS to execute them in, so I can’t miss things out. I’m browsing for release notes etc on the sun site, but IME a lot of this less-frequently-used info tends to be broken links, no-longer-linked-at-all, or password protected.
For instance, I know that rt.jar is sort-of sourced into the classpath to provide all the standard libraries (although I’ve never really delved into how/why it changed from being plain ole classes.zip).
For instance, if javac cannot execute without the presence of some of the DLL’s in the accompanying JRE, this is the stuff I need to know! (I’m particularly concerned to find out to what extent the JDK can execute javac if - for instance - you deleted the entire JRE directory).
Or, for instance, what is the relevance of the [jdk]/include directory? IIRC it’s just for JNI, providing c-headers for JNI to compile against, but I may be very wrong ;D.
(just to allay concerns of any Sun people…)
I’m not trying to cut-down the JDK/JRE for re-distribution. I’m trying to write wrappers for javac and java - in a functional programming language. everything needs to be expressed within the domain of the fn-lang (including mapping all the files that javac needs into the fn environment); javac will actually be executed from within a sandboxed environment provided and managed by the fn lang.
Now, I love fn-langs as much as anyone, but it’s enough of a head-**** when you’re already thinking in java that I’d appreciate any help I can get on making the wrappers work. I’d also like to make OS-independent wrappers if possible (probably not), or at least make sensible decisions on isolating and encapsulating the OS-specific aspects into separate fn’s.
