Warning: Could not find file C:\Users\Harsh Jain\Downloads\com.mysql.jdbc_5.1.5.jar\co - mysql

I am getting this error while running the Student Management System project in netbeans Ide project in made in java,jsp,html.Please help me

Your project's build has a dependency on the Java ARchive (.jar file) com.mysql.jdbc_5.1.5
There are two possibilities that I see here, without further details on what you have done so far:
1) You already downloaded the jar, but when you specified the path where your build process is gonna look for that file you had an error in your path ... make sure you have a jar file in C:\Users\Harsh Jain\Downloads\com.mysql.jdbc_5.1.5.jar or C:\Users\Harsh Jain\Downloads\com.mysql.jdbc_5.1.5.jar\com.mysql.jdbc_5.1.5.jar (I'm thinking you might have copied the name of the jar file twice in your path).
2) If you have not manually downloaded that file, then you should do so. You can find that version at http://www.java2s.com/Code/Jar/c/Downloadcommysqljdbc515jar.htm (or elsewhere). Once downloaded, make sure to copy/unzip the actual JAR file to your C:\Users\Harsh Jain\Downloads folder.
Once you have ensured the file is actually on your system AND in the right path, run the build again.

Related

IntelliJ IDEA: Unable to download MySqlDriver

I am using IntelliJ IDEA,and I want to configure MySQL database from the IDE:
then fail:
The error is:
Failed to download 'http://download.jetbrains.com/idea/jdbc-drivers/mysql-connector-java-5.1.40-bin.jar
I don't know why connection will time out.
I can download other things such as plugins from jetbrains, but except jdbc-drivers.
I recommend taking a look in IDEA's log files to see if they may have additional details as to why the download is timing out. From the menu go to Help > Show log.
As a workaround, you can manually download the drivers and place them in the necessary location. Download bo the JAR and the mysql-connector-license.txt license file (from http://download.jetbrains.com/idea/jdbc-drivers/mysql-connector-license.txt of from MySQL directly). Place both files in the path {idea-config-dir}/jdbc-drivers/MySQL Connector/J/5.1.40 (modifying the version number if necessary). The location of the {idea-config-dir} can be looked up in the Directories used by the IDE to store settings, caches, plugins and logs help document. For example, c:\Users\Dilbert\.IntelliJIdea2017\config or ~/Library/Preferences/IntelliJIdea2017
Thus, in the end, that directory should have two files:
mysql-connector-java-5.1.40-bin.jar
mysql-connector-license.txt
put jars in
C:\Users\UUSER\AppData\Roaming\JetBrains\DataGrip2020.1\jdbc-drivers\PostgreSQL\42.2.5
from another install with internet
In 2019, The folder is this >>
C:\Users{YourUser}.DataGrip2019.3\config\jdbc-drivers\MySQL Connector\J 8\8.0.21
Download jar from
https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.21/mysql-connector-java-8.0.21.jar

Distribution of Executable jar file in netbeans

I have created a database desktop application using netbeans. Netbeans creates a jar file in the project folder. When I run it, it works fine.
The problem is when I take that jar file outside the project folder and then try to run it, it shows an exception of org.sqlite.jdbc. This exception keeps on striking until I close the process using Windows task manager but it is not running.
In dist folder, you will find three things :
the .jar file of your project
a lib folder
Readme.txt
Make sure that when you take your .jar file outside the project folder, take the lib folder as well.
The lib folder contains all the libraries and jar files you've used in your project and are essential to make the jar file run.
Hope it helps!! :)
Thanks. I have found a solution here http://arunasujith.blogspot.in/2011/08/how-to-build-fat-jar-using-netbeans.html?m=1.

SSIS Deployment Woes

I'm quite confused as to how to create a deployment in SSIS 2008 that I can use throughout the various sites we are going to deploy to. I'm using the deployment utility to deploy my ETL packages which are file based and executed using a SQL job.
When I rebuild my solution, the deployment files are created along with their configuration files which I bind my connection strings to. I've discovered that each of the packages are still referencing the configuration files in my project folder, rather than the configuration files in the deployment folder. I thought that when I created a deployment, the paths referencing the configuration files would be relative paths.
Ideally, what I would have liked to have been able to do would be to copy the contents of the deployment folder to a flash drive, plug it in at the site I'm deploying to and edit the configuration file per the customer site, execute the deployment manifest file in the folder and expect everything to work. But this doesn't seem to be the case.
I also notice that the SQL job has an option to specify the configuration files for the packages, but this doesn't seem to have an effect either. I must clearly be doing something wrong here, please could someone assist.
Seems like you are encountering these two issues with SSIS deployment and execution:
Configuration file references are stored with absolute paths (meaning the concrete path used in the development environment when the configuration file reference was created, and in production this is the same path that will be used).
Specifying a different configuration file at runtime in SSIS 2008 cannot override values specified at design time (see Understanding How SSIS Package Configurations Are Applied at Run Time).
To deploy your packages with a simple file copy the way you describe, you must change your packages to use a relative reference to your configuration files:
Right click the package file and select View Source to open the XML view of the package source. Search for your configuration file, which will include the path, and remove the path; keeping only the filename portion. Alternatively, change the absolute path to a relative path to the configuration file. Save and close the XML view of the package.
Now when you deploy the package and the configuration file together, ensuring they have the same relative location to each other, the package will find the config file by the relative path, and work the way you expect.
Note: from this point forward you will need to open the BIDS IDE by double-clicking on the project or solution file. If you launch Visual Studio, and then open the project or solution from within the IDE, the IDE will not be able to find the configuration file when you execute the package (the current directory will be Windows\System32, not your package folder).

Can't add the Mobile Apps Tracking bindings to my project

I'm trying to use the MAT bindings in my project however it seems that the .jar file is not included on: http://libgdx.badlogicgames.com/robovm-ios-bindings/
I have also tried adding it to my project by downloading the repository from: https://github.com/BlueRiverInteractive/robovm-ios-bindings/tree/master/mobileapptracking and adding the project to my Robovm build path but it's not working as well.
Any idea how to solve this ?
Thanks,
ASM
I have made a bindings project into a jar file doing the following. I am sure there is an easier way to get the framework in the correct folder, but I have not yet found it.
load bindings project in eclipse
export the source folder (you should get org/robovm/bindings/mobileapptracking/) to .jar file
open the jar file with winrar or similar program
add folder: robovm/ios/libs/ in META-INF folder
add the .framework(s) to this folder
now you should have a similar .jar file as on the libgdx site!

What is the method or class or whatever that show me the configurations files of JRuby?

I'm new to JRuby, I installed it on windows 8, and I'm following it's wiki. When the wiki said to change a configuration option, it dose not say exactally where I can find the file where the option resides, it gives only its name but not the full path.
So is their a method that I can run on jirb to find the path to any configuration path.
thanks.
The .jrubyrc file is searched in your current directory (user.dir Java property), your home directory (user.home), and since you're on Windows, also in HOMEDRIVE\HOMEPATH, in this order (and the first one wins).