736 Posted Topics
Re: There is already a Sticky Thread called Starting Java ([url]http://www.daniweb.com/software-development/java/threads/99132[/url]) in the Java forum. Please take sometime to at least look at some previous threads before posting your query. | |
Re: getSalesTotal() and getSalesCount() have been declared as double so they must return some value. Declare them void if you do not wish to return any value from these methods | |
Re: Nope by default the Java Plugin for Eclipse only includes Core Java, Servlets are not a part of that. A short cut to resolve that error would be, in case you have tomcat / some other java enabled server installed, just check in their "lib" folder if you find any … | |
Re: And How do you expect us to help, we do not know what is you are trying to do, what problem you have run into. You have just told us the name of an encryption algo ??? | |
Re: [QUOTE]I have done it both ways .... [/QUOTE] In that case you should try to understand what you are doing... currently you are erasing the values in the arguments you passed to your method waypoint() by the values already present in the member variables by default (in this case 0). … | |
Re: [QUOTE=rotten69;1661495]Hi everyone, I am doing a Java course at uni at the moment and it kinda doesn't make you become a real programmer with the confidence that a programmer should have. I really want to program in Java and any language(not python though because it is not a user-friendly programming … | |
Re: Give us more information on what libraries are you trying to use in that applet and what platform are you trying to run this on. I have a strong **feeling** you are not on windows or not using the Sun JRE (of course I could be wrong). | |
Re: Give a sample of what you want ?? We cant dream up things you know !!! I checked out the link, and the code seems to do what you want. | |
Re: A simple way use a [URL="http://java.sun.com/j2se/1.5.0/docs/api/"]Map[/URL] of type <String,Integer>, so the Key is the String and the value is the number of times it occurs. When you encounter a word, you can check for its occurrence by invoking in the containsKey() method on that map. If containsKey() returns false for … | |
Re: The sticky: [url]http://www.daniweb.com/web-development/jsp/threads/141776[/url] does it, check it out. | |
Hey guys, just noticed today that Clicking on *bbcode tags* link in the section below the forum title (in Software Development / Web Development forums)displays a blank page. > Our Software Development forum category encompasses topics related to application programming and software design. When posting programming code, encase it in … | |
Re: No information about what is wrong, no information on how you expect it to work, no problem description, no code tags, Well I guess someone will have to use a crystal ball to help you out here. | |
Re: Although this thread is solved, just a piece of info, if you are looking for GUI generators in Java, you could look at the following IDEs:- Eclipse: The Window Builder plugin for Eclipse is my favourite. Netbeans IDE has a good GUI generator. | |
Re: What is it that exactly 'not works' ? If its a compilation issue check your line 56, '$' should be ');' Other than that you have to tell us how you want the program to behave to point you to a solution. | |
Re: Well since I had a lot of time on my hands :P , I studied every line of code, the problem looks to be on line 109 you have reinitialized the variable 'jlbMovie', while on line 119 you are setting the bounds for the text field 'jtfMovie' which has never … | |
Re: [QUOTE]i am thinking of setting up an sms center which send sms' to subscribers[/QUOTE] Kind of a vague description, can you elaborate what are you actually looking for ? If you are talking about Short Message Service Centres (SMSC), these basically receive messages via the SMPP (Short Message Peer to … | |
Re: The problem with the so called duplicate parameter is cause you are reusing the identifier 'e', for every exception you are trying to catch even though you have already used up that identifier here:- [CODE=java]FileNotFoundException e[/CODE] Try using some other identifiers like 'ex' or 'ioe' etc, the Java rules for … | |
Re: Tomcat is a web server (at max an application server with the correct plug-ins), so you can run only web applications(JSPs, servlets, HTML pages) or enterprise apps ( EJBs, Web Services etc). AFAIK you cannot run exes in Tomcat. Now [URL="http://download.oracle.com/javase/tutorial/deployment/webstart/deploying.html"]JNLP[/URL] is a different situation, it involves deploying you Java … | |
Re: Honestly the two big names that come to my mind are :-[LIST=1] [*]Eclipse [*]Netbeans [/LIST] Personally I prefer Eclipse, but NetBeans is a pretty good IDE too. But I would not recommend either if you are just near the beginner level, but if you are feeling too tied down in … | |
Re: You can use the JAVA_OPTS environment variable. It is similar to enabling gc logging for a normal JVM just pass the same options in JAVA_OPTS and restart tomcat. example on Linux:- [code] export JAVA_OPTS=-verbose:gc -Xloggc:logfile [/code] the above should work, but remember the 'logfile' will be cleared at every JVM … | |
Re: Did you create a runnable jar ? or just a jar ? For a runnable jar you can give the runtime configuration, which will include the main class, something your manifest file seems to be missing. From the console try running your jar file as:- [code] java -jar jarfilename.jar <fully … | |
Re: Heres an old thread addressing a similar issue:- [url]http://www.daniweb.com/forums/thread21906.html[/url] | |
Re: Well those are the steps that happen when a class is loaded for the first time(and your class has to be loaded before any static methods on it can be executed in this case the main) in your JVM, [LIST] [*] First your static variables are initialised [*] Next your … | |
Re: From my first glance, I do not think package 'simple' and 'Simple' are the same in Java, remember identifiers are case sensitive in Java. Thats looks to be the reason behind the classes not able to access each others members. Not to mention your MyDialog class has default access due … | |
Re: Are you sure that the element from which you are extracting the values in the previous page has the same value for [icode]name[/icode] as the one you are using in the [icode]request.getParameter()[/icode] method call @Thirusha [icode]request.getParameter()[/icode] in a JSP page can be used for both GET(the one you mentioned) and … | |
Re: [QUOTE=rahini;747842]How to simulate protocols in Computer Networks[/QUOTE] Wow, just when we thought we had seen it all, we are shown new ways (thanks to some of our elite newbies) on "How to not post a question on a Forum !!!" Looking at this post I bet even Eric Raymond will … | |
Re: [QUOTE=jbennet;749580]FACEBOOK[/QUOTE] Agree on that Facebook for me too | |
Re: Why do you want us to explain your own code ? | |
Re: Use code tags in your original message, the way the post is displayed its too painful to read. | |
Re: Well just a guess, is your 'UserDataFile.txt' completely clean before you write your ArrayList to it ? Also try closing your ObjectOutputStream once you are done writing the ArrayList, but since you mention that the object writing code works correctly, that shouldn't be the problem. | |
Re: Implement a Priority Queue, the Jobs can be the elements in the Queue and the priority of your Job element could be determined by some property example 'jobLength', So that whenever you try to remove an element from the queue, the element with the least value of 'jobLength' would be … | |
Re: As usual your post is vague and I can't exactly figure out what you need !!! Let me guess what is the scenario here:- Your Cell Phone is connected via a USB / Serial Port to your PC and has been as a gateway in NowSMS and you wish to … | |
Re: [QUOTE]that how can we implement BFS algo. in Java.[/QUOTE] Translate the Algo into Java code and you will have its implementation. | |
Re: Sounds like an assignment question, can you tell us the answer from whatever research (reading books or the resources on the web) you did ? We will add to it or correct you even, if we see you have put in the effort to really find out. | |
Re: Observe carefully the chunk of code which tries to read the date :- [CODE=java] // Get date from user System.out.print("Please enter the date. "); date = keyboard.nextInt();[/CODE] Now the program here is expecting an integer value, However you are feeding it [B]11/11/2010 [/B] Now that doesn't look like an integer … | |
Re: [QUOTE]can anyone provide with java code for performing text similarity [/QUOTE] No, not even a hint until you show us what you tried. | |
Re: [QUOTE]When I pasted your code on eclipse, it said that if your using abstract, you cant use protected. Only public, final and abstract are permitted. [/QUOTE] Thats what happens when you rely too much on your IDE to tell you the errors. ;) @ O.P. Read up on your Access … | |
Re: Hopefully [URL="http://www.daniweb.com/forums/thread250763.html"]this[/URL] or [URL="http://forums.sun.com/thread.jspa?threadID=722827&start=0&tstart=0"]this[/URL] should help, but they store image as OLE, so I don't know how much it answers your question. | |
Re: What the hell do you mean by 'name' ? | |
Re: You need a GSM Modem, or an account with a Service provider who will give you an API, (HTTP link) or may be an SMPP account to connect to his server to send Smses | |
Re: The reason why you are getting the error on "totalInterestPaid" is cause you have declared it inside the while block, due to which it is not visible to any code outside that block and hence you are getting that error. Move the declaration of the variable to outside the "while" … | |
Re: Are you giving the code or asking for help ? | |
Re: With the first line of your HelloWorld.java file, you have specified the class to be a part of package 'world':- [code=java] package world; [/code] That is why the 'world' folder is identified as a valid package, but 'javaprograms' is not. If you would like it to be recognized as a … | |
Re: From the looks of the error, it seems that your 'dbquery' tag requires the attribute 'uri' to be specified. From the TLD it seems like you are using the tag file approach to create your own 'dbquery' custom tag. If so check your tag file, 'WEB-INF/dbquery' (I assume), for the … | |
Re: First thing Amrita is DO NOT CONNECT DIRECTLY TO A DATABASE FROM A JSP. It is a bad practice to do so. It looks like you are still just studying JSPs, so from the start itself learn how to correctly design you web applications by separating the processing logic and … | |
Re: [QUOTE]As you ask me what link,I understand that you do not know how to give a link for a cron.daily job[/QUOTE] You said :- [QUOTE]can we write links in cron.daily?I have read that u can write a link in cron.daily? [/QUOTE] So definitely he asked what link. And next you … | |
Re: [CODE]<% ---- --- ----- UrlGen urlg = new UrlGen(request.getQueryString(), "UTF-8"); String url = "Contacts.jsp"+"?"+urlg; %> <a href="<%=url%>"><img src="images/hide.gif" border=0 align="middle"> </a> <% -- -- %>[/CODE] If that is the exact reproduction of your JSP file, then you are bound to get errors and tons of them cause, "---" is not … | |
Re: The solution is do not do database connectivity from inside a JSP. Check [URL="http://www.daniweb.com/forums/thread141776.html"]this[/URL] thread to see how to go about this the right way. | |
Re: Since you decided to just post the code and describe nothing about the problem, I will just point to the lines which *could* be holding the issues:- Snippet1: Line 8 Snippet2: Line 6 Very helpful isn't it, so next time post a description of the problem you are facing. |
The End.