2,443 Posted Topics

Member Avatar for multicoder

The class was loaded in another ClassLoader, seemingly, and now you are trying to load it using the context classloader. That doesn't work. The thread that is doing this will need to use the setContextClassLoader (see Thread) method, and the getClass().getClassLoader() method of the "loaded" class. Then this should work. …

Member Avatar for multicoder
0
1K
Member Avatar for joshmo
Member Avatar for rahulkashyap82

Normally, in this situation, you create a new password and send [i]that[/i] to the user (and, usually, you only allow that generated password to be used [i]once[/i] and force the user to set a new one upon using it).

Member Avatar for masijade
0
109
Member Avatar for peter_budo

gridheight and gridwidth are the number of columns/rows that this element should occupy in the "grid" defined by the GridBagLayout. It is not a pixel height. So, so by setting [code] gbc.gridheight = 60; gbc.gridy = 0; [/code] you are saying this element should run from gridy 0 to gridy …

Member Avatar for masijade
0
890
Member Avatar for PR!M3

Open the closet door. Are you "out" now? Did that help? IOW, we might be able to, if you had an [i]actual[/i] question.

Member Avatar for masijade
0
27
Member Avatar for joglekar

A JSP in itself is [i]definately[/i] not causing this. This has to do with the produced HTML, and the JSP, obviously, can only produce the HTML that you tell it to. This looks as though you have given the portion at the top of the page (probably a div tag …

Member Avatar for joglekar
0
281
Member Avatar for alsoumhi
Member Avatar for exzibit23

unjar it and then [url]http://www.daniweb.com/forums/post882526.html[/url]

Member Avatar for masijade
0
47
Member Avatar for mc080201812

Did you have a question? We are not here to do your homework/quizzes for you.

Member Avatar for javaAddict
0
85
Member Avatar for anshusharma
Member Avatar for peter_budo
0
99
Member Avatar for PhiberOptik
Member Avatar for masijade
0
108
Member Avatar for sciwizeh

You might also explain what you mean by "cannot do that". And explain [i]exactly[/i] what "vec.x" is, as that is not how you access something in a vector. But, of course, don't forget the actual code.

Member Avatar for sciwizeh
0
136
Member Avatar for brandongood

Well, it's kind of hard to help you when we can't see your code.

Member Avatar for brandongood
0
93
Member Avatar for puneetkay

The ability to use any character regardless of the current system character set. Be careful though. Unicode is translated as the first step in compilation, so you might wind up with some unforeseen complications. See [url]http://en.wikibooks.org/wiki/Programming:Java_Comments[/url]

Member Avatar for puneetkay
0
168
Member Avatar for robbiepoo

So where's the problem? (Not that I really looked at the code yet, but you said "here's the problem", but then, didn't say what the problem was.) Also, what is "global", as there is no "global" anything in Java.

Member Avatar for masijade
0
86
Member Avatar for larryperl

Because of the logfile in this post [url]http://www.daniweb.com/forums/thread194433.html[/url] maybe?

Member Avatar for KevinADC
0
61
Member Avatar for k2k

Simply write it as a String, and later use Long.parseLong or Long.valueOf to get the long value again. However, if it is only to write and read longs I don't see why you don't use RandomAcessFile (without wrapping it in a BufferedWriter, it's not meant to be wrapped in anything) …

Member Avatar for masijade
0
154
Member Avatar for titosd

Okay then, just to be stinker, what date pattern is this? 09/02/03 YY/MM/DD YY/DD/MM DD/MM/YY MM/DD/YY March 2, 2009? Feb 3, 2009? Feb 9, 2003? Sep 2, 2003? ;) But you're right, that will cut out a lot of them, just not all.

Member Avatar for masijade
0
99
Member Avatar for Xessa

By "close the window" I assume you mean a browser? If so, forget it. The process is running on the server and closing the browser will not affect the currently running server process. With some clever use of JavaScript and/or AJAX (which is also, for the most part, JavaScript) you …

Member Avatar for masijade
0
79
Member Avatar for lloydsbackyard
Member Avatar for alexdoc9999

First is "SETUPS" equal to the length of the arrays, or to the last index (which is one less than the length, of course), or some other number, like the index of the second to last element. If it is equal to the length, than every one of those returns …

Member Avatar for alexdoc9999
0
117
Member Avatar for skycrew

In short, you can't. JSP's and Servlets run on the server and the clients (if they are at all interested in safety/security won't give those resources free to the world). Produce a "print" page for the browser and let the client push "print".

Member Avatar for masijade
0
130
Member Avatar for kaluxx

The same way you're reading the doubles, but without the parsing, of course.

Member Avatar for masijade
0
103
Member Avatar for Logi.

P.S. Two full-fledged Frames in an application is [i]usually[/i] a mistake. Especially when one is opened as a result from the other. [i]Usually[/i] that "second" Frame should be a Dialog (i.e. extend JDialog rather than JFrame in the "second" Class).

Member Avatar for masijade
0
102
Member Avatar for exzibit23

[QUOTE=exzibit23;882484]hello, im a beginner programmer in java (J2ME), is there a way on how to unobfuscate a java? [/quote] Try to guess what the variables, classes, methods, and packages should be named? IOW, no, AFAIK. [quote] and how to obfuscate it?? (J2ME)[/QUOTE] With a third party tool. Google one.

Member Avatar for masijade
0
340
Member Avatar for squinx22

How big is that image? You need to increase your heap size. The -Xmx=### is the command line option. See [url]http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html[/url]

Member Avatar for articlemaster9
0
109
Member Avatar for Joncamp
Member Avatar for kvprajapati
0
4K
Member Avatar for blackrobe

grep will only match the lines (and return the [i]entire[/i] line, not just the matched portions of it), and will not alter them. If you wish to alter the lines you are going to need to use sed, or something similar.

Member Avatar for blackrobe
0
153
Member Avatar for dep.new

Maybe because your homework assignment is to [i]write[/i] one and not to [i]copy[/i]/[i]steal[/i] one.

Member Avatar for javaAddict
0
76
Member Avatar for teshi

PreparedStatement and setDate and setTimestamp [url]http://java.sun.com/docs/books/tutorial/jdbc/index.html[/url]

Member Avatar for masijade
0
31
Member Avatar for jamojo
Member Avatar for sgsawant

[QUOTE=adatapost;876255]Because of this statement [CODE] package helloworldapp; .. .. [/CODE] you have to change the your method of compilation and also execution. If package is mentioned then your .class must be placed under the package named folder. [/quote] No it doesn't. It is convention to do it that way, but …

Member Avatar for sgsawant
0
393
Member Avatar for lardshow

I assume you want to "put" the values here, but "get" the values in another method, right? Well, you're declaring the map in this method, so as soon as this method is finished the map goes out of scope (i.e. doesn't exist anymore). You need to either declare the map …

Member Avatar for lardshow
0
101
Member Avatar for lardshow

Student is a class, that method is meant to be called using an instance, and not a class, reference. So, either create an instance of Student and call the method using that, or declare the method static. Either way will work, since that method is not using any instance data, …

Member Avatar for lardshow
0
552
Member Avatar for dhm.shyara

Sorry, but how does doing someone (home)work for them help? Sure, they can blindly turn in this assignment, but what about tomorrow? When the lesson they are going to be taught is meant to build on what they learned today. Well, they didn't learn anything today, so tomorrow is [i]twice[/i] …

Member Avatar for masijade
0
97
Member Avatar for mrgregkid

Every public class must be in a file of the same name. You cannot declare two public classes in the same java file.

Member Avatar for peace_of_mind
0
85
Member Avatar for JamesKox

I thought you wanted to count the bytes, not write them out to something else (and, actually, you're trying to write it out to the [i]input[/i]stream you're currently reading, don't you see something wrong with that?). That should be where you look. Don't you think you should be incrementing a …

Member Avatar for kvprajapati
0
2K
Member Avatar for username7260

Do you want to match the String "wati", or do you want to match a String that contains a w or an a or a t or an i (which is what your pattern says now)? Or do you want to match a String that contains all of those characters …

Member Avatar for masijade
0
133
Member Avatar for airey1988

return the list. [code] public List<Customer2> whatever() { List<Customer2> list = new ArrayList<Customer2>(); .... return list; } [/code]

Member Avatar for giri.pankaj
0
81
Member Avatar for tomtetlaw
Member Avatar for v-n
Member Avatar for anandarju
Member Avatar for cool_aj

Anywhere you want to as long as it is not declared inside another method/constructor/block.

Member Avatar for verruckt24
0
95
Member Avatar for K?!

[code] yourFrame.setContentPane(yourPanel); yourFrame.repaint(); [/code] Or, read the API docs for CardLayout.

Member Avatar for BestJewSinceJC
0
134
Member Avatar for javedali

Where are you getting these methods from? Neither I, nor the API documentation, knows anything about them.

Member Avatar for BestJewSinceJC
0
219
Member Avatar for sarita_sree

[url]http://java.sun.com/javase/6/docs/technotes/guides/security/index.html[/url] Don't be "quick" be "complete", [i]especially[/i] with [i]anything[/i] that has to do with security.

Member Avatar for kvprajapati
0
68
Member Avatar for taruj83

Unless you want to do an applet, you need to learn AJAX (or something similar) first.

Member Avatar for BestJewSinceJC
0
111
Member Avatar for whex

You start with a text editor. Now, do you have an actual question? Or are you just looking for someone to do this for you?

Member Avatar for masijade
0
105
Member Avatar for panda_pow

On the line [code] pop = 4 * double pow(e, t); [/code] is the class name that the method "pow" belongs to double or Double, and isn't there a character missing between those two words (yes, there is a character missing)?

Member Avatar for panda_pow
0
111
Member Avatar for pyscho
Member Avatar for peter_budo
0
52

The End.