If I were to have a website with a webhost like godaddy, how could I run a java program on that website as a server so that people can connect to the game with the address: www.whatever.com as opposed to an ip to connect to my pc?
The answer depends on your goal. You either have them give you a virtual or dedicated server that you can log in to the OS and create the application as an executable, or they allow java servlets.
You can read a little bit about servlets here: http://en.wikipedia.org/wiki/Java_Servlet
I know crappy, I posted a wikipedia entry...lol :) Cheers
EDIT:
I just saw the last part of your question and realized also what you are attempting. You need a virtual or actual server that you can log into the OS remotely. You need a DNS server for the domain name resolution. This can be provided by go daddy. I think you can get a virtual dedicated for like...30 a month or something? Depends how much performance you need.
Related
I have a serial to USB device and more than one of those can be connected to the computer. I need to query and retrieve a list of COM ports that the devices are connected to. In Windows Device Manager you can get the COM port + friendly name of devices that are connected at the present time. This list is dynamic.
Reading from the registry did not work because the information stored is stale and static, not dynamic.
Devcon (from Microsoft) does list the ports that devices are connected to, but it cannot be used in my app because it is not re-distributable.
Any ideas or preferably, a solution?
I had to solve a similar issue just some weeks ago. I came accross the Jawin-Project that provided everything you need to use WMI-Queries. It is already quite old but works like a charm if you follow the documentation. A nice German walkthrough can be found codegods blog.
For me, it did not solve all problems (I had some very specific things to find out about the target device), I finally created an own JNI (Java Native Interface) Class and DLL in C incorporating the windows API.
I hope this is what you searched for.
Did you try this jUSB API or This example ?
I hope this will help you.
Use JNA (https://github.com/twall/jna) and take a look at the following page. It might be a useful point to start from.
http://www.digitalinferno.com/wiki/Wiki.jsp?page=JNAPrintDevices
I am looking at Java Native Access as it provides access to the windows API from pure Java code - no JNI to deal with. I was concerned about the LGPL license; whether it can be included in a commercial product but from what a few posts in the newsgroup say, it can be.
After I try it out in the next few weeks, I shall post back here.
I'm using JMF in making a live stream from a webcam at server to an applet.
That when any client open the applet, he 'll be able to watch live stream from the webcam at the server.
Till now, i'm just able to make a unicasting streaming at local network only that i must enter the destination ip # the transmitting code at server.
i want a way to make the transmitting available to each client access the applet from any remote machine.
Thanks in advance,,
Ali Zein
after all of us dominated by 'easy to use' flash, java applet and its versatility has been forgatten. however if you say 'i am a java guy', study hard the jmf book and SO's pages.
there are really helpful answers by the experienced programmers.
a 3. party free option would be MODERATOR-CONFERENCE from http://www.kemottron.com
it has several extra functions including live broadcast from webcam and desktop.
cheers,
Helo ,
I want to create desktop sharing solution , without having the user to download any software .
Can java help ? I have seen such a solution so I know it for sure that desktop sharing without downloading software via browser is possible .
I am not sure how to achieve it .
Does any one know ?
You can achieve this on client side. This means that you have to create thin client that shows screen of remote machine, catches keyboard and mouth events and passes them to other side. If you wish to complete the task without downloading solution on server side you can use existing software already supported by targeted OS. For example remote desktop for Windows or XWindow remoting for Unix systems.
So, architecture of system you are dreaming about will look like the following.
Server that creates remote desktop connections to target machines.
Web front-end that delivers the screenshots from the remote desktop to client's browser, catches events, brings them back and emulate user's behavior for the remote desktop session.
Please pay attention that if you wish to create something that will really work, e.g. be responsive enough, support many concurrent connections etc you need at least 5 developers for at least 1 year (full time). After a year you will get solution similar to LogMeIn but worse (I mean quality).
Anyway I wish you good luck.
Almost all OS's support this out of the box. Windows and Mac with Remote Desktop, Linux with X server
I'm currently developing a support system for a university. The system is written in PHP and I would like to be able to get a current list of software and basic computer information on a computer. Basically when one of the faculty or staff creates a ticket from our web interface, I would like to have a Java Applet or similar that could be run and would return the information to the help desk PHP script. Does something like this exist?
There are lots of programs that do this sort of thing. Googling for "CMDB" should give you a reasonable start -- a couple of them are open source, though others aren't even close to free (e.g., BMC Atrium).
To keep things closer to topical (i.e., programming related), one of the main frameworks for this sort of situation is called Web-Based Enterprise Management (WBEM). On Windows this is implemented as WMI. On Linux there are a couple of implementations including OpenWBEM and HP WBEM.
In Java? You'd probably have a hard time even finding, let alone making, an applet that can get that info without already having some software installed on the user's end. The biggest features of java are (1) that it runs in a virtual machine (read: getting to the underlying OS/hardware is not something it likes to do), and (2) that in a browser, applets generally run in a "sandbox" that keeps the applet from doing anything remotely dangerous. Basically the most it can do is tie up resources.
Number 2 can be worked around by signing the applet, but that'll require you either buy a code signing certificate or install a self-signed certificate on any computer that'll run your app.
Number 1 might be worked around with some help from Runtime.exec and ...\wmic.exe, but that assumes the WMI stuff is installed -- which is rarely the case unless someone does a full install.
sorry in the past I have not been able to formulate my question coherently. This will be my last try. =|
Basically, I want to do something like this website is doing: http://www.ninjavideo.net/video/56388. They are rendering an iframe that points to a port on localhost. You will see nothing in the iframe if you dont have their applet running (which can be found here: ninjavideo.net/applet.php ). I want to write a script that does something like what applet.php is doing, but I don't think they are using only php code as it won't run on computers that don't have php installed. Do you suppose they are using Java/C to do this?
Thanks for all your suggestions.
An Applet is basically a piece of Java code which is served by a webpage and is supposed to run at the client machine. You can learn more about Applets at Sun's own Applet tutorial. If you're green to Java as well, then I recommend to go through Trials Covering the Basics first. Opening sockets (ports) using Java code is covered here.
That PHP script is just serving the applet code from the server, so that the client can download it.
You could do this in PHP using a ready-to-run Apache setup (there are some that are ready to run from a USB key, should be possible to make into something that a client can install, but is complicated, see e.g. this tutorial) or a product like NuSphere Dock:
PhpDock is a deployment platform for PHP applications.
PhpDock enables you to deploy any PHP web application as a Stand Alone Windows Desktop application w/o any changes in the code.
PhpDock combines NuSphere's powerful embeded Srv webserver and browser components.
I would usually say that if you are looking to build a Windows application, you should go with a tool that is aimed at just that, i.e. C++, C#, Java, the .NET platform, Delphi, and the likes. But if you need some kind of daemon or local web server, you may actually be well off with a product bringing a web server to the desktop.