• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Learning

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Russell Anam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This thread doesn't seem to be related with SCJP. I'm moving it to Java in General (Advanced).

------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Russell Anam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic