Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Creating a database in local drive

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,


I am very new with JAVA and trying to create a database in my local drives to store my data with an application..

My concept is about creating REMINDER or TASK LIST : ( Task Name, Description, Time, Priorities and other data ).


Please help..



Abhishek



 
Ranch Hand
Posts: 491
23
Eclipse IDE Firefox Browser Spring VI Editor AngularJS Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Abhi,Welcome to CodeRanch!

Do you have tried something so far,are you familiar with IO package and classes inside it.you need to learn about reading and writing or re-writing a file through the classes in this package.you can start here-Basics of input-output from oracle.

Hope it helps!

Kind Regards,
Praveen.
 
Abhi Bhardwaj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Parveen,


Thanks for your response..


But parveen, i dont want to read such long files..

Can you please provide me some summarized solution...


Abhishek
 
Saloon Keeper
Posts: 6070
154
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an alternative to files, you might consider using an existing DB such as HsqlDB. That assumes you already know (or are willing to learn) SQL. That would be a useful skill to have, but learning both Java and SQL simultaneously may be a bit much.
 
Abhi Bhardwaj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i know SQL..
Actually i am an Abapper from last 3 years..



 
Marshal
Posts: 67475
257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Abhi Bhardwaj wrote:. . . But parveen, i dont want to read such long files..

Can you please provide me some summarized solution...


Abhishek

You obviously want to learn databases and Java® in 20 minutes, but I am afraid that is not how life works. You need not expect anybody to supply you with ready‑made instructions to create your database in five minutes.
 
Abhi Bhardwaj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right.

I am reading but not getting any right way from a long time..

If you know any right documents or files, please share..


Abhishek  

 
Campbell Ritchie
Marshal
Posts: 67475
257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the Java™ Tutorials?
 
Marshal
Posts: 6643
177
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are some of the basic steps you will need to do to create a Task List app.  You may already know some of these things.

  • Write out the business logic of the app
  • Write up the tables and columns you will need and their relationships to each other
  • Pick a database, such as MySQL or PostGres
  • Create your tables and relationships
  • Pick a method of accessing the DB, such as JDBC or Hibernate
  • In Java, write DAOs (data accesss objects) for your tables
  • Create SQL queries to manipulate your data
  • Create some kind of user interface (console, GUI, web)


  • None of these things is trivial.  Tell us what things you know and what you need help with.  If you are new to Java and have never written an app before, I would try something easier first, like a calculator.  The Java/DB interfaces are not simple.
     
    Abhi Bhardwaj
    Greenhorn
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you Everyone..

    Let me try with your solutions and links.

    Let you know shortly..


    Thank you so much.
     
    Abhi Bhardwaj
    Greenhorn
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Bye the way, Knute Snortum



    Is it right practice to use Net beans for my Java App..??
     
    Tim Moores
    Saloon Keeper
    Posts: 6070
    154
    Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I generally recommend that Java beginners become comfortable with the command line tools before using an IDE (which have their own significant learning curve).

    And once you start using an IDE, NetBeans wouldn't be my first choice, but that's almost a religious war, so best not to get into it.
     
    Knute Snortum
    Marshal
    Posts: 6643
    177
    Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Abhi Bhardwaj wrote:Is it right practice to use Net beans for my Java App..??


    Choice if IDE: there is no right or wrong in this.  I use Eclipse and I've heard that a lot of other people too, but that doesn't make Netbeans "wrong".

    Use of any IDE: I learned how to write and compile a "Hello, world" program without an IDE, then I started using them.  I think that knowing the basics of have to write and compile are good, but with any program that is more that trivial, use an IDE.  I can get you up and running quickly on a very simple project in almost any IDE.
     
    Everyone is a villain in someone else's story. Especially this devious tiny ad:
    Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
    https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!