Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!

Leander Kirstein-Heine

Greenhorn
+ Follow
since Mar 13, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Leander Kirstein-Heine

Campbell Ritchie wrote:Agree. That has already been suggested here.



Right and sorry, I'm really new here and haven't read all threads ...
11 years ago
I won't verify if there are some duplicates. ;) But try to store your numbers in a set and leave the loop if the size of the set tells you having as much numbers as you want.

Just my 2 cents ..
11 years ago
The last value in your insert statement should not be quoted - because it's a number. Your line 14 must look like this:



It will be much easier to use prepared statements. More about that you can read here: http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html
If Tomcat is not started, try to deactivate the user access control (UAC) and then start Tomcat or the service.

From my experience Tomcat will run if you deactivate the UAC while installing Tomcat as a aervice. After the service was installed, you can reactivate the UAC.
11 years ago