I had to learn Java for my thesis project which is "Internet based control of Real Time Systems". The most wonderful thing I found in Java was the thread. It is a absolute killer. But the most disturbing part from my experience was lack of good books. Although I know C++ very well, some of the stuffs are new and a good book would really help. But I found each book had it own major drawbacks, most failed to cover some part or another. And I haven't found any goog beginner book either.
dont rely on java in case of control of real time systems as java thread is first of all platform dependent and its behaviour in some cases is unpredictable. Thats why even sun says in its license that the technology should not be used in aviation industry and nuclear power plants java is actually too cool on server side technologies like for e.g implementing n tier architecture, ------------------ coffee drinker
coffee drinker and Sun Certified Programmer for Java 2 Platform
To be honest you really can't have a real time system in a packet based network like the Internet. Just trying to make is as good and reliable as possible. Also I can't make Java communicate with my VB program. VB seems to be able to send Java data through socket using the BufferedInputStream (in Java) but VB doesn't seem to be able to receive data sent my Java using this stream. Any ideas? [This message has been edited by Russell Anam (edited November 20, 2001).]
JavaRanch keeps a BunkHouse full of book reviews. There is a section for Beginner which covers general Java stuff and a section for Certification books that I happen to like .
You might want to use some JNI = Java Native Interface to interface your VB code with your Java code. ------------------ Cindy Glass Sun Certified Programmer for the Java� 2 Platform Co-author of Java 2 Certification Passport [This message has been edited by Cindy Glass (edited November 20, 2001).]
"JavaRanch, where the deer and the Certified play" - David O'Meara
Russell, there is a Java Real Time specification currently going through the community process. Following provides a reference. http://www.rtj.org/ Have to say I have not looked in depth to see how it works. QUick question how do you guarentee something happens within a specific time period given the nature of java and the internet? As to Java\VB, if you are going through a socket should not matter what the language\system is at either end as the socket is standard. Might be an idea to find out if you can get Java to Java or VB to VB to communicate through a socket to find out whether its the Java or VB causing the problem. Hope that helps Phil
Hello, JNI really doesn't come here cause I am running a pure Java server side and a pure VB client side. They are communicating through the socket. Now the problem here is the Java uses InputStream and OutputStream for reading/writing the data. VB does not use the socket this way. Also you can use DataInputStream for Java to Java communication. This stream will not work when you want to communicate with other programs as this Stream is rather Java specific and use it's own data types. For communication with another type of program you have to use some character stream. Now I can communicated with VB-VB (uses it's own data), Java-Java (DataInputStream), VB-Java(BufferedInputStream which reads characters) but somehow VB-Java communication is not working.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop