kiranJNI wrote: Can anyone please help me with a java program that checks whether the network connection is up or not?? The program shld check the n/w connectivity is up and then connect to the server. If your question was really "The program should check if it's possible to connect to the server and then connect to the server", then don't ... |
hi. i want to access the registry of a remote machine, not via the cmd commands, but via a dll file. all the dlls i have found that set the registry are complied and i cant access their functions (i dont know the names and stuff). im looking for a dll with instracations or header.. so i can access it from ... |
hi all, i have an issue with accessing a share folder with password protection through java. consider my application in server A and a share folder in server B. and both servers are in same domain and through my nerwork places from server A am able to access the share folder with password. but am unable to access the same share ... |
Hi, About three months ago I moved out of the house into a flatlet on the premises. I connected the whole house up to the internet through a repeater and my brother and I often play games with each other over the lan. The first problem is communication, I have not found any good LAN chat programs that we can use, ... |
|
Hello java developers! I am currently developing a nonblocking socket network. Can someone explain how the selectionKeys are generated? For example when the client attempts to write to the server does the (isReadable) SelectionKey selected by the Selector on the server's side get formed once the client finishes writing or while starting to write? I could not find a good answer ... |
|
|
Hello Orodreth, first typing in all capital letters is considered shouting, and thus rude. Please don't do it in future. You might be able to get a list of computers on your network via Samba/JCIFS. And then ilterate over each of them to build the list. But otherwise I don't think you can't do this. Why do you need it? |
1. If a call throws an exception, you have to either catch it or pass it up by doing public static List createTarahsNetwork(...) throws WhateverExceptions Since you're doing the same thing with all the exceptions you're catching, you can just do: catch(Exception e){ ... } 2. No idea 3. Dunno! Too late into the morning to think about it. 4. Not ... |
Hello, Sorry for the long thread, but I beg you to take your time reading it, i need help urgently, thank you I am currently developing a nonblockingsocket network. The server receives isReadable() keys and responds to them by parsing the bytes once decoded into strings and then deciding what action to take depending on the keyword (which i already defined ... |
|
|
Thanks anyway, but im sorry if im just a student and dont understand yet what is on half that page. I have bookmarked so i can watch as im learning on college. I just wanted a simple example how to encrypt a message from the client side and decrypt on the server side. You feel upset , just ignore. Thanks anyway. ... |
|
|
hi everyone, i found a way to send and receive video over the network but it doesn't work. can you help to find any documentation or book or a piece of code for this work? also there is another problem. i have downloaded the documentation of jmf twice. but i cannot find the classes RTPManager and CaptureUtil. the platform(netbeans 6.0) which ... |
Hi, I need to get and alter the local PC's IP address and Gateway address. I know how to get the IP address using InetAddress, but I have a few questions. 1) Is is possible in Java to change the local PC's IP address? 2) Is it possible and if so how do I obtain the local PC's Gateway IP address ... |
Hey everyone, I've got a design question for you guys. I have an program that could potentially be run from multiple workstations on a network. When this program starts, it needs to know if there are any other instances of itself already running somewhere on the network. The only way I could think of doing this is creating a temporary file ... |
|
Ok, im a complete noob in networking and wanna create a multiplayer game where 10-100 players can interact at the same time. Ive heard you need a server to do it, my question is can you get a reliable FREE server that you dont have to maintain? Or is there a way not to use a server? Anyways, whatever is the ... |
|
hi java friends! i am a pretty good programmer but i know nothing about java and networking for a final project for AP Computer science i would like to make a network gamed. If i can get the basic code for sending a string across the network i can figure out the rest. SOOOOOOO my question is, can someone give me ... |
Hi, One of my client is using a database application at their retail outlets. They have around 40 outlets located at various parts of the country. Now they want to set up a database at their Head Office and transfer all the data from the retail outlets to it. There are broadband internet connections available at all the outlets but there ... |
|
Although I have to say, if you haven't ever programmed in Java before then trying to work with somebody else's code which you downloaded is going to be challenging. Good thing you have a whole year to work on it. But you might consider waiting until you have a little more experience with Java before diving right into this project. Good ... |
Hi, i have multiple instances of a program over a local network, all adding data to a mysql database. Is there a simple way to notify all instances of my program of any changes to the database by another instance. One way i thought up was to create a server socket, have every instance connect to it, and when they update ... |
We have a server implemented in c++ and we need to communicate with the server using java client, currently the vb client is communicating with the server through a c++ dll, we tried with communicating with the server using java JNI and it is working fine, The dll is using some of the dll's of windows like wsock32.dll for socket communication ... |
I have to say; Java is not the most natural environment for this kind of stuff which is down and dirty with the operating system. You'll probably have to find a 3rd party library, of code the core access stuff through JNI. You could look at a COM+ connection with the Windows OS. MSDN is probably your best source of information. ... |
Hi, I am relatively new to java programming, but have written several small (but usefull) applications. My school principal asked me to write a program that keeps track of pupils who broke the hostile rules. Thus far I have a graphic interface and a connection to an MS Acces database. Our school has a server based network and every pupil has ... |
|
Hello, I'm currently working on a Client-Server application, the application itself it's like a drawing board, the client will send a drawing command (already done), the server will catch the command (done this part too) and all the clients connected to the server should draw accordingly. Now, I have an object called "Cursor" which is the one in charge of drawing ... |
Hi! I'm looking for the best way to execute a method via network. My idea looks like this: class MyThread extends Thread { public int ID; // variable is being changed by object of other class that is communicating with other program via network void run() { while(true) { swich(ID) { case(1): do_smth(); ID = 0; break:; case(2): do_other(); ID = ... |
Hi all, I need to send a signal from my computer to antoher computer using a Java program. The two computers are connected with the help of a network adapter (like an ethernet card). How can I do this in java? Is RMI helpful in this scenario? Any help or examples will be appreciated. |
I have a modem connected to my wireless enabled router. I was thinking to write a set of program to broadcast message within the confinement of my router. I do not want to use a client - server architecture since I ave no server to host it and don't wish to use that architecture. |
i am having trouble of thinking of a solution for storing road network data. i tried using arraylist but when i move a node, the adjacent segments must also move so i have to search the adjacent segments on the arraylist. this will take a lot of time if i have a big road network. can anyone suggest an idea? thanks ... |
import java.io.*; import java.net.*; public class ConsumerClient { private static InetAddress host; private static final int PORT = 1234; private static Socket link; private static Resource item; private static BufferedReader in; private static PrintWriter out; private static BufferedReader keyboard; public static void main(String[] args) throws IOException { try { host = InetAddress.getLocalHost(); link = new Socket(host, PORT); in = new BufferedReader(new ... |
import java.io.*; import java.net.*; public class ConsumerClient { private static InetAddress host; private static final int PORT = 1234; private static Socket link; private static Resource item; private static BufferedReader in; private static PrintWriter out; private static BufferedReader keyboard; public static void main(String[] args) throws IOException { try { host = InetAddress.getLocalHost(); link = new Socket(host, PORT); in = new BufferedReader(new ... |
|
|
(2) This is in the primary class called Model.java. I am getting a NPE in the main model in the buildModel() method at this line: "Node node = (Node) nodeList.get(i);" I think it has to do with my class casting. My casting is a mess, but I'm not sure how to fix it. Here are the three methods in which I ... |
|
I have been programmng in Java for some time and I have got the hang of it. But the one thing that puzzles me is network programming. I have had a look as Sun's tutorials but they are too complex. I have also had a look at 'Killer Game Programming in Java' and the networking is a bit too advanced to ... |
|
We are working on an application that displays the File System files in the form if Windows Explorer in an XUI dialog. How do we fetch the subfolders of My Network Places when the hierarchy of the folders is not known. I am also aware that retrieving the file list of files/folders under my network places is not possible using File ... |
|
The file:// transfer type means to look on the local disk, not over the network. You're making it look for a file named "192.168.1.2". What's on that host? Does that host have a web server? Does it have an ftp server or an ssh server? Does it provide a networked filesystem or something like Samba? |
|
im trying to experiment a project by writting a program for a network. thers's a network of 8-10 computers. i need to get the ip addresses of all the computers a computer is connected at a time. i mean if a computer is connect to only 1 and 2(just names) computers i want to get the ip's of 1 and 2 ... |
the problem with the files, its that you could registry the initial date, but you could not check the time that have passed because the user could just copy all the encrypted files and re paste in the same location after lets say 3 weeks, if so, it still would be valid for the application. |
hi, my requirement is through java i need to connect ot VSS/CVS and get the latest file from it. all this is remote. through ip address i need to connect to system and get in to VSS (visual source safe) and get the latest file. any help will be much apprciated. thank you in advance. |
Hi All, The program code I have given below is hanging and not even raising any exception, not even timeout, why I could not understand. Please Help... Example URL: http://www.mymortgagepros.com Please try this code on this URL, I am getting problem on this URL, Some Urls whereas are working perfect... public String getBufferedData(String str) { URL url = null; String line ... |
hello. my name is james mcfadden and i am a final year (4th year) undergraduate computing student at Letterkenny Institute of Technology. my e-mail address is L00007992@lyit.ie. I have a question here for you. Would you have links to online versions of final year undergraduate Computing exam papers, specifically Networked Applications Development and or Network Management exam papers? I was only ... |
|
|
Hi, I'm using Runtime.exec() to start an application (the VLC media player to be precise) with a remote interface that one can connect to using telnet. Under windows this works fine and when I run my Java program VLC starts up and I can telnet to it. When running the same code under Linux and OS X however I can't open ... |
Hi, I have more than one network interface on my computer and I would like to send out a limited broadcast on both of them. There doesn't seem to be a way to specify which network Interface to use for DatagramSocket. And currently without specification, the broadcast packet seems to be sending to only one interface. I am just wondering whether ... |
|
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at java.lang.String.compareTo(Unknown Source) at BreadthFirstTraversal.townIsProcessed(BreadthFirstTraversal.java:130) at BreadthFirstTraversal.breadthFirst(BreadthFirstTraversal.java:68) at BreadthFirstTraversal.(BreadthFirstTraversal.java:39) at NetworkMenu.actionPerformed(NetworkMenu.java:161) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ... |
I am running a serverapplication on a host computer. Clients connect to this server using sockets, however it is not always the client knows the IP address to the server. Is there any good way for the server to advertice its service so that the clients easily can find it and connect to it? |
Hi, i am trying to build a (distributed) p2p network simultor. What's this? Each PC called "farm" will have tenths of thousands -i hope- "Peer" threads running (say level "0") . These threads will be referenced by a Farm thread running on each PC (say level "1"). In the case where a message needs to be forwarded to a "remote" Peer ... |
Hi, In an application, I need to pass objects between server & client. What are the possible ways to do this? Few ways that I thought of are RMI, CORBA. Each has its own pro's & con's. I thought I can analyze few more methods & analyze their positives & negatives before finalizing. Also, what are the pro's & con's of ... |
|
Hi, I hope that I have put this in the right place, I would like to know if there is such a thing as an actionListener that can be used for networking, instead of needing to do a while loop, and to wait for a response. (I have had a look around yet am unable to find anything on such a ... |
Hello all, We (meens company I work for) are planning to implement distributed system that allows to connect clients and other services. Main goal is to create thing that can talk to any other service created by 3 party. System itself is distributed but we are looking for any standardized client-server connection based technology. As usually, some (that's me) has to ... |
Ok I've read through that whole tutorial but I'm confused or lost on a couple of things. What types are music and movie files are they double, string, Int, float? Is there any api's you guys can point me to, to learn more about them. The tutorial only seems to be good for reading a web page. |
|
|
Hi , I am currently working with code transmission in java. I have a application running on a server, and I want the client to transmit a new class to the server to do the update without interfering with the running appliction. This requires server could dynamically load this new class . Could some one give me some hint? I will ... |
Something to do with java security maybe? dunno anything bout any of that php / network stuff xD Unless you need to open a socket / port up to google before downloading the stuffs. : - " this is true for all the procceses java starts that need network access " null |
Hi there. I have a Client/Server connection using TCP/IP. what i need to do is send a lot of data in the form of a string (it doesn't matter how i send it because at the bottom line i'll need it in the Client side in the form of a string so i can manipulate and use it -that is not ... |
Suppose I have some clients on a network and I would like to have a program to collects statistics information about them like their memory utilization, their cpu utilization, their bandwith utilization etc, what should I do? Could I use SNMP to achieve this task or I need something else? I know this is a vague and difficult question. Currently I've ... |
Hi. Sorry if this has been posted before, I can't seem to find anything on it. I need to write a simple java program where I read through the contents of a directory in order to confirm which files are in it. The problem is that I need to connect to a network share where I will be asked to enter ... |
|
|
A simple chat system. -- Just a chat server that allows multiple people to connect to at and communication. NO need to support multiple rooms. A small network game (Tic Tac Toe, chess, checker) A simple remote desktop program -- You can see the desktop of another computer and control it from a remote computer (see java.awt.Robot class) A file server/client ... |
|
Could you provide an example program of java networking? For example, a server and client that can communicate via chat. If you have an example of a server which communicates with multiple clients (e.g: receives information, performs calculations and then sends out the result to the multiple clients), it will be greatly appreciated if you could post that as well. I ... |
|
It doesnt matter for now how many backslashes do I ned to put at the beginning of path string. This code is working on a simple computer (windows xp OS). This is a java desktop application. File (I want to open) and desktop application is in the same computer. Here there is no problem... We assume String s = "c:\filefolder\file.pdf"; for ... |
884924 wrote: Good Day dears... How can java programs execute automatically when it connects to network. What is "it"? That is, execute when what connects to the network? Your computer? If that's what you mean, this is not a Java question. It's an OS operational/administrative question. Executing any program, whether written in Java or not, based on some system event has ... |