4,084 Posted Topics

Member Avatar for Mohamed_30

why would you run a jar within an ide? you should run your classes from your ide.

Member Avatar for JamesCherrill
0
235
Member Avatar for sathya88

you shouldn't have any java code in your jsp, not just jdbc connectivity code. this might be a good time to start reading up on servlets, the whole 'MVC' story and the possibilities it gives. since we don't know what it is you're trying to generate (you could always run …

Member Avatar for anand01
0
219
Member Avatar for shivers20

InsaneComputer: not only is this a bit a waste of effort (considering the original post is over 6 years old), it's also not the point of the forum to spoon-feed code. by copy pasting some code, they won't learn, it's better to help them understand what to do, so they …

Member Avatar for stultuske
0
3K
Member Avatar for mo1994

you mean in a Swing application? just load the appropriate image using the actionPerformed method(s)

Member Avatar for stultuske
0
115
Member Avatar for kiroyzki

shela: this thread is 4 years old. no point in reviving it. also: the code to run is in the original post. so what 'basic code' are you looking for? if you don't understand that code, or don't agree with how it was written, do what anyone else would do: …

Member Avatar for stultuske
0
639
Member Avatar for jackjuma12
Re: JSP

saying "it should do so and so" without mentioning what it is doing currently (does it run? does it return a (wrong) value? is an exception thrown? .... " is a bit pointless. we don't have your setup (config, db, ... ) so we can't just copy paste your code …

Member Avatar for stultuske
0
131
Member Avatar for Doogledude123
Member Avatar for Doogledude123
0
7K
Member Avatar for anisha.silva

a beginner? what do you mean, a beginner? just beginning with Java Swing, just beginning with Java itself? ... you can add a changelistener to your textfield. keep the possible values in a list, on each change of the textfield check whether it's empty, if not: build a new list …

Member Avatar for anisha.silva
0
420
Member Avatar for jayturner

what RoutingPacket class are you using? it looks like it hasn't got a setDestid method which takes a single int as a parameter.

Member Avatar for JamesCherrill
0
270
Member Avatar for JamesCherrill
Member Avatar for tricket_7

MyThread t = new MyThread(); t.start(); MyThread t2 = new MyThread(); t2.start(); could be a good start.

Member Avatar for tricket_7
0
729
Member Avatar for jalpesh_007

if it updates no matter what pass/user you provide, my guess: you did something wrong during the configuration.

Member Avatar for jalpesh_007
0
422
Member Avatar for Dani

I doubt forums like this one (technical, resources, ... ) will die out in favour of social media/networks. those fora that are just about "hey, let's catch up" ... well, I've noticed a huge decline in some I used to visit, ever since Facebook came into the field: real time …

Member Avatar for rjdoll77
0
252
Member Avatar for pekemp23
Member Avatar for stultuske
0
421
Member Avatar for murali2489
Member Avatar for Builder_1

google to the rescue: http://www.massimilianomarini.com/04/07/2011/how-solve-jvm-creation-failed-error-when-starting-netbeans

Member Avatar for Builder_1
0
229
Member Avatar for cfinhas

HappyGeek told you what to do: start a NEW THREAD in the CORRECT FORUM. provide detailed information, and turn off the CAPS-LOCK.

Member Avatar for stultuske
0
2K
Member Avatar for dany12

dany: J2EE became out of date in 2006, J6EE doesn't exist. after J2EE it became Java EE <version>. depending on what you call Java web frameworks ... there are tthe basics, jsp and servlets, then again, you can implement Spring MVC, Struts, and there's GWT. in GWT, you hardly use …

Member Avatar for stultuske
0
343
Member Avatar for Prakash.G

the jsp is the front-end, which should not be aware of the database. what exactly is the question?

Member Avatar for stultuske
0
220
Member Avatar for ZaneDarklace

can't say I ever heard of that book ... does this mean you're only available to help with issues from this particular book?

Member Avatar for stultuske
0
81
Member Avatar for sk8ergirl

it's a bit little code to be definitive. what you also can do, is add them both, just toggle between visible and invisible.

Member Avatar for stultuske
0
105
Member Avatar for CoilFyzx
Member Avatar for renagadejesus

no, we can't, since we don't know what (type of) variables you 'll need to use.

Member Avatar for JamesCherrill
0
315
Member Avatar for supra

[QUOTE=jwenting;1192765] Which of the two applies to you?[/QUOTE] could be both

Member Avatar for stultuske
1
421
Member Avatar for RLS0812

actually, they are updated for modern systems, and can, like tons of other older games, be bought for a small fee on [GOG.com](http://www.gog.com). I bought mine there a few weeks back (along with the original Carmageddon) and I can assure you, they work pretty well, but of course the graphics …

Member Avatar for jwenting
0
225
Member Avatar for Gandalfs_beard

JavaScript and Java are not related. perhaps [this link](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117) is more suited for your question.

Member Avatar for Troy III
0
248
Member Avatar for user25

so ... you don't know how to calculate the percentage? in your normalize method, maxScore is 100%. use that to find the percentage.

Member Avatar for stultuske
0
2K
Member Avatar for pekemp23

you understand that mentioning what the parts are you are struggling with would make it easier for us to help you, right?

Member Avatar for stultuske
0
251
Member Avatar for preyas.hanche

can you be a bit more clear on what it is you try to do, give for instance an example of 'input= ... , expected output = ... '

Member Avatar for stultuske
0
134
Member Avatar for praveenadevar

you do add an awfull lot of try-catch blocks, without checking whether a previous (required one) is completed without exception. you may want to re-think that. also: are you working on a local server? otherwise you might get a lot of exceptions, but you just don't see them. debugging might …

Member Avatar for wallet123
0
331
Member Avatar for stresstedout

you only wrote code to display one single image, what did you think would happen? Image img = Toolkit.getDefaultToolkit().createImage(image); img = img.getScaledInstance(100, 200, Image.SCALE_SMOOTH); ImageIcon icon = new ImageIcon(img); JLabel lPhoto = new JLabel(); lPhoto.setIcon(icon); you only get the last image, because you read them all, override each previous value, …

Member Avatar for JamesCherrill
0
217
Member Avatar for mundrusuresh

developing something and 'getting the code' is not the same thing. your question isn't very clear, can you specify? also, we don't just 'hand out' custom made code. we help you improve your own. so you'll have to show us exactly what it is you've done so far, and what …

Member Avatar for Builder_1
0
100
Member Avatar for 2384443

that is not related to Exception handling. it's also not really different. in the first statement, you initialize the BufferendReader the very moment you declare it. in the second, you declare the BufferedReader, but instantiate it later.

Member Avatar for milil
0
245
Member Avatar for Royal_1
Member Avatar for narlapavan

your fault is that you store a reference to the vector in the other vector. since you overwrite the values in that subvector, it changes in the result as well.

Member Avatar for scudzilla
0
284
Member Avatar for sk8ergirl

ehm .. ok. you do understand we have no idea what tabs you are talking about, right?

Member Avatar for sk8ergirl
0
272
Member Avatar for godzab

if you have to take into account other actions (+, -, :? *) and or brackets, split might not be the easiest way to go.

Member Avatar for Taywin
0
320
Member Avatar for ShawnM9913

decent specs ... specs for what? what will you use them for? gaming? video editing? use of office tools and writing mails? budget limits ... well, since we don't know what your budget is, we can't really take it into account. for you, budgetted might be 100, but it might …

Member Avatar for ShawnM9913
0
206
Member Avatar for stresstedout

if you already have the code that retrieves it 1 time ... run that code several times. or, replace your query statement = connection .prepareStatement("select image from image where id = 1"); with something like: statement = connection .prepareStatement("select * from image"); then later on, based on the id, you …

Member Avatar for stultuske
0
363
Member Avatar for stresstedout

so you have code that inserts one image into your db? how about calling that code repeatedly?

Member Avatar for stresstedout
0
222
Member Avatar for rgkrish183

apparently there is an error while instantiating that class. http://www.checkupdown.com/status/E500.html

Member Avatar for milil
0
164
Member Avatar for saharqdr

start with a index.jsp page, instead of a .html page. html is static, not dynamic. then, in the servlet of your action, choose, based on the conditions you pass, what url to go to.

Member Avatar for milil
0
296
Member Avatar for root404

if you are new to Java, don't just copy paste some code you've "found [a program] on the web" write your own. a sorting algorithm is pretty basic and very easy. go step by step. write a small piece of pseudo code and implement that. Start4Me: never just provide custom …

Member Avatar for JamesCherrill
-1
1K
Member Avatar for Stefce

try a ping before you do anything else. ping for one or more very reliable sources (www.google.com, www.facebook.com, www.microsoft.com, ... ) chances of those going offline are pretty slim. ping fails? (especially for all of them?) it's pretty sure you're not connected.

Member Avatar for JamesCherrill
0
292
Member Avatar for krnaveen14

why exactly would you want to 'shorten' that? there's not really anything in it. you would do wise as to add a few methods, for instance, overriding the equals method and maybe the toString method, of course depending on what you need to do with the class. I'm not sure …

Member Avatar for nebspace0x297
0
245
Member Avatar for Robert_12

even more important: since I assume DVDTitle and the return type of getDVDTitle() are both String instances, for (int i = 0; i < movieArray.length; i++) { if (searchDVDTitle == movieArray[i].getDVDTitle()) { is not the right way to compare them. do realize, that while == MIGHT return the correct result, …

Member Avatar for cgeier
0
990
Member Avatar for petermwaniki
Re: java

with what button? what code? how much do you know about Java already? how long have you been learning?

Member Avatar for stultuske
0
65
Member Avatar for Maurice_3

editing posts can in some cases also misunderstandings, comparable to the diamond of death person: let's say the OP asks a question that can be solved in two ways, say approach one and approach two. a first person replies, explaining the first approach. now, he posts his reply, and a …

Member Avatar for stultuske
0
226
Member Avatar for eldiablo1121

I don't get your code to work at all. why do you even need that while or if statement? there's no need for it. just replace it with `String phrase = input.nextLine();` actually, with this: public static final char[] alphabet = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', …

Member Avatar for Doogledude123
0
3K
Member Avatar for Doogledude123

not so sure. can you add a print statement of total after this line: `total += rand.nextInt(11)+1;` it's better to declare hit outside the while though.

Member Avatar for Doogledude123
0
410

The End.