Results 1 to 3 of 3
  1. #1
    Bharati is offline Member
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    0

    Thumbs up error in DES implementation

    import java.util.regex.*;
    import java.net.*;
    import java.io.*;

    public class CommandParser implements Serializable
    {
    public static InetAddress ia;
    public static Service service;
    public static DESECB d;
    public static String key;
    public static String path;

    public CommandParser (InetAddress ia, Service service)
    {
    d=new DESECB();
    key="Netx4U";
    this.ia=ia;
    this.service=service;
    }
    public void cmd(String s) throws Exception
    {
    service.execute(s);
    }
    }

    Whenever i try to run this code the following error occurs

    C:\Java\jdk1.6.0_01\bin>javac CommandParser.java
    CommandParser.java:12: cannot find symbol
    symbol : class DESECB
    location: class CommandParser
    public static DESECB d;
    ^
    CommandParser.java:18: cannot find symbol
    symbol : class DESECB
    location: class CommandParser
    d=new DESECB();
    ^
    2 errors
    Plz help
    Thanx in advance:):)

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default

    There is no DESECB class included in the core distribution nor do you import one so the compiler complains.

    kind regards,

    Jos

  3. #3
    Bharati is offline Member
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    0

    Default

    Thanx for reply

    But can you confirm whether the DESECB class exists in Java Cryptography Extension or not.

Similar Threads

  1. help with rc5 algorithm implementation
    By raghav in forum New To Java
    Replies: 0
    Last Post: 03-25-2010, 07:11 AM
  2. ListIterator implementation
    By hari.kr in forum Advanced Java
    Replies: 2
    Last Post: 02-15-2010, 10:14 AM
  3. Interface Implementation
    By Samyx in forum New To Java
    Replies: 3
    Last Post: 12-02-2009, 01:20 PM
  4. Method implementation
    By kathyla18 in forum New To Java
    Replies: 6
    Last Post: 04-02-2009, 07:44 AM
  5. Graph DPS and BFS implementation
    By hey in forum New To Java
    Replies: 1
    Last Post: 01-09-2008, 10:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •