|
Did you actually read the error message? getcname declares thrown exceptions, so you have to catch or declare them as thrown wherever you call it. That means you can't use getcname in a static initialiser, because there's no way to catch the exception.
|
|
|
|
|
I have some files dont know how to decrypt them i mean these are using to conduct exam, atleast i am unable to keep all the data for future preparation also
i am attached a rar file download This Link in it i kept a folder which contains six files 5 of the are encpyted from them one is question other four are options of that question and one of them the solution of the question
i need to decrpyt so please tell me the way to decrypt and to view them
|
|
|
|
|
I don't know why - but I felt fancy and wanted to see if our new virus detection is working (They said it's so much better...).
The files are complete crap. There is nothing in them. What kind of file are those supposed to be? They are HTML labeled, but I guess they should be something else!?
|
|
|
|
|
It contains no virus or any thing that harms the computer i just need some types of encryption and decryption that are used in tomcat jsp
I want to break it totally
|
|
|
|
|
kmkmahesh wrote: I want to break it totally
Then you are in the wrong place. We do not assist in hacking.
Programming is work, it isn't finger painting. Luc Pattyn
|
|
|
|
|
believe me. There is nothing in these files.
What should be in there and where did you get them?
|
|
|
|
|
With the effort you're putting into this, you could just learn the course material properly and pass the exam legitimately.
|
|
|
|
|
Programming is work, it isn't finger painting. Luc Pattyn
|
|
|
|
|
Hello everyone! I have been trying for three days on Eclipse 4.2 version.I have done all the work regarding Tomcat installation and configuration and JDBC 5.1 plugin installation.The problem is this;when I try to make a connection to the MySql server,it rejects although I provide it with proper info such as port no 3306,database "test".By the way I have no password for mysql server.Any help plz.thnx
Always believe in God and never let misfortunes make you give up
|
|
|
|
|
Hi,
That is pretty vague; ou could Google for examples and find things such as this[^]; or you could show us the relevant parts of your code and the exact exception information you are getting, if you want specific help.
|
|
|
|
|
countered the downvote
V.
|
|
|
|
|
|
Write a simple program that does NOTHING but a jdbc connection.
That means that it will NOT have any GUI components.
That means that it will NOT have any Tomcat/JEE specific code.
Set the connection string.
Run it.
Look at the exception.
Most likely causes are incorrect connection string, no access to the database and/or that the database is not running.
Only the first is solvable in java.
|
|
|
|
|
Does the MySQL server run on the same machine? If no, configure it to accept connections from different computers.
Do you want to login as root from a different computer? Also that must be configured.
Have you tried a user with password?
Can you connect to your MySQL server with a MySQL tool, e.g. MySQLAdministrator.exe or MySQLQueryBrowser.exe?
|
|
|
|
|
Yes the Sql server is in a same machine and I have also allowed remote connections and firewall access rules for both Tomcat and MySql.I can easily access MySql from Workbench as well as ping from connection builder tool from eclipse.The problem arises when I use com.mysql.jdbc.Driver in driver name in my code
Always believe in God and never let misfortunes make you give up
|
|
|
|
|
which port do you use? is it already taken? what's the Exception saying?
|
|
|
|
|
Dear fellows! I have tried everything.Made a program in notepad compiled it and when ran ame error then I used this command on elevated command prompt C:\>javap mysql.connector.java-5.1.20 and the result " Class ---- is unavailable".I run MySql over 3306 port it is working jhakass(means great) as i have 4GB RAM and CORE Processors 500 GB HD 32 Bit Win 7 Ultimate
Always believe in God and never let misfortunes make you give up
|
|
|
|
|
adeel1981 wrote: javap
"javap" has nothing to do with compiling nor running a java application.
adeel1981 wrote: Class ---- is unavailable"
Class path problem or class naming problem. Which is a general problem that has nothing specifically to do with JDBC.
|
|
|
|
|
I have tried everything.Made a program in notepad
yeah for sure. Why don't you use a IDE? Eclipse and Netbeans are free, there is no excuse for not using them.
You have NOT tried everything when you are not even using a proper IDE.
|
|
|
|
|
Dude I hav alreasy tried Eclipse 4.2 installed all plugins and softwares,installed tomcat 7.
Always believe in God and never let misfortunes make you give up
|
|
|
|
|
Why do you not address the actual problem you have and investigate why you cannot connect to MySQL? Either your parameters are wrong (you say they are correct) or the driver is not accessible on your system. You have already demonstrated that using javap your class does not exist in the local directory, so that should be a starting point to find out where it is.
Programming is work, it isn't finger painting. Luc Pattyn
|
|
|
|
|
There has nothing to do with programming here. mysql.jdbc.driver is not being loaded.I am very first to java and apache and mysql but have done everything.I have personally installed it in java main directory and the newest version.When I installed it in Tomcat.Eclipse is easily making a connection to it
Always believe in God and never let misfortunes make you give up
|
|
|
|
|
adeel1981 wrote: mysql.jdbc.driver is not being loaded.
OK, then you need to investigate why that is so. But from the information you have given here it is anyone's guess what is going wrong.
Programming is work, it isn't finger painting. Luc Pattyn
|
|
|
|
|
In that case you should hope for heavenly help.
I can just tell you to use the tools that you are given.
|
|
|
|
|
I made a list of string and store data inside it ,then i made a code on this list after that i have results....my question is i want to take this results and store it in list of string . how i do that????
|
|
|
|