How to put normal java code into a website [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
is there any way to put normal java code into a website? i have made a game with DrJava and i would like to put that somehow onto a website, is there a way to do such a thing? like would I have to convert java to javascript or what? this is not an applet and is just written in normal java, and i am no expert in coding. please help

You could always run the Java program from an applet. You might need to sign the applet and take care of permissions if you need filesystem or socket access.

Java has applets. However, like SLaks said Java's not meant for the browser Sun tried early on to make Java the programming language of choice for the web client-side and failed.

Related

Can I code a Java program that will call a program in another language (Rust) to do some calculations? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'd like to make a simulation, but I'd like to write the code to display the state of the simulation and the user interaction (frontend?) in Java (Kotlin actually, but I don't think it is relevant here) for the JVM, and I'd like to write the actual code of the simulation (backend?) in Rust. Mostly because I think it would be neat and that I would learn something.
Can I achieve this, and if yes, how? It might be relevant that the data that needs to be exchanged between the two programs is just a fixed-size array of floats.
Thank you for your help.
A Rust program compiles to native code (executable or shared library). To call native code from Java you have to use JNI: https://www.baeldung.com/jni.
You may find the jni crate useful for the Rust side of the project: https://docs.rs/jni/0.16.0/jni/

Running old Java applets from book "Data Structures and Algorithms in Java" [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am trying to run the Java applets that accompany the book "Data Structures and Algorithms in Java" by Robert Lafore.
They can be found on this site
https://cs.brynmawr.edu/Courses/cs206/spring2004/lafore.html
The applets do not work for some reason. I've tried adding the different url's for the different applets to my exception site list under Java's security configuration, but that didn't help.
Anyone know what might be the problem?
As already said, you should rather avoid applet based samples. However, if you still need them, take a look here:
https://download.java.net/openjdk/jdk7u75/ri/jdk_ri-7u75-b13-linux-x64-18_dec_2014.tar.gz
You will find appletviewer there. Appletviewer allows you to run applets. It might be you will have to play with JAVA_HOME environment in order to make sure you use this particular version of Java.

Windows Hello API [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to use Windows Hello Face and Fingerprint API in my web application.
The websites I found show C# coding but my web application is developed in Java.
How do I integrate Windows Hello Face and Fingerprint API in my Java web application?
I also wonder, but I have find out, that Windows Hello is based on Intel solution Real Sense https://github.com/IntelRealSense/librealsense also for Linux. I dont see, that they have Java API, but I would say, that java native wrapper can be created for library. There is also documentation https://software.intel.com/sites/products/realsense/person/developer_guide.html#3.2.3_Person_Recognition. I have not tried it yet, but I think, it can be good point of start.
this also may help us to get stuff working https://software.intel.com/en-us/articles/code-sample-facial-recognition-using-intel-realsense-sdk

Is it possible to embed a c++ or java compiler inside Unity 5 scene [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm implementing a game which teaches programming just like robocode and other related applications but I want to implement this game in unity. the user should answer problems by writing his code in the text-area and then compile it, then I should receive his output if there is no error.
Seriously I've searched on google for 3 days and I can't get any answer, it is my graduation project so please I need serious help.
Not a Unity expert, but you could get away with calling the compiler as an external program - see this example, where they go over how to call a program in a Windows environment.
You'd have to make sure that the compiler is installed and accessible, but other than that things should work.
As a general pattern, this is the way most other programs would access a compiler, rather than including it in their binary.

is it possible to build a debugger around the java scripting engine? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
we are using the java 6 scripting engine in our product, and now we are thinking on adding some debugging abilities.
my question is:
is it possible? does the java 6 scripting engine has the same capabilities like rhino as far as debugging.
some documentation about how to start doing it, some code samples any information would be great since i could not find anything on the web.
thanks
I'd start by looking at how the open source Firebug (www.getfirebug.com) tool is implemented, unless you're completely wedded to the idea of a "pure" sand-boxed Rhino environment (and even then Firebug could probably teach you a few things).

Categories

Resources