Finally, you must add the SWI's bin directory to your
system PATH variable. In Windows, you MUST restart
your system for SWI to become visible to the Refresh
Prolog plug-in.
======================================
When I create a servlet called PrologServ and a jsp file called
index.jsp that can call PrologServ.
But when the browser is "http://localhost/proServ/Prologserv" . It
generate an error
java.lang.NoClassDefFoundError: jpl/JPL.
I have the code in java JPL.init();
Friends Please help me to solve it
I really need to solve it asap.
Thanks in advance
jpl.jar is not found in "SWI's bin directory" but in
its lib directory i.e. pl/lib
> If it is not named exactly "jpl.jar", you must
> rename it to 'jpl.jar'.
If it is not named exactly "jpl.jar" then it is not
jpl.jar ;-)
Following this poor advice, perhaps you have copied
pl/bin/jpl.dll and renamed it?
> Finally, you must add the SWI's bin directory to your
> system PATH variable. In Windows, you MUST restart
> your system for SWI to become visible to the Refresh
> Prolog plug-in.
This "MUST" is not a must for XP at least, and there are
less global ways to make SWI's bin directory available to
an Eclipse project.
> ======================================
> When I create a servlet called PrologServ and a jsp file called
> index.jsp that can call PrologServ.
>
> But when the browser is "http://localhost/proServ/Prologserv" . It
> generate an error
>
> java.lang.NoClassDefFoundError: jpl/JPL.
> I have the code in java JPL.init();
It's not finding jpl.jar (see above).
cheers - Paul Singleton
Thank Paul, now I'm still have problem with that thing.
- I have jpl.jar in the folder C:\eclipse\plugins
\org.refresh.prolog_1.0.0\lib
- When I created Servlet project, I need to add both External Archive
from C:\eclipse\plugins\org.refresh.prolog_1.0.0\lib and c:\program
files\pl\lib\jpl.jar.
- I use PL w32pl5652.
- Then I export my project into war file. Then call "http://localhost/
proServ/Prologserv" in the browse. It
generate an error
java.lang.NoClassDefFoundError: jpl/JPL.
I have the code in java JPL.init();
Thanks friends