We have a "desktop" application written in Java Swing that currently uses Java Web Start to instantiate the app.
We have a need to run this application INSIDE an ActiveX Browser object.
Does anyone know if this is possible and, if so, how it could be done?
Thank you!
EDIT: is there any more information I could offer that might make this question more answerable?
You can try compiling the application with iKVM, basically making it a .NET application which should be able to run within an ActiveX component.
My Java ignorance is showing. It appears that starting in v6 you can run Swing Applications in a Java Applet inside a browser using the same basic jnlp setup (with minor changes) as the Web Start method. There are some security issues I have to work out moving to support v6, but once that is fixed we should be in business!
Related
I am having the same problem with this one >
Using Java Service Wrapper GUI to interact with desktop on windows
I am currently using Java Service Wrapper to wrap my Java program into a Windows Service. It has a requirement to get hold of an open Window and control it (i.e. press buttons).
I have made it an interactive service and even installed it as an admin user and still no success.
I am using JNA library to get the Windows instance which always returns null if it is running as a service but successful when triggered manually.
hWnd = User32.INSTANCE.FindWindow(0, targetWindowTitle);
One comment in that thread says , it needs to use Java RMI. Do we have examples on how to do it?
Thanks!
I am afraid that is not possible for security reason.
Take a look at the Java Service Wrapper wrapper.ntservice.interactive property documentation at https://wrapper.tanukisoftware.com/doc/english/prop-ntservice-interactive.html
I'm currently planning on making a simple IRC style chat client and server system using Java for practice. I did some research into different ways of including the client functionality on a webpage like applets and java-web-start. I would like to have the client running on the users machine instead of the server itself. As I interpreted, out of the two, the applet pretty much does exactly that and seems way less effort to set up.
However, it turns out that applets have their own graphical implementation using "Graphics" class to render things like text, lines and shapes. Instead of going for something fancy, I would like to use a simple console interface like cmd on windows or shell on unix systems.
Is it possible to have this type of console running on a webpage as java applet or would I basically have to code the entire graphical look using the tools provided by the Graphics class? For this practice project, it would be ideal just using simple functionality provided in console windows like "nexInt()" and "system.out.print()" instead of having to add complex elements for input and output.
TL;DR:
Is it possible to embed an OS console within a webpage using java and what would be the preferred method of going about it?
Is it possible to embed an OS console within a webpage using java ..
AFAIU it is not possible to embed a console in a Swing or AWT desktop app. As far as embedding that into a web page, that would require an applet. Chrome and FF have completely removed support for applets and IE is set to follow.
I have one swing application that i want to run on browser.
What is the best way to achieve it ?
Is jnpl is one this solution ?
I tried jnpl but when i tries to run with -- http://localhost:8080/Test.jnlp -- One error window opens with error unable to launch application
If applet is the solution then , if possible please ,give me one sample applet application.
Thank you in advance
In fact, JNLP won't allow you to run your application a browser (as say the unofficial JNLP FAQ, JNLP!=Applet). It will instead allow you to easily distribute current (and nexts) version of your application to your clients, by simplifying the install process.
The simple way to do it is to transform your application into a real applet (complet with all its usage restrictions), then make this applet detachable, using new Java6 feature. I unfortunatly only found info on that very excellent feature in a blog post.
I'm creating a Win32 application that controls another application which is coded in Java using AWT components. I figured that if I can retrieve the main List of the application and cast it with the JLIB library I'd be able to read its content.
First of all, am I right or I won't be able to get the real content of the List ? If I'm right I'd like to know how to achieve this since I didn't found any good spy software for Java and Spy++ only show a SunAwtComponent. Which I presume in the container for the whole Java application.
I'm not expecting someone to tell me how to do the whole thing but only a couple of direction would be really great since I've been looking for that for a while now.
Thanks for the replies !!!
Quite likely the Java application actually uses Swing, not AWT. Swing draws its own widgets on top of a single AWTComponent, so the list widget that you see doesn't exist from Windows point of view.
I assume you cannot modify this Java application so that it can be controlled over some reasonable API (e.g. JMX or REST)?
You can try running the JVM with JPDA debugging interface enabled. You can then use JPDA APIs to change data structures and directly call methods on any object in that program. Finding the right ones to call will be hard, though.
See http://download.oracle.com/javase/6/docs/jdk/api/jpda/jdi/index.html
in our application we have a Java applet running inside a .NET browser control. It is a know issue from Sun that running an applet this way may crash the control.
Has anyone come across the same problem and solved it?
Atm we are running the applet in a Webbrowser but we need to run it in a browser control.
Thx for any help.
After some time the problem solved itself.
It was indeed a bug in the java runtime which is now fixed by sun. Just make sure your JRE is > 1.6.10.
If you wrote the applet and have source, then you could try to migrate the Java Applet to a J# Browser control and stuff that in your .net application.
Here is a link - http://msdn.microsoft.com/en-us/library/aa290083(VS.71).aspx