aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Problem after making an application using JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Problem after making an application using JDBC" Watch "Problem after making an application using JDBC" New topic
Author

Problem after making an application using JDBC

naresh San
Greenhorn

Joined: Nov 01, 2011
Posts: 7

Hi...Everyone

i have coded one program that takes the values from simple AWT based window application with JDBC connectivity.And while running from the console the window form takes the all values and stores them in specified table in DB successfully.

But after converting that .class file into .exe file using javaLauncher Application, it is not working with its functionality which i have given though the AWT components are displaying fine with all their properties.


Is anything wrong while conversion though i got .exe file or any external tools need to make right window application? let me know....

Are the DB properties wrong though i had inserted values when i run from console(.class)?


As i don't have full knowledge i am trying myself with the ideas i got ... Please don't mind and clarify me

Any useful solution would be appreciated...



Thanks in advance..
Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Hi, which RDBMS are you using? Did you catch the exceptions?
naresh San
Greenhorn

Joined: Nov 01, 2011
Posts: 7

Haina Minawa wrote:Hi, which RDBMS are you using? Did you catch the exceptions?


i have used Oracle and there are no exceptions while running in console( inserted data successfully)....
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18991
    
    8

How do you specify the classpath for your executable when you run it? Or can you even specify one? Did you specify one? Or did you include the classes from the JDBC driver into the executable? Is your JDBC driver a type-2 driver or a type-4 driver? If it's type-2, how do you tell your executable where the native components are located?
naresh San
Greenhorn

Joined: Nov 01, 2011
Posts: 7

type-2 driver or a type-4 driver

Its type 4 driver..and i am new to this apps development so i had tried it once with Java Launcher App with some technical stuff which i have got the theory knowledge about JDBC only on console(cmd prompt).

How do you specify the classpath for your executable when you run it?

so kindly give me the process how can i build executable file with proper DB connection like where to set class-path to Exe and also name of the tools for Java Executable Wrapper generate....
naresh San
Greenhorn

Joined: Nov 01, 2011
Posts: 7

i have n't found any specification of classpath in Java launcher App....
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18991
    
    8

So this is a question about how to use that JavaLauncher application, isn't it? Let's find a more suitable forum to be its home then...
naresh San
Greenhorn

Joined: Nov 01, 2011
Posts: 7

Paul Clapham wrote:So this is a question about how to use that JavaLauncher application, isn't it? Let's find a more suitable forum to be its home then...


Yes, but i want to know how the communication will be set between the .exe(built from .class) to the DB.Only .jar files enough?.... I got .class file which can store the values when it runs on command prompt...

I do want the exact process externally how we can do....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem after making an application using JDBC