For Programmers: Free Programming Magazines  


Home > Archive > Prolog > January 2006 > jProlog and RedHat Linux 8.0









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author jProlog and RedHat Linux 8.0
Randall P. Hootman

2006-01-12, 7:58 am

I did an interesting experiment on my RedHat Linux 8.0

1. I downloaded the source java files for jProlog from
http://www.cs.kuleuven.ac.be/~bmd/PrologInJava/

2. I recompiled the source java files using Java 1.5 as the original
class files had been compiled using Java 1.0.2. I used the following
bash script:
for i in *.java
do
javac -classpath . $i
done

3. Using gcj, I compiled the class files into a standalone native code
Prolog. The command line to do this was:
gcj -classpath . *.class --main=Prolog -o Prolog

Now I have a standalone Prolog interpreter that I can modify because I
have the source code in java!

Just posting this in case anyone else is interested.

Randy Hootman KG6QQV
www.modoro.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com