How Java is Architectural neutral? [duplicate] - java

This question already has answers here:
What is the difference between "architecture-neutral" and "portable"?
(9 answers)
Closed 6 years ago.
I read that "Java is architectural neutral because it have the capacity to read the factor key of one processor into the factor of another processor."
Please explain me in detail the above statement?

Java was designed to support applications on networks.
To enable a Java application to execute anywhere on the network, the compiler generates an architecture-neutral object file format--the compiled code is executable on many processors, given the presence of the Java runtime system

Related

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

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/

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.

License key generate for java project [duplicate]

This question already has answers here:
Best Practice: License enforcement for Java Desktop application [closed]
(5 answers)
Closed 9 years ago.
I am creating one Java project.
I want to know how I can create license key for security purposes.
Have you looked into TrueLicense? It's an open source, free software.
I've used it myself to successfully manage licenses on a large scale commercial product. It takes a little work to get it up and running, but it covers all the required bases, and it's hard to beat free.

Check if screensaver is active [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to determine if a screensaver is running in Java?
is there any way you can find out if the screensaver is active with java? I've searched the web but the only things I found was very complicated native code... My program is made for windows only.
Java cannot handle system tasks directly.
You should use JNI (Java Native Interface) or JNA (Java Native Access) to do it.
I haven't tried this code, but they claim to answer your question with JNA as Ammar suggested: Screen Saver State.

javac using multiple CPU cores [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Using multiple cores/processors when compiling Java
Can javac be configured to benefit from multiple CPU cores?
No, it cannot use multiple cores; however the Eclipse compiler can, if that helps.
See this answer.

Categories

Resources