• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Problem after making an application using JDBC

 
Greenhorn
Posts: 7
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, which RDBMS are you using? Did you catch the exceptions?
 
naresh San
Greenhorn
Posts: 7
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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)....
 
Sheriff
Posts: 27451
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 7
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have n't found any specification of classpath in Java launcher App....
 
Paul Clapham
Sheriff
Posts: 27451
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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....
 
permaculture is giving a gift to your future self. After reading this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic