sridhar chandramouli

Greenhorn
+ Follow
since Apr 13, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 sridhar chandramouli

No webpage. You've indexed your documents - now you can search them using:

java -cp lucene-demo-3.6.1.jar:lucene-core-3.6.1.jar org.apache.lucene.demo.SearchFiles

You can create your own webapp to use the classes in those jars. As mentioned earlier this has nothing to do with webapps & tomcat.
11 years ago
The presence of the jars in the directory doesn't mean they're in your classpath. Run your java command with the -cp option to make sure the jars are available:

java -cp lucene-demo-3.6.1.jar:lucene-core-3.6.1.jar org.apache.lucene.demo.IndexFiles -docs /opt/hpws/tomcat/webapps/lucene/contrib/demo/src
11 years ago
You need to have both lucene-core-3.6.1.jar & lucene-demo-3.6.1.jar in your classpath. The latter is in /contrib/demo/

This has nothing to do with Tomcat.
11 years ago
To get 2000, synchronize on account before you setNumber(). Otherwise you've got a race condition. While both setNumber and getNumber are individually synchronized, the entire operation that you have inside the for loop is not synchronized.



And what the previous poster said.
Cameron, thank you for the great Java 7 posts which are great. You're not singing into the wind as you feared earlier on.
11 years ago
Hi, been a long time visitor to this forum and have gained a lot from it (thank you) but haven't ever posted before.

A few weeks ago I signed up to take the Java SE 7 Programmer II beta exam in late May but now Oracle have moved the end date for the beta forward to 12-05-12. I'll call my test centre tomorrow to check what happens to my registration and whether i'll be able to move it forward. A part of me fears that I'll have to forfeit the registration fee as it's a heavily discounted beta exam and they can pretty much do as they please but I hope this isn't the case. If anybody knows what happens in a situation like this please let me know.

Passed the Java 7 SE Programmer I exam last month, due in no small part to the great questions and answers on this forum. Thanks.