Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > CRC32

Reply
Thread Tools

CRC32

 
 
palmis
Guest
Posts: n/a
 
      12-21-2005
Hi,
I want create a method that receive as input a byte[] and calculate its
crc32. How can I do?
I have found java.util.zip.CRC32 but I'm using JDK 1.3.
Can you halp me?
Thanks

 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      12-21-2005
On 21 Dec 2005 00:38:08 -0800, "palmis" <(E-Mail Removed)>
wrote, quoted or indirectly quoted someone who said :

>I have found java.util.zip.CRC32 but I'm using JDK 1.3.


I thought it came out in JDK 1.1.

Anyway, how to use it is documented at
http://mindprod.com/jgloss/crc.html

I have the source code for a CRC-16 posted there. Perhaps you could
generalise it to 32 bit.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
 
 
 
palmis
Guest
Posts: n/a
 
      12-21-2005
I'm unable to see "how you compute a 32-bit CRC using Java' native
method" into mindprod site. I have this message error:
java.lang.ClassNotFoundException:com.mindprod.jdis play.JDisplay.class
Please can you cut and past the code and send me it ?

 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      12-21-2005
On Wed, 21 Dec 2005 11:00:27 GMT, Roedy Green
<(E-Mail Removed) > wrote, quoted or
indirectly quoted someone who said :

>I have the source code for a CRC-16 posted there. Perhaps you could
>generalise it to 32 bit.


I did quick look on the net and found a FORTH and an Pascal version.
If you need a Java version, I will translate it for you into Java and
guarantee it gives the same answers as Sun's CRC32 for $50.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      12-21-2005
On 21 Dec 2005 03:13:25 -0800, "palmis" <(E-Mail Removed)>
wrote, quoted or indirectly quoted someone who said :

>I'm unable to see "how you compute a 32-bit CRC using Java' native
>method" into mindprod site. I have this message error:
>java.lang.ClassNotFoundException:com.mindprod.jdi splay.JDisplay.class
>Please can you cut and past the code and send me it ?


you likely don't have your java installed correctly. See
http://mindprod.com/jgloss/jre.html#TESTING
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
palmis
Guest
Posts: n/a
 
      12-21-2005
It's too complicate!
I have need to resolve my problem before possible.
Thanks

 
Reply With Quote
 
palmis
Guest
Posts: n/a
 
      12-21-2005
No thanks.

 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      12-21-2005
On 21 Dec 2005 07:03:34 -0800, "palmis" <(E-Mail Removed)>
wrote, quoted or indirectly quoted someone who said :

>It's too complicate!
>I have need to resolve my problem before possible.
>Thanks


If you are JRE/JDK is not installed properly you are not going to get
very far until you sort that out.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
Luc The Perverse
Guest
Posts: n/a
 
      12-21-2005
"palmis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> No thanks.
>


LOL - that was not a bad deal.

If only I could get Roedy to make my CR10 RS232 Communication library in
Java for 50$. I have code in C++ which 'mostly' works.

I wrote a CRC algorithm in C++ once, and could translate it. - <humor> I can
underbid Roedy, but only give 80% guarantee that it will work. </humor>

--
LTP




 
Reply With Quote
 
palmis
Guest
Posts: n/a
 
      12-22-2005
I do not want to buy null. I will find on the net

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulating CRC32 according to IEEE Std. 802.3 ALuPin@web.de VHDL 9 04-14-2009 10:21 AM
vhdl code for crc32 checksum anupam VHDL 4 09-06-2004 09:05 PM
CRC32 during straming gzip Mohun Biswas Java 6 05-06-2004 11:21 PM
java.util.zip.CRC32 uses long?? Mohun Biswas Java 1 04-01-2004 04:13 PM
Creating a MD5 or CRC32 hash from a file Ericko C++ 1 09-30-2003 01:49 PM



Advertisments