File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Database" Watch "Database" New topic


Dishi Malhotra

Joined: Dec 13, 2000
Posts: 22
can we database applications like we make in visual basic without using any browser as the front end or the output window
Val Dra
Ranch Hand

Joined: Jan 26, 2001
Posts: 439
Yes , you can!!!

Val SCJP <BR>going for SCJD
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
When you use a browser you need to execute an applet or servlet, or XML, etc. The JVM in the browser supplies the java environment.
However you can have regular applications outside of a browser that are fired from the command line (or typically from an icon). These applications rely on the JRE (java runtime environment) for the environment. You make sure that the actual class that you call at the command line has a main() method in it so java knows where to start. The output is usually to the console, or the GUI that you provide (or to files of course).
To do the database calls you use the ODBC:JDBC supplied by the vendor of the database. Java can call an Access database using the JDBC driver provided by Microsoft, the same with almost every well known database on the market today.
Of course if you are clever, you can define and maintain the data with your own home built files and access class (but why re-invent the wheel, when there are SOOOO many good choices already out there).

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Database
It's not a secret anymore!