I'm trying to create a simple login form using servlets connected to database. But I got this error:
No JDBC driver found
I had added mysql-connector as external JAR file. After searching for solution on stackoverlow, it was suggested instead of adding it as external JAR file, copy paste it into WEB-INF/LIB folder. But whenever I try that, it gives me error:
Cannot paste clipboard contents into selected elements
How can I resolve this?
EDIT 1: Eclipse not allowing me to drag-drop either
To fix it in that case, extract the file(s) from the archive first(.rar,.tar,.zip), then c-and-paste the file into Eclipse. Works for me under Package Explorer, too.
OR Go for
project->clean
just go through that
Eclipse & JAR Hell
May be that Help you out !!
Instead of copy paste try to drag file and place it in web-inf/lib folder
please Be sure that the file is not from a zip folder.
If it is from zip folder extract it , then copy paste the file.
download winrar-x64 /winrar-x32
install winrar
now unzip ur files
copy paste in eclipse
Best Solution:
Yes i try to start learning JDBC and had to face this issue.
I read the stackoverflow posts but nothing seems to be solving my issue.
Then i did one thing
1.Right click the project
2.Go to properties
3.java Build path
4.libraries
5.Add external Jars
6.Add the jar file
7.hit ok to save
8.Then copy and paste same jar file into the project that you have done before
9.Success!you won't see any error prompt
I am happy now and i hope that you too when you follow this procedure 😊
Related
I need to replace one word (REPLACE with MODULATE) within the StdDraw3D.java file. I have opened the jar jd-gui and am pretty stuck now. I have been looking for videos or websites and cant quite find a way to do it. Any help would be greatly appreciated. I have not copy paste the code as i don't need help with code just how to edit or replace the original java file.
You have to download the complete source code for StdDraw.jar, update the required java file and rebuild the code again to get the updated jar file. Then use the updated jar in your project.
Steps:-
1. Download the StdDraw.jar
Extract the jar file in folder by right click on it and click on extract.
Copy the StdDraw3D.java file and edit and make required changes then compile it again. Then copy the changed class and java files in the above folder.
Now again create jar file out of that folder.
I'm trying to just copy an external library .jar file into my libs folder. It keeps saying, that it's a read-only file. How do I go about doing this? Thanks :)
The problem isn't that your file is read only. It happened to me today on my iMac with *.png files that weren't read only. Instead of dragging it, try the old fashion way: copy your file and then paste it in your folder. It may work.
Apparently, it's a bug with the latest Android Studio
CTRL + Drag works for importing in Windows.
On a Mac you can hold down the Option key while dragging the files into Android Studio.
See the comment in this answer: https://stackoverflow.com/a/24053667/475217
Go into properties for your .jar and uncheck Read Only. Then switch over to the Android Development Bundle and never look back :)
Your error message gives you the reason. Your jar file is read-only and is not in your libs folder (right now it's in your Downloads folder).
Make sure you properly copy it to your libs folder, and try the re-factor again.
I am receiving an error when i am trying to set a project from my co-worker into my work space.
He has few jar pointing to his local, when i am trying to edit the build path it say .classpath is read-only.
Is there any solution to over come this?
Thanks,
Tom
Change to "Navigator" view. And under your project ,right-click on the classpath file and uncheck the "read-only" option.
BTW, you do know that you need ALL the Jars for your project to compile right?
I also have the same issue. In my case i did following:
1. open .classpath file and copy its all content.
2. Delete .classpath file.
3. copy .classpath file from any of your other project and paste in current project.
4. open .classpath file and paste the content you copied from previous file.
now you can do changes in build path without any error
Infact ,browse to the location where you have the project,change the permission from "read only" recursively to all the sub folders.This would ensure all the files have the write permission.
I was facing the same issue. This is what I have done since I am not able to find the .classpath file in the navigator.
Go to the navigation mode,
1.source --> Organize imports
That worked for me, not so sure if this is the correct approach.
I'm trying to make a .jar file to use in future programs, and in the build path of that file, is another .jar file that is a used resource of the program i'm making.
whenever I try to export with Export>Jar File and hit finish, and open my newly created jar with winrar, there is no other file in there, and i get errors when trying to use it.
I've tried going to properties>java build path>order and export, and selected everything, and it still doesnt work! please help me!
This is in eclipse.
Solved: just used Fat Jar Pluginenter link description here
I recently downloaded the microba datepicker and it comes with three JAR files: the source code, the compiled coled and one JAR for javadoc.
I use netbeans and tried everything within my limited abilities to get access to that documentation, but just couldnt make it ... can you help me please to solve that problem?
To read the javadoc from a .jar-file one first has to unpack it. To do so, open your console, navigate to the folder where the jar file is located an unpack it using the following command:
jar xf yourFileNameHere.jar
Then you can access the documentation.
First you need to unzip the zip-file to your preferred location, go to your netbeans and on your project you search for Libraries and you right click on >>>Libraries and select >>>Add JAR/Folder located your extracted file and then click on open.
Try this method, Right click plusztester(prototyp) project and select >> Resolve Project Problems select the missing files and resolve them by locating the right files.