How to use prolog rules in a java application [duplicate] - java

This question already has answers here:
Embedded Prolog Interpreter/Compiler for Java
(13 answers)
Closed 8 years ago.
I hope my question is not a duplicate... I have implemented some rules using Prolog. I would like to ask if there is any way to use these rules in a java application. I do not want to implement everything in java from scratch. I would like to embed the code written in Prolog in a java application. Thanks in advance.

There are various ways. But judging from your question you're looking for a quick solution.
JPL (since i notice a lot of people are using SWI nowadays):
http://www.swi-prolog.org/FAQ/Java.html
The GNU Prolog library for Java:
http://www.gnu.org/software/gnuprologjava/
SICtus (It comes with syntax examples, etc so it shouldn't be hard for you to use it quickly)
http://sicstus.sics.se/sicstus/docs/3.7.1/html/sicstus_12.html
tuProlog (Said to be the easiest to use, beginner friendly)
http://www.alice.unibo.it/xwiki/bin/view/Tuprolog/

Related

alternative for Javadoc? [duplicate]

This question already has answers here:
Are there some good and modern alternatives to Javadoc? [closed]
(12 answers)
Closed 8 years ago.
I have been using Java for years I really like the language except javadoc.
The document generated by javadoc makes me feel I am browsing web in 1990s. To make some beauty doc you have to insert obscure html tags which make your comments almost unreadable before generating html file.
I am seeking some alternative for javadoc, reStructuredText is my first choice but there is no doclet for it. Another choice is markdown, but it mainly aims to html so I treat it as my last resort if I can't figure out any other way.
I am also considering split comment from java file, but it bothers developers who browse code in IDE.
Any good ideas?
You may not need to use an alternative to Javadoc.
If you are using Java 7, the new version of Javadoc has been redesigned.
Here's an example of the output: Java 7 Reference

Can we program a burner software like Nero in JAVA only,... HOW? [duplicate]

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Reading and Writing to a DVD/CD - Java
Is possible to build/code a burner software like Nero in JAVA Only ? ... How do that ?
That's will be great if it's possible !!
Thank you
No. Java does not have direct access to the hardware from pure Java code. You'd have to use native code loaded via JNI calls.

Is there any program like LINQPad for Java? (Not a duplicate!) [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Is there any program like LINQPad for Java?
My question is similar to Is there any program like LINQPad for Java?, but not the same.
Like the author of the original question, I am not interested in the database quering capabilities provided by LinqPad.
What I am looking for is a desktop utility to run short java code snippets. I am not interested in any web based solutions, so groovy web console is out of the question.
(Showing Java byte code is a bonus, but not a must)
Thanks.
This can be done using Eclipse scrapbook pages.

How can I translate a perl script to Java? [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How can I convert OO Perl to Java?
Hello.
I have a perl script and I want to translate it to Java.
Is there any translator/conversor from perl script to Java?
By the way, I'm developing an Android 2.2 application.
EDIT
I have closed the question. Stop downvoting me!!!!!! And if you downvote tell us why!!
Thanks.
You should consider using the Android Scripting Environment so that you can just use your Perl script rather than having to "translate" it to Java (especially if you plan on relying on some translation tool to do it).
It supports Perl, along with Python, Ruby, and some others.
Just my two cents...
I would convert the Perl to Java by hand that way you are 100% in control of the Java code running in your Android application and that way you will understand what the Perl code is actually doing rather than relying on it to work when there is a bug in your Android app.
No. There's the JPL project from the 90's that might've been a workaround, but I'm pretty sure it fell apart along the road.

NLP Library for Java Programming Language [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Java : Is there a good natural language processing library
are there any known open source distributions that one can use like nltk for python?
GATE is the most famous industry-level librarywith a java implementation I can think of.
It is truly powerful.
Otherwise:
OpenNLP
LingPipe
Xerox used to have a set of nice online tools as well, but I don't know if they have a Java implementation or any accessible web-services for them.

Categories

Resources