Here are the steps I went through to get working with Japhar:
1. Download NSPR, Classpath, Japhar, JDK.
2. NSPR: make NSDISTMODE=copy DIST=/usr/local/nspr
3. Japhar: ./configure --with-nspr=/usr/local/nspr --enable-logging
--enable-profiling --enable-debugging --prefix=/usr/local/japhar
4. Japhar: make && make install
5. Classpath: ./configure --with-japhar=/usr/local/japhar
--enable-developer-mode --prefix=/usr/local/classpath --with-jikes
6. Classpath: cp -R /usr/local/nspr/include/* include (put NSPR includes
into Classpath include dir so that Japhar's jni.h can reference them).
7. Classpath: edit lib/Makefile, change the jikes line to add
JDK classes.zip at the end of the classpath.
8. Classpath: make && make install
9. Classpath: for each library in /usr/local/classpath, do "ln -s
libjaphar_<libname>.so lib<libname>.so" (for example, "ln -s
libjaphar_javaio.so libjavaio.so").
10. Include /usr/local/classpath/lib, /usr/local/japhar/lib,
/usr/local/japhar/lib in LD_LIBRARY_PATH.
11. Include /usr/local/japhar/bin in PATH.
12. Set CLASSPATH to /usr/local/classpath/share.
13. (If you want to test Japhar with JDK, simply set CLASSPATH to the
JDK classes.zip.)

Replace /usr/local/XXX with directory of your choice.  To run japhar at
this point, just run "japhar classname".

Can someone tell me if there is an easier way to deal with any of these
steps?  It seems like there are a lot of them.  Specifically, am I doing
any of the Classpath steps (5-9) wrong?

Anyway, this should help the guys on the list who want to get it
working.  Incidentally, I have a patch ready to get Japhar actually
*working* with Classpath.

--John

Reply via email to