736 Posted Topics

Member Avatar for lenyjose

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.

Member Avatar for adarshcu
0
135
Member Avatar for nick100555

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

Member Avatar for Syrne
0
331
Member Avatar for knight fyre

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 …

Member Avatar for varun.x.anand
0
624
Member Avatar for christot

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 ???

Member Avatar for christot
-1
222
Member Avatar for thebiff

[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). …

Member Avatar for thebiff
0
268
Member Avatar for rotten69

[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 …

Member Avatar for rotten69
0
190
Member Avatar for punitdam

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).

Member Avatar for punitdam
0
2K
Member Avatar for sivakumarl

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.

Member Avatar for peter_budo
-1
633
Member Avatar for bhavna13

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 …

Member Avatar for christeenajose
0
182
Member Avatar for anand01

The sticky: [url]http://www.daniweb.com/web-development/jsp/threads/141776[/url] does it, check it out.

Member Avatar for anand01
0
127
Member Avatar for stephen84s

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 …

Member Avatar for WaltP
0
233
Member Avatar for sakurayana

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.

Member Avatar for jwenting
0
145
Member Avatar for newack

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.

Member Avatar for cretaros
0
2K
Member Avatar for surfdude167

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.

Member Avatar for stephen84s
0
142
Member Avatar for TinyBelly

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 …

Member Avatar for stephen84s
0
149
Member Avatar for edensigauke

[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 …

Member Avatar for jwenting
0
163
Member Avatar for jasimp
Member Avatar for loveu

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 …

Member Avatar for sirlink99
0
804
Member Avatar for varia

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 …

Member Avatar for varia
0
188
Member Avatar for PhiberOptik

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 …

Member Avatar for mjason
0
214
Member Avatar for breakid

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 …

Member Avatar for stephen84s
0
143
Member Avatar for Neversleepin

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 …

Member Avatar for mKorbel
0
2K
Member Avatar for Vaspar

Heres an old thread addressing a similar issue:- [url]http://www.daniweb.com/forums/thread21906.html[/url]

Member Avatar for stephen84s
0
140
Member Avatar for anuj_sharma

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 …

Member Avatar for stephen84s
0
106
Member Avatar for wonder_laptop

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 …

Member Avatar for wonder_laptop
0
152
Member Avatar for loken

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 …

Member Avatar for cute_adi
0
4K
Member Avatar for rahini

[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 …

Member Avatar for mni
0
156
Member Avatar for snetts

[QUOTE=jbennet;749580]FACEBOOK[/QUOTE] Agree on that Facebook for me too

Member Avatar for jamshid
0
515
Member Avatar for dhanh90
Member Avatar for appooti

Use code tags in your original message, the way the post is displayed its too painful to read.

Member Avatar for apines
0
134
Member Avatar for LianaN

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.

Member Avatar for LianaN
1
6K
Member Avatar for faisal6621

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 …

Member Avatar for faisal6621
0
154
Member Avatar for mahaboob Basha

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 …

Member Avatar for sandeepsrikanth
0
357
Member Avatar for jalpesh_007

[QUOTE]that how can we implement BFS algo. in Java.[/QUOTE] Translate the Algo into Java code and you will have its implementation.

Member Avatar for JamesCherrill
-4
117
Member Avatar for vasunttfshimoga

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.

Member Avatar for stultuske
0
281
Member Avatar for lilsmurf

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 …

Member Avatar for NormR1
0
749
Member Avatar for celiz45

[QUOTE]can anyone provide with java code for performing text similarity [/QUOTE] No, not even a hint until you show us what you tried.

Member Avatar for stephen84s
0
96
Member Avatar for dem10

[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 …

Member Avatar for stephen84s
0
128
Member Avatar for Nidhi S.

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.

Member Avatar for Nidhi S.
0
87
Member Avatar for patilsunil47
Member Avatar for amoon108

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

Member Avatar for stephen84s
0
541
Member Avatar for ss_hat

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" …

Member Avatar for James cuck
0
226
Member Avatar for agent7
Member Avatar for prem2

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 …

Member Avatar for prem2
0
506
Member Avatar for rajasekhar1242

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 …

Member Avatar for rajasekhar1242
0
174
Member Avatar for nelly_1005

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 …

Member Avatar for ernikhil
0
473
Member Avatar for vineetanimu

[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 …

Member Avatar for masijade
0
585
Member Avatar for pmbfriends

[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 …

Member Avatar for pmbfriends
0
3K
Member Avatar for shella

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.

Member Avatar for sawedd
0
161
Member Avatar for ueoptimum

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.

Member Avatar for ueoptimum
0
792

The End.