2,443 Posted Topics
Re: 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. … | |
Re: As you've been told on Sun, "classB" is null at that point. | |
Re: 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). | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: Of course. Study up on Servlets and JSPs. | |
Re: unjar it and then [url]http://www.daniweb.com/forums/post882526.html[/url] | |
Re: Did you have a question? We are not here to do your homework/quizzes for you. | |
Re: You can't. You would have to extract it and then execute it. | |
Re: 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. | |
Re: Well, it's kind of hard to help you when we can't see your code. | |
Re: 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] | |
Re: 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. | |
Re: Because of the logfile in this post [url]http://www.daniweb.com/forums/thread194433.html[/url] maybe? | |
Re: 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) … | |
Re: 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. | |
Re: 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 … | |
Re: Well, are you entering anything after that prompt? | |
Re: 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 … | |
Re: 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". | |
Re: The same way you're reading the doubles, but without the parsing, of course. | |
Re: 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). | |
Re: [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. | |
Re: 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] | |
Re: Why don't you Google "Java File Upload" and send a normal file upload requesst. | |
Re: 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. | |
Re: Maybe because your homework assignment is to [i]write[/i] one and not to [i]copy[/i]/[i]steal[/i] one. | |
Re: PreparedStatement and setDate and setTimestamp [url]http://java.sun.com/docs/books/tutorial/jdbc/index.html[/url] | |
| |
Re: [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 … | |
Re: 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 … | |
Re: 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, … | |
Re: 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] … | |
Re: Every public class must be in a file of the same name. You cannot declare two public classes in the same java file. | |
Re: 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 … | |
Re: 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 … | |
Re: return the list. [code] public List<Customer2> whatever() { List<Customer2> list = new ArrayList<Customer2>(); .... return list; } [/code] | |
| |
Re: [url=http://www.rentacoder.com/]Here.[/url] | |
Re: Anywhere you want to as long as it is not declared inside another method/constructor/block. | |
Re: [code] yourFrame.setContentPane(yourPanel); yourFrame.repaint(); [/code] Or, read the API docs for CardLayout. | |
Re: Where are you getting these methods from? Neither I, nor the API documentation, knows anything about them. | |
Re: [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. | |
Re: Unless you want to do an applet, you need to learn AJAX (or something similar) first. | |
Re: 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? | |
Re: 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)? | |
|
The End.