4.Library Management System - Authentication of Login Page with Database

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024
  • An integrated library system (ILS), also known as a library management system (LMS), is an enterprise resource planning system for a library, used to track items owned, orders made, bills paid, and patrons who have borrowed.
    For Source code & Required Files:-
    Refer to my GitHub account: www.github.com...
    Please Subscribe and comment Keep Watching. Thanking You
    If you have any trouble or any query regarding this project please contact me.
    Email - ramsundar.1238@gmail.com

Комментарии • 149

  • @Romit820
    @Romit820 7 лет назад

    Hello. During running the file it is showing a message "java.sql.sqlexception-No suitable driver is found." I downloaded the jdbc also.And after creating an account its showing an error java.lang.NullPointerException. What to do?

  • @alfaraby5360
    @alfaraby5360 7 лет назад

    bro after doing the full code from your previous tutorial when i click the Create button it shows error msg like "java.lang.unsupportedOperationException:Not supported yet"??

  • @PrakashPraaku
    @PrakashPraaku 7 лет назад

    Amazing tutorials Ram. Subscribed! Thank you so much for this great tutorial.

  • @faisalrahman6455
    @faisalrahman6455 6 лет назад

    why error code:pst.setString(3,jPasswordField1.getText());

  • @PankajVerma-pb2bz
    @PankajVerma-pb2bz 7 лет назад

    java.sql.SQLException.No suitable driver found for jdbc.sqlite:C\Users\hp\Documents\NetbeansProjects\LibraryManagementSystem\Library.sqlite
    what should I do?

    • @TechEntertaining
      @TechEntertaining  6 лет назад

      conn=javaconnect.ConnecrDb(); define this in init().

    • @kavyap1416
      @kavyap1416 6 лет назад

      Sir I got the same error

  • @monicagupta6812
    @monicagupta6812 7 лет назад +3

    i added 3-4 database in account and all have same security question answers that is it is giving same password for all and it is only comparing answer and giving password i want it compare password as well as username too to give password what can i do?

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      like that you have to add one more if-else statement do it youself its very easy.

    • @osvaldolopes9610
      @osvaldolopes9610 6 лет назад

      I have a different solution:
      "select * from Account where User='"+a1+"' and Answer='" + a2 + "'";

  • @sumittripathi9741
    @sumittripathi9741 4 года назад

    After done code when i press on login then unsupportedOperationException Not yet support are come..
    Then tell me How to fix???

  • @md.imrulkayes4258
    @md.imrulkayes4258 5 лет назад

    whenever I try to sign up there is exception, table is not found.
    my code is running but why this exception is showing I don't know?
    because I have created the table.
    so why this exception is showing?

    • @TechEntertaining
      @TechEntertaining  5 лет назад

      Might your table name and database table name not match

  • @ambujawasthi7795
    @ambujawasthi7795 6 лет назад +1

    On clicking "Create Account" in signup form, i get "java.lang.nullpointerexception"

    • @TechEntertaining
      @TechEntertaining  6 лет назад

      This exception only comes when you initialize a value null.

    • @believerofgod4778
      @believerofgod4778 6 лет назад

      Bhai sql database open bhi krna pdta hai saath mai..jb database hi open nhi hoga to error aayega hi.

  • @d.sundeep6304
    @d.sundeep6304 7 лет назад

    Null pointer exception is occurring..... What to do... I wrote code perfectly... I can't find wht the real problem is.

  • @sairajdas6692
    @sairajdas6692 5 лет назад

    What is the need of closing the conn and rs in the 'try' block if the 'finally' block is executed anyway?

  • @fahrinamimun2600
    @fahrinamimun2600 6 лет назад

    java.lang.UnsupportedOperatioException: Not supported yet. What should I do?

  • @mukhtarjalwa5128
    @mukhtarjalwa5128 7 лет назад

    Sir why is not working for me this? pst.setString(2,jpasswordField1.getText());

  • @danatpaul1019
    @danatpaul1019 5 лет назад

    if i try running it ,it will say library management system does not have a main class set

  • @beingprasad1997
    @beingprasad1997 6 лет назад +1

    Sir jdbc jar file download nahibho rahi hai please give another link

    • @TechEntertaining
      @TechEntertaining  6 лет назад

      drive.google.com/file/d/1ErT0bE_YNM2NfVLEwXa4NPPy6oXbHloT/view?usp=drivesdk

  • @tashisamdup2159
    @tashisamdup2159 6 лет назад +1

    When did u created jPasswordField before I saw you put jTextField on password index

  • @ralpdexter2495
    @ralpdexter2495 8 лет назад

    we are stuck at the part 3 man it gives this error : java.sql.SQLException:No suitable driver found for jdbc.sqlite:C:\Users\MyraB\Documents\NetBeansProjects\Library Management System\LibraryNew.sqlite
    i already downloaded the jdbcdriver v 056 and open it on my libraries then i got this error here above.

    • @TechEntertaining
      @TechEntertaining  8 лет назад

      +ralp dexter mention your email i send you the full source code so you can see where is your error ok.

    • @ralpdexter2495
      @ralpdexter2495 8 лет назад

      spirits2898@yahoo.com thanks :D

    • @TechEntertaining
      @TechEntertaining  8 лет назад

      send me the code of third part to my email i'll check the error post back to you in few hours.

  • @sewiltattooz5855
    @sewiltattooz5855 6 лет назад

    What will happen if we dont write anything to form and click signup ?
    Only the sec_q will go to the database?

  • @aashishkalia8269
    @aashishkalia8269 7 лет назад

    @ Tech Entertaining i am getting parameter index out of range ( 1>number of parametrers which is zero)

  • @rajveer1997
    @rajveer1997 7 лет назад +1

    java.lang.RuntimeException: Uncompilable Source code - illegal start of type ..... ???????
    Bro I am getting this error when i click on Retrieve.

    • @TechEntertaining
      @TechEntertaining  7 лет назад +1

      this is caused due to inappropriate attachment of jar file go the below link and download all
      Go the Link and download the Required Jar File -
      clkmein.com/qBMFB6
      Go the Link and download the Required icons -
      clkmein.com/qBVcFb
      Go the Link and download the Required Giphy Images -
      clkmein.com/qBVcMR
      Go the Link and download the Icon Pack -
      clkmein.com/qBVve2
      Library Management System Required Notes :-
      clkmein.com/qBMGUJ

    • @rajveer1997
      @rajveer1997 7 лет назад

      Tech Entertaining thank you brother... For your help. 🤝

  • @christeennathaliyafernando
    @christeennathaliyafernando 7 лет назад +1

    when i enter the data and click create button i got a null pointer exception message why is that?

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      When you declare a reference variable (i.e. an object) you are really creating a pointer to an object. Consider the following code where you declare a variable of primitive type int:int x;
      x = 10;In this example the variable x is an int and Java will initialize it to 0 for you. When you assign it to 10 in the second line your value 10 is written into the memory location pointed to by x.But, when you try to declare a reference type something different happens. Take the following code:Integer num;
      num = new Integer(10);

    • @d.sundeep6304
      @d.sundeep6304 7 лет назад

      Christeen Fernando
      Yeah i too got same problem

    • @tayyabdost1139
      @tayyabdost1139 7 лет назад

      you just do that
      try{
      String sql="Insert into account(Username,Name,Password,Security_Question,Answer)values(?,?,?,?,?)";
      pst=conn.prepareStatement(sql);
      pst.setString(1,user_txtfield.getText());
      pst.setString(2,name_txtfield.getText());
      pst.setString(3,password_txtfield.getText());
      pst.setString(4,(String)jComboBox1.getSelectedItem());
      pst.setString(5,answer_txtfield.getText());
      //pst.executeQuery(sql);
      int i= pst.executeUpdate();
      JOptionPane.showMessageDialog(null,i+"New account created");
      }catch(Exception e){
      JOptionPane.showMessageDialog(null, e);
      }
      finally
      {
      try
      {
      rs.close();
      ps.close();
      } catch (Exception ex) {
      JOptionPane.showMessageDialog(null, e);
      }
      }

  • @trevoromondi1663
    @trevoromondi1663 6 лет назад

    I've corrected but when I try to create a new account a display message says "java. Lang. ClassNotFound:Exception :org.sqlite. JDBC"

  • @danicareginio4267
    @danicareginio4267 7 лет назад

    HI! why isn't there an output after clicking retrieve? What might be the problems?

  • @zohairahmed9807
    @zohairahmed9807 7 лет назад

    when iam running my program there is an error that no suitable for jdbc sqlite and after that its shows java.nullpointException..now what can i do

    • @TechEntertaining
      @TechEntertaining  6 лет назад

      Just use the java connection method in every frame

  • @SUDHANSHUKUMAR-cw8lv
    @SUDHANSHUKUMAR-cw8lv 6 лет назад

    can any one send me the link of.....? " sqlite jdbc 056 " i.e the old version from the description i am unable to download. And please provide me the solution for the error " java.lang.classNotfoundException:org.sqlite.JDBC".

  • @XyzAbc-zw1fg
    @XyzAbc-zw1fg 6 лет назад +1

    Hi i have nullpointer execption only on clicking login button. Can you please be specific how to remove that

  • @RamKumar-yy9jb
    @RamKumar-yy9jb 6 лет назад +1

    its showing null pointer exception. what to do now

  • @azasadmotovlog
    @azasadmotovlog 5 лет назад +1

    Why show me only incorrect username and password though my code has no error or any problem .....how can i fixed this problem. i can't login

    • @TechEntertaining
      @TechEntertaining  5 лет назад

      If facing issue You can download from here www.github.com/codehax41

  • @navneetjuneja6269
    @navneetjuneja6269 7 лет назад +1

    datatruncation error is coming at time of signup at securityQuestion question how to resolve it

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      Something has changed on the ServiceNow side. Usually someone made a string field longer than before. For example your ServiceNow admin made incident short_description longer (max length) from 80 to 200. So it means the new incident subjects cannot fit into your varchar(80) in the mirror database. To fix this, either manually alter the mirror table (column) or re-create the whole synchronization and perform an initial data load.

  • @accepttheworld2307
    @accepttheworld2307 7 лет назад

    hello sir,
    thanks for this project
    but some error are coming like that "java.sql.SQLException:near"value":syntax error" when i am running signup after filling new account
    plz help

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      +SHRUTI SHUKLA dear the reason you're getting this error due to either you have typed any mistakes in the sql query or any symbol please re-watch the tutorial if again showing.

  • @sagarsaitwal6667
    @sagarsaitwal6667 6 лет назад

    java.long null point exception. i cant find error

    • @SUDHANSHUKUMAR-cw8lv
      @SUDHANSHUKUMAR-cw8lv 6 лет назад

      same here bro,i think we all are getting the same error.

    • @TechEntertaining
      @TechEntertaining  6 лет назад

      check for the syntax error which you have carried in the program

    • @gopalnipane4600
      @gopalnipane4600 5 лет назад

      @@TechEntertaining i check it many times plz help me out

  • @abbamusa4766
    @abbamusa4766 6 лет назад

    Hello. In video number 5 in the playlist, under forgot password when i run the program and type a name in the username text field, it doesn't show anything and i have checked the code so many times i couldn't find the error. please what do you think can be the error?

    • @TechEntertaining
      @TechEntertaining  6 лет назад

      What's the error is

    • @abbamusa4766
      @abbamusa4766 6 лет назад

      Tech Entertaining
      Hy, the problem I am facing is that when I typed a name which I already created in the database, when I type the name and click on search it doesn’t show anything at all and the funny thing is there is no error at all. And also in video number 6, after I followed what you did for user login which will go to the next jframe form, it will then show an exception error which I really don’t know why and in the coding part there is no error at all. I think the system is not reaching the database at that point. I will really appreciate your help thank you.

    • @abbamusa4766
      @abbamusa4766 6 лет назад

      Hy, i followed the videos starting from the first one, i connected the database and i am able to create new users which works well but in the video number 5, i can't search for a user when i type in a user i already created but it doesn't show me anything and i couldn't find any error and i don't know what i did wrong and also in video number 6, i followed the same thing but at the end when i run the program i can't login with a user that i already registered. I would very much like to hear from you and i will really appreciate your help.

    • @shafiurrahman8607
      @shafiurrahman8607 6 лет назад

      I have the same problem

  • @WasimAkram-xv7ec
    @WasimAkram-xv7ec 7 лет назад +1

    java.sql.sqlexception-No suitable driver is found....solution for this

    • @WasimAkram-xv7ec
      @WasimAkram-xv7ec 7 лет назад

      ive even added the exact jdbc jar file

    • @TechEntertaining
      @TechEntertaining  6 лет назад

      did you call the method in every frame.

    • @tashisamdup2159
      @tashisamdup2159 6 лет назад

      Wasim Akram put the filename with .sqlite format in the path

    • @kevinspacey6090
      @kevinspacey6090 6 лет назад

      Don't use that BS database. Use something else.

  • @NewChannel78645
    @NewChannel78645 6 лет назад

    Hello bro every thing is done but when i press login button there are some exceptions like null java.lang.null.exception.....firstly this error was coming just in login form but now in every form is also coming database is locked...please tell me the solution very soon

  • @shadabkhan9163
    @shadabkhan9163 7 лет назад +1

    hi i face ...Java.null.pointException ... this problem can u help me

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      This error happens when you have spelling mistakes or special symbols.

  • @RahulSharma-rp2ks
    @RahulSharma-rp2ks 7 лет назад +1

    "Near "-" syntax error "..how can I solve this

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      This error happens when you have spelling mistakes or special symbols.

  • @khizarmasroor9723
    @khizarmasroor9723 5 лет назад

    What is the working of super("forgot password"); ???????

  • @tayyabdost1139
    @tayyabdost1139 7 лет назад

    everytime i saw when you create the form object
    you first write setVisible(false); and then you create the form object.
    please explain me this.
    I am waiting for your explaination

    • @SohailQureshi830
      @SohailQureshi830 6 лет назад

      setVisible(false); this will hide the current frame.......

  • @priyankachakraborty9734
    @priyankachakraborty9734 7 лет назад +1

    java.lang.NullPointerException this error is coming what to do....................

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      When you declare a reference variable (i.e. an object) you are really creating a pointer to an object. Consider the following code where you declare a variable of primitive type int:int x;
      x = 10;In this example the variable x is an int and Java will initialize it to 0 for you. When you assign it to 10 in the second line your value 10 is written into the memory location pointed to by x.But, when you try to declare a reference type something different happens. Take the following code:Integer num;
      num = new Integer(10);

    • @priyankachakraborty9734
      @priyankachakraborty9734 7 лет назад

      try{
      String sql="Insert into account(Username,Name,Password,Security_Question,Answer)values(?,?,?,?,?)";
      pst=conn.prepareStatement(sql);
      pst.setString(1,user_txtfield.getText());
      pst.setString(2,name_txtfield.getText());
      pst.setString(3,password_txtfield.getText());
      pst.setString(4,(String)jComboBox1.getSelectedItem());
      pst.setString(5,answer_txtfield.getText());
      //pst.executeQuery(sql);
      int i= pst.executeUpdate();
      JOptionPane.showMessageDialog(null,i+"New account created");
      rs.close();
      pst.close();
      }catch(Exception e){
      JOptionPane.showMessageDialog(null, e);
      }
      }
      i hv done ds..... be specific whr i hv to chng the code

    • @tayyabdost1139
      @tayyabdost1139 7 лет назад

      you just do that
      try{
      String sql="Insert into account(Username,Name,Password,Security_Question,Answer)values(?,?,?,?,?)";
      pst=conn.prepareStatement(sql);
      pst.setString(1,user_txtfield.getText());
      pst.setString(2,name_txtfield.getText());
      pst.setString(3,password_txtfield.getText());
      pst.setString(4,(String)jComboBox1.getSelectedItem());
      pst.setString(5,answer_txtfield.getText());
      //pst.executeQuery(sql);
      int i= pst.executeUpdate();
      JOptionPane.showMessageDialog(null,i+"New account created");
      }catch(Exception e){
      JOptionPane.showMessageDialog(null, e);
      }
      finally
      {
      try
      {
      rs.close();
      ps.close();
      } catch (Exception ex) {
      JOptionPane.showMessageDialog(null, e);
      }
      }

    • @albinaprajapati6717
      @albinaprajapati6717 7 лет назад

      i do have same error did you solve it

    • @believerofgod4778
      @believerofgod4778 6 лет назад

      TAYYAB DOST Bro its for SignUp page but I'm getting NullPointerExceltion on the same code.

  • @sudipadhikari7388
    @sudipadhikari7388 5 лет назад

    what is the difference between setText()and setString()?

    • @TechEntertaining
      @TechEntertaining  5 лет назад

      i)SetText() method in Java is used to print or title something in Java
      ii)It is used for create, drop, insert, update, delete etc. executes the select query. It returns an instance of ResultSet.

  • @harshitgarg3660
    @harshitgarg3660 6 лет назад

    From where we have to right the code

  • @AbhishekRaj-fc8ox
    @AbhishekRaj-fc8ox 7 лет назад +2

    not able to download jar file

  • @NITKE-254
    @NITKE-254 7 лет назад

    which java compiler are you using

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      +N.I.T its java ide Netbeans 8.1

    • @NITKE-254
      @NITKE-254 7 лет назад

      Ive followed everything you've done but when I install the drivers you recommended they ain't doing??Please help me out

  • @gv6980
    @gv6980 5 лет назад

    Can you just explain me!?
    This code:
    Con=javaconnect.connectDb()
    How with the name of the class we are able to call the method?

    • @khizarmasroor9723
      @khizarmasroor9723 5 лет назад +1

      we import the class (javaconnect) is the class name...and (connectDb) is the function

    • @sadamshah19
      @sadamshah19 3 года назад

      static methods are invoked with class name directly .It doesn't need an object to be invoked.

  • @albinaprajapati6717
    @albinaprajapati6717 7 лет назад

    i m getting null pointer error can u help me

  • @believerofgod4778
    @believerofgod4778 6 лет назад

    NullPointerException whenever I am clicking the seach..

  • @gamelover1320
    @gamelover1320 8 лет назад

    in part4 when i run program after writing complete code and click login it gives this eror
    java.lang.nullpointerexception
    whats this please help me with it

    • @TechEntertaining
      @TechEntertaining  8 лет назад

      +Game lover please re watch the video cause this error is caused by wrong spelling of words please rewatch the video or else if error is again occurred then i will help you.

    • @gamelover1320
      @gamelover1320 8 лет назад

      i have done it twice and this time dont even chagnged a single word but still the same

    • @TechEntertaining
      @TechEntertaining  8 лет назад

      okay then send me the 4th code to my email i'll check the error

    • @gamelover1320
      @gamelover1320 8 лет назад

      i have sent the email please check it and tell me the problem

    • @TechEntertaining
      @TechEntertaining  8 лет назад

      +Game lover i think you have missed to write some code for connecting the whole project as i shown connectivity.

  • @kameshsharma28
    @kameshsharma28 6 лет назад

    hey!! how you write getText function with cross line

  • @ravikumarchaurasia9355
    @ravikumarchaurasia9355 5 лет назад

    Sir error aya rhi ha forget wla source code m

  • @SKStream-YTGaming
    @SKStream-YTGaming 7 лет назад

    My application get stuck when I enter wrong user name and password in login page, Please tell me how to fix it.

  • @danatpaul1019
    @danatpaul1019 5 лет назад

    it's showing red lines here pst=conn.prepareStatement (sql);

  • @alltechgames6109
    @alltechgames6109 7 лет назад

    Bro my problem is
    When I press retrieve button in forgot page
    It shows nothing

    • @alltechgames6109
      @alltechgames6109 7 лет назад

      Please help

    • @osvaldolopes9610
      @osvaldolopes9610 6 лет назад

      You could give more details or even send the code if you've still got the problem...

  • @nanik7198
    @nanik7198 7 лет назад +1

    Bro send the code for this Project

    • @TechEntertaining
      @TechEntertaining  7 лет назад +1

      See you asking for source code no problem but i say you that do it yourself cause i also passed from same stage where now you are so at that time no help in YT but i did it my self , source code is just a answer to copy paste but doing yourself is an experiment and identify what is the working of that specific single line of word....hope you understand.

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      Go the Link and download the Required Jar File -
      clkmein.com/qBMFB6
      Go the Link and download the Required icons -
      clkmein.com/qBVcFb
      Go the Link and download the Required Giphy Images -
      clkmein.com/qBVcMR
      Go the Link and download the Icon Pack -
      clkmein.com/qBVve2
      Library Management System Required Notes :-
      clkmein.com/qBMGUJ

  • @cessyy3109
    @cessyy3109 7 лет назад

    I cant download this link what im going supposed to do?
    Go the Link and download the Required icons -
    clkmein.com/qBVcFb

    • @TechEntertaining
      @TechEntertaining  7 лет назад

      Go the link wait for 5 second and then click the Skip Ad button then ypu will get a link.

  • @ismoilshokirov4579
    @ismoilshokirov4579 6 лет назад

    "NO SUITABLE DRIVER"Guys I also came across with the same error: Not suitable driver ... I killed 2 hours to find a mistake, it was a syntax error. 056 you can download here: sourceforge.net/projects/phycluster/files/Packages%20needed/sqlitejdbc-v056.jar/download

  • @aqibnazirr
    @aqibnazirr 6 лет назад

    i am in 1st semester sala kuch samj nae a rha tu kia kar raha hai

  • @manidixit6713
    @manidixit6713 6 лет назад +1

    hi, when I am clicking the "create" button, NullPointerException is coming..please resolve my error as it is very necessary

  • @kameshsharma28
    @kameshsharma28 6 лет назад

    i have an error on line
    conn= javaconnect.ConnecrDb();
    what should i do?? plz help

  • @adnanabdullah5450
    @adnanabdullah5450 6 лет назад

    why am i getting out of memory exception?