I have created a java application that connects to a mysql database. I imported the libraries as a request from the ide netbenas 10 and trying it works. But when I export the application in jar format, when I go to run it the connection to the DB no longer works. Does anyone know how I can do?
mysql-connector-java-5.1.47.jar library does not work in the .jar file
347 Views Asked by Francesco Gobbi At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in EXECUTABLE-JAR
- Is It Possible To Create a .jar File That Runs An Existing .bat File?
- Java .JAR to desktop shortcuts/proper apps for windows, mac and debian
- Executable Jar cannot find typesafe/config application.conf on classpath
- Error while running my jar outside of the ide using command line and external lib
- Cannot compile jar for windows
- spring.xml not packaged in executable jar
- NotesServiceRuntimeException occurs when running jar
- Would it be a RedHat permission issue for a executable jar to get an SSLHandshakeException between servers?
- Adding nested jars into the classpath
- creating service from executing a JAR file in UBUNTU
- Array ( [0] => 'java' is not recognized as an internal or external command, [1] => operable program or batch file. )
- Creating Textfiles within executable JAR
- If there is no SecurityManager found does this mean I cannot setProperty?
- Jar to Eclipse Plugin conversion
- Clear and Build Error
Related Questions in NETBEANS-10
- Make the new JDK 11 java.net.http package visible in Netbeans 10
- How to reset text zoom in NetBeans?
- NetBeans 10: missing external libraries in dist/lib
- NetBeans 10 External Execution Base API issue
- Getting error while creating JavaFX11 application in Apache Netbeans 10
- How to create Web Application in Apache Netbeans 10?
- Netbeans 10 doesn't run html pages in the browsers
- NetBeans 10 JUnit Jar not found
- mysql-connector-java-5.1.47.jar library does not work in the .jar file
- Ubuntu 18.04/Netbeans 10.0 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
- Fatal Error: Unable to find package java.lang in classpath or bootclasspath
- Problem in running java code in netbeans ide
- Disable multi-coloured braces in Netbeans 10.0
- Netbeans - run bash script before running the program?
- not able to run new codeNameOne project createdd by the IDE
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Please add the mysql jdbc jar in the classpath while executing your Jar.