Forum: Java May 20th, 2008 |
| Replies: 1 Views: 646 Try debugging !
Code isn't complete ? where is StaticPong?
Do simple step by step debugging using some debugger like Eclipse. Put a break point in the handler.
Otherwise do it old style, put some... |
Forum: Java May 20th, 2008 |
| Replies: 2 Views: 604 What's the problem ?
See help on code tags, would be more readable if you add =java. |
Forum: Java May 3rd, 2008 |
| Replies: 1 Views: 902 What is the problem ? What's not working ? |
Forum: Java May 3rd, 2008 |
| Replies: 4 Views: 725 RTFM. Even Yahoo can produce an answer for this.. !
http://search.yahoo.com/search?p=how+to+create+jar+file&ei=UTF-8&fr=moz2 |
Forum: Java May 3rd, 2008 |
| Replies: 9 Views: 758 >> what does it mean to say we have a 32-bit processor ?!!
In very dummy terms it means the processor would process 32-bits in one machine cycle. Say if it's 2GHz processor, it'll process 32-bits 2... |
Forum: Java May 3rd, 2008 |
| Replies: 5 Views: 843 |
Forum: Java Jul 31st, 2007 |
| Replies: 2 Views: 3,100 Does the binary of JVM (e.g. java.exe) provide an option to work in a backward compatible mode?
My problem is I have JRE 1.6.0_01 installed on my machine and I have an application that requires JRE... |
Forum: Java Jul 26th, 2007 |
| Replies: 7 Views: 3,390 Depending on your application one of the 2 approaches can be chosen.. If you have enough complexity in DB parts OR more than one servers connecting to DB layer, you might want to have database server... |
Forum: Java Jul 24th, 2007 |
| Replies: 11 Views: 3,484 Thanks for the feedback about first one. The second link doesn't work due to a typo.
Here is the updated one: www.onlinecomputerbokks.com/ (http://www.onlinecomputerbooks.com/) |
Forum: Java Jul 24th, 2007 |
| Replies: 11 Views: 3,484 www.freecomputerbooks.com (http://www.freecomputerbooks.com/)
www.onlinecomputerbooks.com (http://www.onlinecomputerbokks.com/) |
Forum: Java Jul 24th, 2007 |
| Replies: 5 Views: 2,343 Check out this code snippet (http://www.daniweb.com/code/snippet667.html), it loads some class files and shows an example of loading a resource (directory or jar file) and then looking for a specific... |
Forum: Java Jul 23rd, 2007 |
| Replies: 11 Views: 3,484 Sounds very logical !! May be same can be communicated to C/C++ forum moderators as well.. :) |
Forum: Java Jul 23rd, 2007 |
| Replies: 6 Views: 1,191 Of course !
Well, I assumed that while compiling a.ob1(null); compiler would try to do an implicit conversion from null to String and Object by interpreting the code something like this: a.ob1(... |
Forum: Java Jul 23rd, 2007 |
| Replies: 6 Views: 1,191 References:
Object: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html
String: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html
Compiler specs:... |
Forum: Java Jul 23rd, 2007 |
| Replies: 6 Views: 1,191 Seems like String one is the ONLY applicable method.
At the call options are create and Object using "null" or create a String using "null".. Object doesn't have a constructor that takes argument... |
Forum: Java Jul 23rd, 2007 |
| Replies: 2 Views: 725 what's "dos"?
AFAIK plain Eclipse can't do this. A war file is the web-achieve of J2EE.. you'll need to install some plug-in that supports development/creation of of web-achieves..
One such would... |
Forum: Java Jul 23rd, 2007 |
| Replies: 11 Views: 3,484 I was hoping, for others' sake that this will be made a sticky post so all can get this basic info easily; and for my sake that others will add some more links to good tutorials that I can refer to.... |
Forum: Java Jul 21st, 2007 |
| Replies: 11 Views: 3,484 Some more links from some other threads..
http://www.exampledepot.com/index.html
Thinking in Java 3rd Edition (http://www.smart2help.com/e-books/tij-3rd-edition/TIJ3.htm)... |
Forum: Java Jul 11th, 2007 |
| Replies: 4 Views: 2,374 Check out this thread (http://www.daniweb.com/forums/thread72703.html), it also has some links to more info... |
Forum: Java Jul 6th, 2007 |
| Replies: 11 Views: 3,484 I needed to get links to some good Java, J2EE tutorials and was surprised that daniweb::Java didn't have a thread on that..
Of course it's easy enough having Sun provide tutorials on most things,... |
Forum: Java Jul 5th, 2007 |
| Replies: 4 Views: 7,298 Anyway, try this:
Extend existing String class in say MyString.
In MyString's constructor
- take a String as argument.
- Cut out the first word and pass on the rest to base class.
On to your... |
Forum: Java Jul 5th, 2007 |
| Replies: 22 Views: 3,388 No way I can understand so much of code without code tags.. |
Forum: Java Jul 5th, 2007 |
| Replies: 14 Views: 1,627 How exactly did you manage your first 6 sems.. ?!
Try Sun's Java Tutorial (http://java.sun.com/docs/books/tutorial/).. |
Forum: Java Jul 5th, 2007 |
| Replies: 4 Views: 15,550 See this thread (http://www.daniweb.com/forums/thread73182.html&highlight=Runtime).. it should answer all your questions and give you enough examples.. |
Forum: Java Jun 29th, 2007 |
| Replies: 2 Views: 902 Some more info like OS, Java version, kind of application would help.
I don't really know anything specific in Tomcat itself though. :). You can do things like nice in Unix. |
Forum: Java Jun 28th, 2007 |
| Replies: 8 Views: 1,211 I didn't exactly get this. But I know that in our product, for O&M GUI we use Apache Tomcat. The GUI is written completely using JSPs. |
Forum: Java Jun 28th, 2007 |
| Replies: 8 Views: 1,211 AFAIK this used to be the case, now-a-days webServ itself takes care of both these tasks. |
Forum: Java Jun 26th, 2007 |
| Replies: 8 Views: 1,211 AFAIK:
A web-server usually hosts only front-end jsps/htmls. It will have very little or no business logic.
An Application server on the other hand would host a lot more of business logic. |
Forum: Java Jun 22nd, 2007 |
| Replies: 1 Views: 1,533 I just did a Ctrl+F in this thread for following 3 functions:
cannot find symbol method setItemNumber(java.lang.String)
cannot find symbol method setProductName(java.lang.String)
cannot find... |
Forum: Java Jun 20th, 2007 |
| Replies: 7 Views: 10,814 Write your own tokenizer.. should be easy enough.. |
Forum: Java Jun 18th, 2007 |
| Replies: 2 Views: 1,349 May be you have an old .class file in your path. Check by explicitly setting the classpath OR passing it on command line OR running on a different machine/window. |
Forum: Java Jun 18th, 2007 |
| Replies: 2 Views: 5,891 (assuming you're talking abt HTTP Sessions) AFAIK they are stored in memory and not serialized to any normal flat file. (although you might wanna check if HttpSession class implements serialize or... |
Forum: Java Jun 15th, 2007 |
| Replies: 3 Views: 1,244 Just reformat the code and the error will be glaring in your face.
Use Astyle e.g.
Also use the code tags:
class waiters
{
private double tab;
public waiters(String name);
{
... |
Forum: Java Jun 14th, 2007 |
| Replies: 16 Views: 2,712 Looks like local_jlist is a function local variable (inpublic Prod_applet()).. and not in the scope where you're using it (line 226).. make it a member variable.. it should work.. |
Forum: Java May 23rd, 2007 |
| Replies: 8 Views: 5,196 So what have u tried so far.. ?
Post the code you've done.. |
Forum: Java May 8th, 2007 |
| Replies: 3 Views: 1,973 BTW: This thread (http://www.daniweb.com/techtalkforums/thread76536.html) was teh trigger for me to write this snippet. May be you'll get context (what is this program trying to achieve) from there... |
Forum: Java May 8th, 2007 |
| Replies: 3 Views: 1,973 @Peter:
Thanks.
>> You didn't elaborated what you try to achive
From Intro "This is a small program that measures the performance of given java classes."
One can use it when they wanna... |
Forum: Java May 8th, 2007 |
| Replies: 2 Views: 994 Sorry dude, this is way beyond my knowledge of aspect. :). All the best.
I presume you've also posted in aspectJ's dedicated forums (http://www.nabble.com/AspectJ-f2216.html).. |
Forum: Java May 8th, 2007 |
| Replies: 10 Views: 2,748 >> Did you tested the functionality of AspectJ with Web Services ...?
Nope, this was my first aspect program. :)
Why don't you post your problem as a thread may be I/someone can help.. |
Forum: Java May 8th, 2007 |
| Replies: 10 Views: 2,748 I just put Narue's sorting (http://www.daniweb.com/code/snippet77.html) algorithms thru a performance test.
Here is what the output looks like when I put it in an excel sheet.
Have posted the code... |