If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > run in my PC: Type 1 db driver Access / java[SE1.6] Desktop Applications, what I need

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #31 (permalink)  
Old 11-23-09, 16:58
lse123 lse123 is offline
Registered User
 
Join Date: May 2007
Posts: 139
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url= "jdbcdbcriver={Microsoft Access Driver (*.mdb)};DBQ=C:/temp/thebase.mdb";
String user = "user";
String pass = "pass";
Connection connection = DriverManager.getConnection(url,user,pass);

// if i use above what user/pass to use ? default is root/root or ? db come with textbook files ...
Reply With Quote
  #32 (permalink)  
Old 11-24-09, 14:57
lse123 lse123 is offline
Registered User
 
Join Date: May 2007
Posts: 139
MySQL DSNs & Access DSNs must have different names in a PC system ?
Reply With Quote
  #33 (permalink)  
Old 11-25-09, 04:32
Pyrophorus Pyrophorus is offline
Registered User
 
Join Date: Aug 2009
Posts: 68
Quote:
Originally Posted by lse123 View Post
MySQL DSNs & Access DSNs must have different names in a PC system ?
I don't know if the system prevents you to define two DSN with the same name, but it's certainly at least confusing. How could application get the right one, if they have the same name ?
If you mean you've already created two DSN with the same name, maybe you're accessing MySQL database and that's why you don't see anything in Access !

Laurent
Reply With Quote
  #34 (permalink)  
Old 11-27-09, 16:50
lse123 lse123 is offline
Registered User
 
Join Date: May 2007
Posts: 139
finally I found error, there was two files WINESDB.mdb in hdd... I try both connection ways success, well to make a distributed App Java database[TYPE 1] desktop standalone I need absolutelly an IDE(GUI) ? CLI used only javac & java commands ?
Reply With Quote
  #35 (permalink)  
Old 11-28-09, 01:44
Pyrophorus Pyrophorus is offline
Registered User
 
Join Date: Aug 2009
Posts: 68
Quote:
Originally Posted by lse123 View Post
finally I found error, there was two files WINESDB.mdb in hdd...
Yes, I suspected something of the like.
Quote:
Originally Posted by lse123 View Post
I try both connection ways success, well to make a distributed App Java database[TYPE 1] desktop standalone I need absolutelly an IDE(GUI) ? CLI used only javac & java commands ?
Sorry, I don't understand the question.
Well, you have a program which fills a database (desktop or not). Then what do you want to do with this database ?

Laurent
Reply With Quote
  #36 (permalink)  
Old 11-28-09, 02:13
lse123 lse123 is offline
Registered User
 
Join Date: May 2007
Posts: 139
Java desktop Apps that use database[Access .mdb _ TYPE 1] (standalone) that are .exe files for windows how are created ?

I need absolutelly an IDE(GUI) ? CLI used only javac & java commands ?
Reply With Quote
  #37 (permalink)  
Old 11-30-09, 03:51
Pyrophorus Pyrophorus is offline
Registered User
 
Join Date: Aug 2009
Posts: 68
I don't clearly understand what you want to do.
Java apps are not .exe files. Most often, they are shipped in a .jar file. The jar.exe command line application can create them.
You don't need an IDE to create a Java app, but you probably better should use one. NetBeans for instance is free and comes with Java jdk. It provides a standalone Java SQL database too (Derby).

Laurent
Reply With Quote
  #38 (permalink)  
Old 11-30-09, 05:38
lse123 lse123 is offline
Registered User
 
Join Date: May 2007
Posts: 139
well, this I want is from files.java/files.class make a stand alone App(with Access propably) that a user can install in his PC with a desktop access icon, and user non have MS-Access, JDK, JRE ... app be stand alone ...well .jar files is like zip ?
Reply With Quote
  #39 (permalink)  
Old 11-30-09, 06:17
Pyrophorus Pyrophorus is offline
Registered User
 
Join Date: Aug 2009
Posts: 68
You should read more about Java and Java developpment. These are basics and you will learn faster than asking here.
BTW, Java JRE is mandatory, but comes with many systems. When installed, .jar files can be run by double click.

Laurent
Reply With Quote
  #40 (permalink)  
Old 12-02-09, 10:26
codehunter codehunter is offline
Registered User
 
Join Date: Nov 2009
Posts: 9
To help your users to install your java application you could use any of the existing java installers. Search for "java installers" or similar. But the first step however should be, as Pyrophorus said, to read a bit more on general java topics. Just dont get frightened if you find this whole thing about jar and class-files confusing, you just have to be familiar with the concept.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On