First i have to say I am very new to java. I downloaded java codes from the Internet and try to compile them using javac. I got following error,
Code:
C:\temp\javacrypt>"C:\Program Files\Java\jdk1.6.0_06\bin\javac" RSAExample.java
.\BaseCrypto.java:1: package org.apache.commons.codec does not exist
import org.apache.commons.codec.DecoderException;
^
.\BaseCrypto.java:2: package org.apache.commons.codec.binary does not exist
import org.apache.commons.codec.binary.Hex;
^
.\BaseCrypto.java:26: cannot find symbol
symbol : class DecoderException
location: class BaseCrypto
public static byte[] asByte(String hexString) throws DecoderException {
^
.\BaseCrypto.java:16: cannot find symbol
symbol : variable Hex
location: class BaseCrypto
return new String(Hex.encodeHex(buf));
^
.\BaseCrypto.java:27: cannot find symbol
symbol : variable Hex
location: class BaseCrypto
return Hex.decodeHex(hexString.toCharArray());
^
5 errors
I guess i just missed some packages like "org.apache.commons.codec.*",
and that package is not part of standard jdk, right?
How do i get those package? I also have netbean and eclipse, but I haven't tried to use them yet./