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





PostPosted: 2007-12-3 23:01:00 Top

java-programmer, Any goodhearted person willing to explain me a program in Java I got 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





PostPosted: 2007-12-3 23:55:00 Top

java-programmer >> Any goodhearted person willing to explain me a program in Java I got This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
email***@***.com schreef:
> 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)

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鈥檛 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鈥檚 run() method, and look in there. Each
iteration, you can go a bit deeper.

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

Otherwise, you鈥檒l probably have to pay someone to do the above for you
and explain it.

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

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

HTH, H.
--
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


 
chapeau_m





PostPosted: 2007-12-4 2:36:00 Top

java-programmer >> Any goodhearted person willing to explain me a program in Java I got Thanks for the reply.

However I only have decompiled files and not the original project
file.
So this is harder to understand.

I tried allready a bit to understand but it's above my knowledge for
the moment.

Kind regards
 
 
Jeff Higgins





PostPosted: 2007-12-4 6:49:00 Top

java-programmer >> Any goodhearted person willing to explain me a program in Java I got
chapeau_m wrote:
> 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
>

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.
> 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


 
 
nebulous99





PostPosted: 2007-12-6 11:22:00 Top

java-programmer >> Any goodhearted person willing to explain me a program in Java I got On Dec 3, 5:01 pm, Andrew Thompson <email***@***.com> wrote:
[accuses the OP of plagiarism without evidence]

Why are you always willing to think the worst of everyone -- and
loudly and publicly post your speculations? Some things you respond to
are evident spam or other abuse, but this has plausible innocent
explanations and still you assume the worst.