Is there a Java/PHP bridge? [duplicate] - java

This question already has answers here:
How do I add a Java backend to an existing PHP site without adding a tomcat server for Java Bridge?
(4 answers)
Closed 9 years ago.
I have created a program but i need to get a java program to run a php script with some arguments and then get the php script to send some arguments to the Java program. I know this question has been asked a lot of times but it seems like the only answer i can get is that php can do this but java cant but there must be a way to do it. Right?

You can run PHP from the command line:
http://php.net/manual/en/features.commandline.php
This should enable your Java application to run it, and capture it's return values.

Related

Run Java method from a C++ program [duplicate]

This question already has answers here:
How to access the Java method in a C++ application
(7 answers)
Closed 6 years ago.
So, I want to use C++ to write an editor for my research, but the program that would receive the .txt generated by the editor is already written in Java. Is there a way for me to call the main.java method from my c++ program(since I'd have to pass in the .txt file as a parameter I guess I'd have to do so by compiling the java src code at runtime)?
It it possible to run a java method using C++ have a look at this.
If you just want to launch your java program then you don't need JNI.
system("java -jar program.jar");

Creating a standalone application in Java [duplicate]

This question already has answers here:
What's the best way to distribute Java applications? [closed]
(15 answers)
Closed 10 years ago.
I want to create a software using Java. I have coded the application with Java Swing and using backend as MySQL server 5.05.
How can I create an application that can be installed on Windows, and run like other software?
Compile it as a JAR and run it in the Windows JRE.

Calling java from php [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Call Java method from PHP5
How can I call a java application from a php application, taking note that they reside on the same server?
No WebServices or any http stuff.
Can I do that and how can I do it?
You can use php's exec(...) function to call java on the command line.

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.

Eject CD using Java [duplicate]

This question already has answers here:
How Do I Eject a Volume in Java?
(2 answers)
Closed 3 years ago.
Is there any simple way to eject the D drive in Windows 7 using Java? I don't particularly care about cross-platform compatibility at the moment. I've done some research andRuntime.getRuntime().exec(); has shown up most... but I have no idea what to put as the string parameter, I've tried a few things but it just throws up on me!
You can pass the vbscript code to eject the cd as an argument in the exec() function.

Categories

Resources