Hi Christian,
your question isn't understandable to me: what does "a .jar functional with UcanAccess connection" mean? What exactly are you trying to do?
Cheers Marco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, I need compile a program of java in .jar, this program has a connection with ucanaccess. In development time this program runs fine, but when I compile this program in a .JAR, not establish the connection to the database.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You likely did something wrong in the code(the file path in the jdbc connection url is relative?). Or the classpath is wrong. Or something else.
Impossible to help you without an axception message or an axception stack trace.
Notice that Java programs are compiled in .class files, .jar files are just archives containing .class files.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, in eclipse I run this program and all fine. but the problem is after compilation.
I run the .jar file, and it run fine, but when I make a operations or wherever nothing happens, it is as if the database does not exist
not send errors.
this is my code.
Hi Christian,
I haven't evidence of errors in your code, but I can't help you using the informations you provided. It doesn't seem to be a ucanaccess problem, but general java:
there mustn't be differences between an execution in eclipse and using a jar.
You should probably review your configuration in the second case(e.g. classpath configuration), you probably did errors there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I solved the problem thinking about something you wrote."I haven't evidence of errors in your code", I imported the project in netbeans, and build it. The .JAR now is running fine and the connection works fine. The problem is in eclipse. thanks for your idea.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I solved the problem thinking about something you wrote."I haven't evidence of errors in your code", I imported the project in netbeans, and build it. The .JAR now is running fine and the connection works fine. The problem is in eclipse. thanks for your idea.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know how generate a .jar functional with UcanAccess connection, I try to do, but I find no way to run after being compiled.
thanks for your help.
Hi Christian,
your question isn't understandable to me: what does "a .jar functional with UcanAccess connection" mean? What exactly are you trying to do?
Cheers Marco
ok, I need compile a program of java in .jar, this program has a connection with ucanaccess. In development time this program runs fine, but when I compile this program in a .JAR, not establish the connection to the database.
Thanks.
You likely did something wrong in the code(the file path in the jdbc connection url is relative?). Or the classpath is wrong. Or something else.
Impossible to help you without an axception message or an axception stack trace.
Notice that Java programs are compiled in .class files, .jar files are just archives containing .class files.
Yes, in eclipse I run this program and all fine. but the problem is after compilation.
I run the .jar file, and it run fine, but when I make a operations or wherever nothing happens, it is as if the database does not exist
not send errors.
this is my code.
Hi Christian,
I haven't evidence of errors in your code, but I can't help you using the informations you provided. It doesn't seem to be a ucanaccess problem, but general java:
there mustn't be differences between an execution in eclipse and using a jar.
You should probably review your configuration in the second case(e.g. classpath configuration), you probably did errors there.
Thanks for your post.
I solved the problem thinking about something you wrote."I haven't evidence of errors in your code", I imported the project in netbeans, and build it. The .JAR now is running fine and the connection works fine. The problem is in eclipse. thanks for your idea.
Thanks for your post.
I solved the problem thinking about something you wrote."I haven't evidence of errors in your code", I imported the project in netbeans, and build it. The .JAR now is running fine and the connection works fine. The problem is in eclipse. thanks for your idea.