Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

Any goodhearted person willing to explain me a program in Java I got

Thread view: 
chapeau_m@hotmail.com - 03 Dec 2007 15:01 GMT
Hello

What I'll will ask may take some of your time.

I have no experience at all with Java. But I could get my hand on a
programme written in Java, which does exactly what I want.

But I'm eager to learn, and want to know how it does everything.

I'm not interested in the visual aspect but in the communication

What the program does is communicate with a little box, that catches
data from a machine.
In essence it replaces a printer.
The machines prints to a usb port, via a adaptor, the printing data
goes into a little box, and then via a usb connection goes to the
reading pc.

I want to understand that.

Does anyone has some spare time for this (and "teaching skills") ?

I have the jar's and the classes (decompiled also)

For the moment I will not post the sources online.

Many thanks in advance and have a nice day
Hendrik Maryns - 03 Dec 2007 15:54 GMT
chapeau_m@hotmail.com schreef:
> Hello
>
[quoted text clipped - 19 lines]
>
> I have the jar's and the classes (decompiled also)

I would suggest you read some tutorials first.  Then you step through
the code with a debugger and try to understand what it does.  Don’t go
too deep in the beginning: first go through the main() method and see
whether the method names make sense and you get a grasp of what it does.
Of course, if there are threads, that might get difficult.  Then place
breakpoints in the thread’s run() method, and look in there.  Each
iteration, you can go a bit deeper.

Only then, if you don’t understand something it does, ask here, with
some concrete code.

Otherwise, you’ll probably have to pay someone to do the above for you
and explain it.

Another way might be to look for the system’s main method and follow
method invocations and definitions by hand.

Of course, a decent IDE will help you browse the code.

HTH, H.
Signature

Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Jeff Higgins - 03 Dec 2007 22:49 GMT
chapeau_m wrote:
> Hello
>
[quoted text clipped - 6 lines]
>
> I'm not interested in the visual aspect but in the communication

A couple overview type articles on Java serial comm programming.
<http://en.wikibooks.org/wiki/Serial_Programming:Serial_Java>
<http://mindprod.com/jgloss/serialport.html>
A couple good starting points for general Java questions.
<http://java.sun.com/docs/books/tutorial/>
<http://mindprod.com/jgloss/jgloss.html>

> What the program does is communicate with a little box, that catches
> data from a machine.
[quoted text clipped - 12 lines]
>
> Many thanks in advance and have a nice day


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.