Help plz-new to java plug in

hi!!
please tell me how to run swing applets in java using
JavaPlugIn .im not able to import javax.swing package in
MSDOS prompt .please help me...

Hello,
may be could you give us more details?
Cheers,
Lucien.hello,
thnks for ur reply.
i'll tell u the entire story...
i have j2sdk1.4.2 in c:/ of my syst.
i usually complie my applications in cmd prompt using the command
javac filename.java
and run them as
java filename
i know tht to view applets we use appletviewer filename.html
But if i compile a file importing javax.swing
i get an error msg :package javax.swing not found in import
Can u hlp me now as to how i can get over this problem plz.
waiting for a soln
pearlmaiden

Similar Messages

  • Help needed, new to java programming

    hi,
    I have craeted a Frame with some check boxes and button called "button1".
    Can anyone tell me how can i count the number of CHECKED check boxes so that when i press the button1 in my code it should display the result as number of checked check boxes divided by total number of check boxes. It should display the result in a textfield here RESULT textfield in my code
    Thanks in advance ...i am sending the code i have written so far....
    public class Frame extends java.awt.Frame {
        /** Creates new form Frame */
        public Frame() {
            initComponents();
            setSize(600, 600);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            buttonGroup1 = new javax.swing.ButtonGroup();
            checkbox1 = new java.awt.Checkbox();
            checkbox2 = new java.awt.Checkbox();
            checkbox3 = new java.awt.Checkbox();
            button1 = new java.awt.Button();
            textField1 = new java.awt.TextField();
            setLayout(null);
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            checkbox1.setLabel("checkbox1");
            add(checkbox1);
            checkbox1.setBounds(160, 50, 84, 20);
            checkbox2.setLabel("checkbox2");
            add(checkbox2);
            checkbox2.setBounds(160, 70, 84, 20);
            checkbox3.setLabel("checkbox3");
            add(checkbox3);
            checkbox3.setBounds(160, 90, 84, 20);
            button1.setLabel("button1");
            button1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    button1ActionPerformed(evt);
            add(button1);
            button1.setBounds(150, 180, 57, 24);
            textField1.setText("Result");
            textField1.setName("Result");
            add(textField1);
            textField1.setBounds(260, 180, 44, 20);
            pack();
        private void button1ActionPerformed(java.awt.event.ActionEvent evt) {
            // Add your handling code here:
        /** Exit the Application */
        private void exitForm(java.awt.event.WindowEvent evt) {
            System.exit(0);
         * @param args the command line arguments
        public static void main(String args[]) {
            new Frame().show();
        // Variables declaration - do not modify
        private java.awt.Button button1;
        private javax.swing.ButtonGroup buttonGroup1;
        private java.awt.Checkbox checkbox1;
        private java.awt.Checkbox checkbox2;
        private java.awt.Checkbox checkbox3;
        private java.awt.TextField textField1;
        // End of variables declaration
    }

    Two problems in the code you repost-ed:
    1. It lacks import statements.
    2. There is an extraneous } at the end of the button1ActionPerformed method.
    Correct them and it'll work fine. Posting the full source code:
    import java.awt.Component;
    import java.awt.Checkbox;
    public class Frame extends java.awt.Frame
         /** Creates new form Frame */
         public Frame()
              initComponents();
          * This method is called from within the constructor to initialize the form.
          * WARNING: Do NOT modify this code. The content of this method is always
          * regenerated by the Form Editor.
         private void initComponents()
              checkbox1 = new java.awt.Checkbox();
              checkbox2 = new java.awt.Checkbox();
              checkbox3 = new java.awt.Checkbox();
              button1 = new java.awt.Button();
              textField1 = new java.awt.TextField();
              setLayout( null );
              addWindowListener( new java.awt.event.WindowAdapter()
                   public void windowClosing( java.awt.event.WindowEvent evt )
                        exitForm( evt );
              checkbox1.setLabel( "checkbox1" );
              add( checkbox1 );
              checkbox1.setBounds( 120, 40, 84, 20 );
              checkbox2.setLabel( "checkbox2" );
              add( checkbox2 );
              checkbox2.setBounds( 120, 60, 84, 20 );
              checkbox3.setLabel( "checkbox3" );
              add( checkbox3 );
              checkbox3.setBounds( 120, 80, 84, 20 );
              button1.setLabel( "button1" );
              button1.addActionListener( new java.awt.event.ActionListener()
                   public void actionPerformed( java.awt.event.ActionEvent evt )
                        button1ActionPerformed( evt );
              add( button1 );
              button1.setBounds( 50, 170, 57, 24 );
              textField1.setText( "textField1" );
              add( textField1 );
              textField1.setBounds( 240, 170, 60, 20 );
              pack();
         private void button1ActionPerformed( java.awt.event.ActionEvent evt )
              // Add your handling code here:
              Component[] components = getComponents();
              int numOfCheckBoxes = 0;
              int numChecked = 0;
              for ( int i = 0; i < components.length; i++ )
                   if ( components[i] instanceof Checkbox )
                        numOfCheckBoxes++;
                        Checkbox checkBox = (Checkbox) components;
                        if ( checkBox.getState() )
                             numChecked++;
              double ratio = (double) numChecked / (double) numOfCheckBoxes;
              textField1.setText( Double.toString( ratio ) );
         /** Exit the Application */
         private void exitForm( java.awt.event.WindowEvent evt )
              System.exit( 0 );
         * @param args the command line arguments
         public static void main( String args[] )
              new Frame().show();
         // Variables declaration - do not modify
         private java.awt.Button button1;
         private java.awt.Checkbox checkbox1;
         private java.awt.Checkbox checkbox2;
         private java.awt.Checkbox checkbox3;
         private java.awt.TextField textField1;
         // End of variables declaration
    I can see from the code that the GUI was generated by a tool. Since you're new to Java programming, I'd recommend ditching the tool and writing everything by hand, otherwise you're not learning much. It's just like when you're learning proofs in Maths, where you start with first principles before making use of the proofs on their own.
    Also, it'll help tremendously if you could spend some time going through the Java Tutorial (http://java.sun.com/docs/books/tutorial/). It's free, and I find it very useful.
    Hth.

  • (Help) Unable to Load Java Plug-In

    Running Windows XP with latest updates and unable to load java plug-in? Can anyone suggest / recommend a course of action? Thank you.

    Duplicate of
    http://forum.java.sun.com/thread.jspa?threadID=682123

  • Plz help iam new to java

    hi,
    i have a requirement where in i must print dates between two given dates.
    strFromDate and strToDate are the two input dates and i must print all the list of dates between them.
    Below is the code i have written.but its not working pls suggest.thanx in advance.
    int year=Integer.parseInt(strFromDate.substring(0,4));
    int month=Integer.parseInt(strFromDate.substring(5,7));
    int day=Integer.parseInt(strFromDate.substring(8,10));
    Calendar cal = Calendar.getInstance();
    cal.set(year,(month-1),day);
    String formatString = "yyyy-MM-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatString);
    String previousDate = sdf.format(cal.getTime());
    String between="";
    int i=1;
    do{
         cal.add(Calendar.DAY_OF_MONTH, +i);
         between = sdf.format(cal.getTime());
         out.println("Dates=="+between);
         int year1=Integer.parseInt(between.substring(0,4));
         int month1=Integer.parseInt(between.substring(5,7));
         int day1=Integer.parseInt(between.substring(8,10));
         cal.set(year1,(month1-1),day1);
         between=sdf.format(cal.getTime());
         i++;
    }while(strToDate.equals(between));

    First of all i am sorry for not following the rules.Now coming to my prob, i have written my code in a jsp.My intention is to print list of dates between two given dates.I have used Calendar.add method for incrementing the starting date.
    My code is
    String strFromDate="2008-02-01",strToDate="2008-02-07",strBetween="";
    int i=1;
    int year=Integer.parseInt(strFromDate.substring(0,4));
    int month=Integer.parseInt(strFromDate.substring(5,7));
    int day=Integer.parseInt(strFromDate.substring(8,10));
    Calendar cal = Calendar.getInstance();
    cal.set(year,(month-1),day);
    String formatString = "yyyy-MM-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatString);
    do{
         cal.add(Calendar.DAY_OF_MONTH, +i);
         strBetween= = sdf.format(cal.getTime());
         out.println("BetweenDate="+strBetween);
         int byear=Integer.parseInt(strBetween.substring(0,4));
         int bmonth=Integer.parseInt(strBetween.substring(5,7));
         int bday=Integer.parseInt(strBetween.substring(8,10));
         cal.set(byear,(bmonth-1),bday);
         strBetween=sdf.format(cal.getTime());
         i++;
    }while(strToDate.equals(strBetween));Edited by: anu_avadutha on Feb 26, 2008 9:44 PM

  • Help keeps telling me java plug in not enable but it is checked. what can i do next. I am computer illiterate

    Please help me-keeps telling me that java plugins not enabled but they are checked. What can I do to install java? I am computer illiterate so easy on me please.

    Thanks, but aw jeez, is this PPC Mini, or an InItel Mini?
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4
    If it's a G4 there's still hope!

  • Plz help to install java plug-ins

    hi everybody,
    i am new to the world of java, i want to install java plug-ins in mozilla 1.7 on redhat linux 9.
    how to do it, plz help, thanx in advance..

    If Java was installed prior to Mozilla, it should have automatically installed.
    If not, or Mozilla was installed first, use these instructions from Mozilla:
    http://plugindoc.mozdev.org/linux.html

  • PLz Help New To Java

    Hey im brand new to java and i just downloaded and installed jdk-1_5_0_01-windows-i586-p now im tryin to set up the PATH permanently but i have no clue how to i went to the install notes and typed in C:\Program Files\Java\jdk1.5.0_<windows>\bin in the command.com but everytime i do it says access is denied. i have no clue how to set up the path permanently beside what i tried plz help!!!

    You didn't which OS you are running, but it's fairly similar for all windows.
    Start->settings->control panel->system->advanced->environment variables
    Go to System variables, click on path, click edit button and add a semicolon and the path at the end. DO NOT REPLACE EVERYTHING THAT'S THERE NOW.
    I don't have 1.5 installed on this computer, but I'm willing to bet the real path doesn't have '<windows>' in it. Use Windows Explorer to find out where java.exe actually exists on the hard disk and use that path

  • Plz help me I'm new to java

    I've created simple data base in sql and a simple html page,here is the code:
    <%@ page import="java.util.*" import="java.sql.*" %>
    <%!
    private String emp_code, emp_name, emp_dept, emp_title, emp_doj, emp_dob;
    private String error, info, create;
    private short age;
    private Statement stmt;
    %>
    <%
    //load the JDBC driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection("jdbc:odbc:Master","","");
    Statement s = conn.createStatement();
    s.executeUpdate("insert into employee_info values('" + emp_code + "', '" + emp_name + "','" + emp_dept + "','" + emp_title + "', '" + emp_doj + "','" + emp_dob + "') ");
    System.out.println ("It has been successfully added");
    %>
    <HTML>
    <HEAD>
         <TITLE> ---: New Employee Information :--- </TITLE>
    </HEAD>
    <BODY>
    <DIV ALIGN="center">
         <H2> New Employee Information </H2></DIV>
    <DIV ALIGN="center">
         <p> � </p></DIV>
         <FORM METHOD = "POST" ACTION = "NewEmp.jsp">
    <H4>Employee Code: <INPUT TYPE= "text" NAME = "first1" SIZE = "17">����
    Name: <INPUT TYPE = "TEXT" NAME = "first" SIZE = "51">�������
    <font size="3">Title:�<SELECT name="Grade">
    <OPTION SELECTED> - Select -
    <OPTION >Programmer
    <OPTION >Technetion
    <OPTION>System Analyst
    <OPTION>Network Administrator
    </SELECT>�</font>
              </H4>
    <H4><font size="3">�</font>
              </H4>
    <H4><font size="3">Department Code:�</font><select name="Dept">
    <OPTION SELECTED> - Select -
    <OPTION >IT
    <OPTION >Admin
    <OPTION>MGM
    <OPTION>CSD
    <OPTION>SM
    <OPTION>FIN
    </SELECT>
    ��������
    <font size="3"><b>DOB: </b> </font> <INPUT TYPE = "TEXT" NAME = "first2" SIZE = "18">������
    <b><font size="3">DOJ: </font></b><INPUT TYPE = "TEXT" NAME = "first3" SIZE = "18">
              </H4>
    <p>�
              </p>
    <P align="center">
    <INPUT TYPE = "SUBMIT" VALUE = "Submit">     
    <INPUT TYPE = "RESET">
    <input type="button" value="Cancel" name="Cancel" onClick='javascript:window.close();'> </FORM>
    <p align="center">�</p>
    </BODY>
    </HTML>
    But I couldn't complete it or make the connection to the database, I want to fill in the blanks and then add it to the data base.
    My database name is doctrak and the table name is employee_info and below the design of the table :
    emp_code     char     10
    emp_name char     30     
    emp_dept     char     15     
    emp_title     char     10     
    emp_doj     datetime     8     
    emp_dob     datetime     8     
    I've installed the apatchi tomcat 401 and make the java environment.
    So plz can any one help me in that?
    Thanks

    But I don't know how to handel the code, I didn't
    study JSP or Java. I'm trying to learn it by doing
    this, so please can you write the code for me in jsp
    and how to put it in html then , how to do the
    connection to my database?Iam sorry to disappoint you, but no.
    If you are new to java and jsp taking up such a task to learn it is not ideal, nor
    viable. I would suggest you learn the basics of the language first, then the basics
    of jsp, then some jdbc and finally graduate to the example in question. There are
    excellent tutorials avbl for all on the net.
    Maybe someone else would even post the code here, but suggest you dont
    waste time waiting on it.
    All the best.
    Cheers,
    ram.

  • Java Plug-In's SSV Helper 2, Start Detector - are not Verified

    I have the following Internet Explorer Add-ons relating to Java...
    I had an old version of Java, something like 1.5 or 1.15 ? - it was from 2006... then i installed the latest version of java from the official java website (where i had to say yes to installing add-ons / active-x controls even before the download begun)... my new version is Java version 6 update 10, (build 1.6.0_10-b33). i think i uninstalled the old version of java first.. it left some files in its installation directory so i manually deleted them after i had installed the new version though, it had its own folder with the version number as its name, a different folder for each version.
    These are the java plug-ins i have...
    Java(tm) Plug-In 2 SSV Helper (Not verified) Sun Microsystems, Inc. jp2ssv.dll
    Java(tm) Plug-In SSV Helper Sun Microsystems, Inc. ssv.dll
    JQSIEStartDetector Impl Class (Not verified) Sun Microsystems, Inc. jqs_plugin.dll
    i guess the SSV Helper (the first one, not 2) was the old version of java.. and the other two are the new version.
    My question, why are they not verified, is this normal, a danger/problem... considering the old java version add-on is verified.
    Also what do these add-ons do?, are they needed.
    thanks.
    I have windows xp home.sp3??? - its fully auto updated... internet explorer 7.

    Exactly .. I have way too much Java stuff in my add-ins that is NOT verified and am having problems deleting that which I may not need
    I wish we did not have to be a "developer" just to have the latest version of Java working on our systems. I realize more reading has to be done but for someone like me who has so many versions of Java and can not find out why this is so .. and how many I need in order to just prowse the web in the latest version of Java .. it is time consuming to have to go thru these Java add-ins and time consuming to have to want to remove older versions of Java.
    Sorry for the nit picking but it is valid for those of us who don't want to know all of this stuff.

  • New to Java, Please help

    Hi, I was trying to play a game and came up with this java error (below), I uninstalled and reinstalled still no fix. I think i need a new class?, If anyone can explain the potential problem to me and help me fix it, that would be much appreciated. I'm a complete NEWB when it comes to java, I'm not even sure how to edit that code. so please remember to explain in the newbiest of newby answers. I am proficient with features of a computer just not java.
    Java Plug-in 1.6.0_24
    Using JRE version 1.6.0_24-b07 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Ethan
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class loader.class not found.
    java.lang.ClassNotFoundException: loader.class
    at sun.plugin2.applet.Applet2ClassLoader.fi… Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at sun.plugin2.applet.Plugin2Manager.create… Source)
    at sun.plugin2.applet.Plugin2Manager$Applet… Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: loader.class

    845681 wrote:
    Hi, I was trying to play a game and came up with this java error (below), I uninstalled and reinstalled still no fix. I think i need a new class?, If anyone can explain the potential problem to me and help me fix it, that would be much appreciated. I'm a complete NEWB when it comes to java, I'm not even sure how to edit that code. so please remember to explain in the newbiest of newby answers. I am proficient with features of a computer just not java.If you want to learn how to program java, which is not the same as playing that particular game then you can start with the following link.
    http://download.oracle.com/javase/tutorial/getStarted/index.html

  • I AM NEW TO JAVA...PLEASE HELP ME

    Dear friends,
    I am very much interested in learning Java. But, I am Zero in Java. I don't know where to start, what to do..etc., I just downloaded Java Plug-In for Windows XP. Other than that I don't have anything.
    Please help me which is the best book to start learning Java. How to work? What to do? How to write simple programs in Java? Where can I download sample programs? How to execute them?
    All your replies would be greatly appreciated!!!
    Thanks,
    Rajan

    First of all, conggratulations for deciding to learn Java. I am myself a University student studying Java for the first time too.
    What you need to study for Java are: Java Development Kit (either version 1.3.x or the newer 1.4; either would work just fine), a text editor of your choosing (if your on Windows platform, you already have NotePad), Java Runtime Environment ( which is already available bundled with Java Development Kit when you download it), and most important of all, a will to study it.
    As I found out for myself, it can be daunting at first, but if you keep at it for a while, you'll get used to it. Don't worry to make mistakes here and there, we're here to learn, and if you do happen to make one, that's the best way to learn it.
    As for books, the ones I have at my arsenal for learning it are:
    Java Software Solutions
    Beginning Java 2 (WROX)
    The Java Tutorial, 3rd Edition
    Using Java 2, Standard Edition
    For the questions you posted on how it works, one of the books that I have, The Java Tutorial from Sun Microsystem, explains everything in detail not just 1 platform but for many.
    Another note, it's good if you can also look for an IDE (Integrated Development Environment) to work on your Java programs. If you don't want to buy one (I understand that most are very expensive), try getting Forte for Java Community Edition from Sun's download website.
    Good luck on studying and I hope what I have divulged to you would be of some help. Bye.

  • Convert C++ prog into Java( I m new in java)help urgent

    hi all,
    i am very new in java. i have code of C++.i have to convert it in to Java.please help me on urgent basis.plz provide me solution.
    I am looking for positive response.code is below:
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <sys/stat.h>
    #include <fstream.h>
    #include <iostream.h>
    //#include <sha.h> //24112003
    //#include<wincrypt.h>
    char ntc(unsigned char n){
    if (n<26) return 'A'+n;
    if (n<52) return 'a'-26+n;
    if (n<62) return '0'-52+n;
    if (n==62) return '+';
    if (n==63)return '/';
    unsigned char ctn(char c){
    if (c=='/') return 63;
    if (c=='+') return 62;
    if ((c>='A')&&(c<='Z')) return c-'A';
    if ((c>='a')&&(c<='z')) return c-'a'+26;
    if ((c>='0')&&(c<='9')) return c-'0'+52;
    if (c=='~') return 80;
    return 100;
    int b64decode(char from,char to,int length){
    unsigned char c,d,e,f;
    char A,B,C;
    int i;
    int add;
    char *tot=to;
    for (i=0;i+3<length;){
    add=0;
    A=B=C=0;
    c=d=e=f=100;
    while ((c==100)&&(i<length)) c=ctn(from[i++]);
    while ((d==100)&&(i<length)) d=ctn(from[i++]);
    while ((e==100)&&(i<length)) e=ctn(from[i++]);
    while ((f==100)&&(i<length)) f=ctn(from[i++]);
    //if (f==100) return -1; /* Not valid end */
    if (c<64) {
    A+=c*4;
    if (d<64) {
    A+=d/16;
    B+=d*16;
    if (e<64) {
    B+=e/4;
    C+=e*64;
    if (f<64) {
    C+=f;
    to[2]=C;
    add+=1;
    to[1]=B;
    add+=1;
    to[0]=A;
    add+=1;
    to+=add;
    if (f==80) return to-tot; /* end because '=' encountered */
    return to-tot;
    int b64get_encode_buffer_size(int l,int q){
    int ret;
    ret = (l/3)*4;
    if (l%3!=0) ret +=4;
    if (q!=0){
    ret += (ret/(q*4));
    /* if (ret%(q/4)!=0) ret ++; */ /* Add space for trailing \n */
    return ret;
    int b64strip_encoded_buffer(char *buf,int length){
    int i;
    int ret=0;
    for (i=0;i<length;i++) if (ctn(buf)!=100) buf[ret++] = buf [i];
    return ret;
    int b64encode(char from,char to,int length,int quads){
    // 3 8bit numbers become four characters
    int i =0;
    char *tot=to;
    int qc=0; // Quadcount
    unsigned char c;
    unsigned char d;
    while(i<length){
    c=from[i];
    *to++=ntc(c/4);
    c=c*64;
    i++;
    if (i>=length) {
    *to++=ntc(c/4);
    *to++='~';
    *to++='~';
    break;
    d=from[i];
    *to++=ntc(c/4+d/16);
    d=d*16;
    i++;
    if (i>=length) {
    *to++=ntc(d/4);
    *to++='~';
    break;
    c=from[i];
    *to++=ntc(d/4+c/64);
    c=c*4;
    i++;
    *to++=ntc(c/4);
    qc++; /* qz will never be zero, quads = 0 means no linebreaks */
    if (qc==quads){
    *to++='\n';
    qc=0;
    /* if ((quads!=0)&&(qc!=0)) to++='\n'; / /* Insert last linebreak */
    return to-tot;
    char* mEncryptPassword(char* mPassword)
    char mEncryptedPassword[200]; // To hold encrypted password.
    //char* mEncryptedPassword = new char[200];
    char mPrimEncryptedPassword[200];
    char * temp = new char[200];
    //unsigned char* md; // 19122003
    //md = new unsigned char[100]; // 19122003
    memset(mEncryptedPassword, '\0', sizeof(mEncryptedPassword));
    memset(mPrimEncryptedPassword, '\0', sizeof(mPrimEncryptedPassword));
    strcpy(mPrimEncryptedPassword, mPassword);
    //strcpy(mPrimEncryptedPassword, (char*) SHA1((unsigned char*) mPassword, strlen(mPassword), NULL));
    //strcpy(mEncryptedPassword, (char*) SHA((unsigned char*) mPassword, strlen(mPassword), md)); // 19122003
    //strcpy(mEncryptedPassword, (char*) SHA((unsigned char*) mPassword, strlen(mPassword), md)); //19122003
    b64encode(mPrimEncryptedPassword, mEncryptedPassword, strlen(mPrimEncryptedPassword), 0);
    // If successfully encrypts..
    if (mEncryptedPassword != NULL)
    //char * temp = new char[strlen(mEncryptedPassword)+1];
    strcpy(temp,mEncryptedPassword);
    // strcpy(mRetVal,mEncryptedPassword);
    return (char*)temp;
    //return (mEncryptedPassword);
    //return (char*) md; // 19122003
    else
    return ("Error");
    char* mDecryptPassword(char* mPassword)
    char mDecryptedPassword[200]; // To hold decrypted password.
    char mPrimDecryptedPassword[200];
    char * temp = new char[200];
    // 02032007
    memset(mDecryptedPassword, '\0', sizeof(mDecryptedPassword));
    memset(mPrimDecryptedPassword, '\0', 200);
    strcpy(mPrimDecryptedPassword, mPassword);
    b64decode(mPrimDecryptedPassword, mDecryptedPassword, strlen(mPrimDecryptedPassword));
    // If successfully decrypts..
    if (mDecryptedPassword != NULL)
    //char * temp = new char[strlen(mEncryptedPassword)+1];
    strcpy(temp,mDecryptedPassword);
    // strcpy(mRetVal,mDecryptedPassword);
    return (char*)temp;
    //return (mEncryptedPassword);
    //return (char*) md; // 19122003
    else
    return ("Error");
    void main(int argc, char* argv[])
    cout << mEncryptPassword(argv[1])<<endl<<flush;
    cout << mDecryptPassword(mEncryptPassword(argv[1]))<<endl<<flush;
    Anubhav

    endasil wrote:
    I just thought of how ridiculous this would sound in any other profession:
    Surgeons:
    plz plz help I have patient dying need to insert new kidney into 90yr old patient plz someone come do itLawyers:
    Help client guilty need good defense (I m new in law)help urgentHow come we get stuck with the lazy low-lifes?Because there's no legal requirement that a software developer must be licensed

  • New java plug-in on linux : jnlp applets not working

    Hello my dear forum,
    Here is (a part of) my configuration :
    * Ubuntu 9.04
    * Firefox 3.0.13
    * Java Plug-in 1.6.0_14 with JRE 1.6.0_14-b08
    I couldn't launch jogl applets in firefox with ubuntu since I updated the new plugin. (like this one : https://jogl-demos.dev.java.net/applettest.html)
    I get this error :
    java.lang.ClassCastException: sun.awt.motif.MToolkit cannot be cast to sun.awt.X11.XToolkit
         at sun.awt.X11.XEmbeddedFrame.addNotify(XEmbeddedFrame.java:53)
         at sun.plugin2.main.client.PluginEmbeddedFrame.addNotify(PluginEmbeddedFrame.java:46)
         at sun.awt.X11.XEmbeddedFrame.<init>(XEmbeddedFrame.java:43)
         at sun.awt.X11.XEmbeddedFrame.<init>(XEmbeddedFrame.java:60)
         at sun.plugin2.main.client.PluginEmbeddedFrame.<init>(PluginEmbeddedFrame.java:37)
         at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(PluginMain.java:927)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    PluginMain: could not create embedded frame
    Does this problem have something to do with this one : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6625747 ?
    I would really appreciate if someone can help me.

    poupitoupou wrote:
    I thought Java was cross-platform, snirf...It is. But if one uses code that relies on a particular platform then all bets are off.
    >
    I wonder how many people manage to get this applet working on linux :
    https://jogl-demos.dev.java.net/applettest.html
    I don't know what 'working' means for this. I'm using 1.6.0_15 on Ubuntu 9.04 an all I see is 3 gear wheels that don't move.
    >
    Listen, you forum-reader, if you are on linux, can you test this applet and tell me if it is working ?Again - what does 'working' mean?

  • New to java plz hep me

    hello all,
    i'm new to java. i need to know answers to these questions..
    1.     What is the purpose of CLASSPATH? How �classpath� is used by �java� and �javac�?
    2.     What is the purpose of finally block?
    3.     What is �Ant�?
    4.     Explain the difference between abstract class and interface. When to use an abstract class and when to use an interface?
    5.     What is the purpose of �Xms option of �java�?
    6.     What is the main difference between java.util.Date class and java.util.Calendar class?
    7.     What are the differences between wait and sleep methods?
    8.     What is the advantage of using ArrayList over Vector?
    9.     Explain the word �casting�
    could u plz help me.. i need them very much..

    1.     What is the purpose of CLASSPATH? How �classpath�
    is used by �java� and �javac�?Classpath is the paths along which javac or the jvm searches for classes to load.
    2.     What is the purpose of finally block?Cleanup if something went wrong
    >
    3.     What is �Ant�? Ant is a preprocessor, kinda like .bat files.
    >
    4.     Explain the difference between abstract class and
    interface. When to use an abstract class and when to
    use an interface?You should really google this. It's hard to answer this in 1 line
    >
    5.     What is the purpose of �Xms option of �java�?Increase the java heap size
    6.     What is the main difference between java.util.Date
    class and java.util.Calendar class?RTFM http://java.sun.com/j2se/1.5.0/docs/api/
    >
    7.     What are the differences between wait and sleep
    methods?sleep sleeps. Wait and Notify work together in multithreaded apps.
    >
    8.     What is the advantage of using ArrayList over
    Vector?It is faster
    >
    9.     Explain the word �casting�In the harry potter sense of the word?
    Object o = "hi";
    String s = (String) o;

  • I have just getting a new phone and I have forgot my password an Apple ID what I made new for the new phone now I cannot get on it because asking for id and password what should I do help plz thank u

    I have just getting a new phone and I have forgot my password an Apple ID what I made new for the new phone now I cannot get on it because asking for id and password what should I do help plz thank u

    Try
    https://iforgot.apple.com

Maybe you are looking for

  • I have a domain with 2 DCs (both virtual machines) in different Hyper-V Hosts. Dose this case make any influence on the time sync?

    As title, I have a domain with 2 DCs (both virtual machines) in 2 different Hyper-V Hosts, and one of the perform as a PDC Emulator. Dose this case make any influence on the time sync? i.e. Both of the VMs sync with Hyper-V host, instead the other ho

  • Setting the filename of inline objects

    I am working on a website where we dynamically build up pdf files and display them in the browser (inline) to the user. However, when you click on Save As on the pdf file's menu, the filename is set to the url to that page. Is there anyway to specify

  • Thunderbolt SIM card issues??

    I was having internet connection issues with my thunderbolt and they sent me out another SIM card and did a master reset. I put the SIM card in restarted it and I turned it back on and it has a pickture of a SIM card with an explanation mark and it w

  • 500 Internal Server Error after JSP trys to invoke a BPEL Process

    I get the 500 Internal Server Error after hitting the submit button on my displayed JSP screen. Did somebody had already the same error: Thanks The JSP Source is: <%@ page contentType="text/html;charset=windows-1250"%> <%@page import="java.util.Hasht

  • How many devices can a WRT54G successfully route?

    I have a client that is trying to use a WRT54G router to route traffice coming from a Linksys SRW224G4P managed switch. The client has 18 VoIP devices and 6 computers running over this setup. How many devices can the WRT54G successfully process as a