736 Posted Topics
Re: In the absence of the context we are talking about, I would simply suggest stop the situation which ultimately causes the IOException to be thrown. | |
Re: This **seems** like a production level project. Now considering using three different DBMSs', you will no doubt have to use three different drivers for each of the databases. First thing I suggest is is use a Type 4 Driver for each of the DBMSs (eg jtds for SQL Server, [URL="http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html"]this … | |
Re: [QUOTE=coolbuddy059;836168]I have to make a database in oracle and connect it with Java. But I'm not able to do so. Please help.[/QUOTE] I want to make a space ship and fly back to my home on Mars, please help me too. | |
Re: [QUOTE=jbennet;836546]Yeah i tried that but i didnt like the format, and didnt need all the info.[/QUOTE] From that **I assume** the output already contains whatever information you needed. Well honestly jbennet I didnt expect to be saying this to a Moderator but just a little R & D (a little … | |
Re: So .... where do you need our help ??? (Apart from giving you pointers on [URL="http://www.daniweb.com/forums/announcement9-3.html"]code tags usage[/URL]) | |
Re: It seems like you have some other "Statement" class included in your Servlet as opposed to the "java.sql.Statement". This is pretty easy to decipher as your compiler has clearly stated:- [code] java: 95 : cannot find symbol symbol : method close() location : class java.beans.Statement stmt.close(); [/code] Check your imports … | |
Re: Any specific reason why you want Java to do that ? However According to me it doesn't seem possible, as your browser is a completely different "process" just as there would be a separate "java process" in which your program would be executing. | |
Re: [QUOTE]I tried 3389 (RDP Port) that failed, and yet Remote Assistance works.[/QUOTE] Now that would mean the specified service is already using that port, so if a port is already in use, you application cannot use it for listening, have you tried turning remote assistance off. [QUOTE]8080 Also failed, and … | |
Re: [QUOTE]Define your own exception handler and use try/catch [/QUOTE] Most probably you mean define his own (custom) exception class, but this would be just an overkill. Ezzaral's suggestion of throwing an IllegalArgumentException for me hits the nail on the head. | |
Re: Your Brain Usage Profile: Auditory : 46% Visual : 53% Left : 47% Right : 52% Description: Ditto as A.D. | |
Re: Here are a few examples on alternatives how to read Input from a Console :- [URL="http://www.java2s.com/Code/Java/Development-Class/Readinputfromconsole.htm"]1[/URL],[URL="http://java.sun.com/docs/books/tutorial/essential/io/cl.html"]2[/URL],[URL="http://www.java-tips.org/java-se-tips/java.util/how-to-read-input-from-console.html"]3[/URL]. Considering your case you might especially like the third link. | |
Re: [QUOTE=cscgal;826506]I'm confused by what you mean.[/QUOTE] Well **I guess** he is requesting for some "sage" feature wherein if a thread is marked as a "Sage", any one posting in that thread (no matter how old it is) would not cause it to be bumped to top of the thread list. … | |
Re: [QUOTE=verruckt24;829967]No, We are not hiring now anyways. ;)[/QUOTE] Not to mention the hell of a first impression he has already made. | |
Re: [QUOTE]Yeah, free isnt free, there is total cost of ownership, which in some cases, isnt much less (or even more) with OSS.[/QUOTE] Now what does this imply ? | |
Re: I cannot see a main() method in the code that you have posted, also you have not made your [URL="[URL="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFrame.html"]JFrame[/URL] visible using the [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html#setVisible(boolean)"]setVisible(boolean)[/URL] method. | |
Re: [QUOTE]rather new to java[/QUOTE] [QUOTE]I am using the Netbeans JDE in creating a Java GUI.[/QUOTE] If you are new to Java then do not directly use GUI designers provided in NetBeans, you might get your initial form designing work done faster but when it comes to do some actual coding … | |
Re: [QUOTE] How to get the value from a hashtable irrespective of its case...[/QUOTE] Would you care to mention what does your Hashtable contain or do I have to find that out from my crystal ball. | |
Re: I do not know what the above code means, but I do remember encountering a trojan, a couple of years ago which put an iframe code like [code=html] <iframe src='http:.....'></iframe> [/code] in all my web pages (irrespective of whether they were PHP,ASP, JSP....). | |
Re: Strange even I had the Notion of HDDs being faster than SSDs but not only the Wiki even googling says otherwise. | |
Re: [QUOTE]Stop calling him Rashakil fool, maybe he will stop the 'war of words' too![/QUOTE] Naah !!! For a guy who plays tit for tat with Bad Reps his IQ is too low to understand that. | |
Re: And what are you working on right now, an Applet or a normal GUI Application, I may not be able to help you but the information at least helps others know what you actually are trying to achieve. | |
Re: Now referring to your import statements (Although jasimp has already given you the solution for finding the classes you made with "importing" them). You import the classes and not the .java files, (unlike including the header files in C or C++). A simple example is show below, here I am … | |
Re: [QUOTE]client machine to a server machine [/QUOTE] Ever heard of [URL="http://en.wikipedia.org/wiki/Internet_socket"]Sockets[/URL], and also you do not need to send 1's and 0's you can send entire objects by using serialization (Some resource on serialization -- [URL="http://java.sun.com/developer/technicalArticles/Programming/serialization/"]1[/URL],[URL="http://java.sys-con.com/node/43802"]2[/URL],[URL="http://oreilly.com/catalog/javarmi/chapter/ch10.html"]3[/URL],[URL="http://www.acm.org/crossroads/xrds4-2/serial.html"]4[/URL]). Here is a link to [URL="http://java.sun.com/docs/books/tutorial/networking/index.html"]The Java Tutorial on Networking.[/URL] | |
Re: The problem you see is here :- [code=java] name = infile.nextLine(); score = infile.nextDouble(); [/code] [icode]infile.nextLine()[/icode] would read the entire line of text in your file, So on your first iteration in the while, your "name" variable would contain "Smith 13 20 8 12 -1" and after that line the … | |
Re: Oh come on, you expect us to help you when you would not even spend a few moments reading the Community Rules. Please use code tags, its as easy as putting [noparse][code=jsp] and [/code][/noparse] around your code. It preserves any indentation (which you have hopefully done), syntax highlighting and most … | |
Re: The problem I think is being caused by :- [code=java] private static Connection con = null; [/code] Because of that only one instance of your Database connection is maintained. But I think that is what you intend to do. However let us take a look at the effects of this … | |
Re: [QUOTE] From there, a hosts file exists in system32\drivers\etc directory <for windows OS> where am to edit / put put any number of entries in it[/QUOTE] AFAIK that is nowhere concerned to hosting web sites on your machine. That file is in fact looked up by Windows for trying to … | |
Re: Unfortunately I do not see what your are trying to achieve here or what is your objective after even creating this file. Would you mind explaining to us your actual objective. What you have mentioned here appears to be a means to an end. If you tell us what that … | |
Re: [QUOTE]I need to select a file and highlight it without selection[/QUOTE] This has gotten me confused, is the second part not contradicting the first ??? | |
Re: [QUOTE=Igor Kirillov;824097]Help me, please. Where I can download z3950 server, I read him here [url]http://developer.k-int.com/projects.php?page=z3950s[/url]. Thanks[/QUOTE] **sigh**, Is it so difficult to read and understand what is happening on this thread ? | |
Re: First one piece of advice : Use Consistent indentation, Some places you have indented your code, at other places you have just forgotten or put extra tabs for no reason. Following is the lin for Java SE 6 docs:- [url]http://java.sun.com/javase/6/docs/api/[/url] Make it a point to look there if first your … | |
Re: [QUOTE=hell_tej;819754]My Friend use Swing Components to make a desktop application with JAVA. use NetBeans 6.0 to easiy create Database application and Desktop Application you can get referance of it from [url]www.netbeans.org[/url] site[/QUOTE] Agreed Swing should be used to make a GUI (Graphical User Interface) in Java, but if you are … | |
Re: [QUOTE] 1.what is javadoc and how it works? 2.what Strong typing means?[/QUOTE] My Answer :- [URL="http://www.google.co.in/search?q=javadoc"]STFW[/URL] [QUOTE] 3.if we want to control the input ,it is better to use exeption handeling (try chatch),or a single is to control the worng input, whitch one is faster? [/QUOTE] Exception Handling should be … | |
Re: Well it seems that your application will need to be Network Aware, so you will need to work with [URL="http://www.javaworld.com/jw-12-1996/jw-12-sockets.html"]Sockets[/URL] or [URL="http://java.sun.com/docs/books/tutorial/rmi/index.html"]RMI[/URL] . Then there are also advances concepts like [URL="http://java.sun.com/webservices/docs/2.0/tutorial/doc/"]Web Services[/URL] and [URL="http://java.sun.com/developer/onlineTraining/EJBIntro/EJBIntro.html"]EJB[/URL]s, but I believe they would be an overkill in your case. | |
Re: [URL="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html"]Here[/URL] is a tutorial on how to work with Arrays in Java and [URL="http://java.sun.com/docs/books/tutorial/essential/io/cl.html"]here[/URL] you will find a tutorial on how to take input from the Console. | |
Re: [code] java.lang.NullPointerException org.apache.jsp.jsp.validate_jsp._jspService(org.apache.jsp.jsp.validate_jsp:118) [/code] Quite clearly this is a problem inside your JSP code in the page "validate.jsp". You are most probably calling some method on an object reference initialized to "null" as below :- [code=java] String a = null; int b = a.length(); [/code] The above code snippet would … | |
Re: If you want to do it in Java you could look at the [URL="http://www.jmonkeyengine.com/"]JMonkey[/URL] engine mentioned in the [URL="http://www.daniweb.com/forums/thread99132.html"]Starting Java[/URL] sticky. | |
Re: @nandomendoza Better start using [URL="http://www.daniweb.com/forums/announcement9-3.html"]code[/URL] tags, with already 14 posts you should by now be aware what they are and how to use them, else the days not far before someone gives you bad rep for not using them at all. Its as simple as putting your code inside [noparse][code=java] … | |
Re: A [icode]java.lang.NullPointerException[/icode] is a pretty common problem, you need to show us your code if we are to help you in any way. Also in the StackTrace that you have pasted, highlight to us the lines which belong to your ".java" file. | |
Re: [URL="http://www.daniweb.com/forums/announcement9-2.html"]Here is some ready made code[/URL] for an MP3 playlist. | |
Re: I suppose [URL="http://java.sun.com/docs/books/jni/"]JNI (The Java Native Interface)[/URL] is what you are looking for. | |
Re: So answering to this thread would be just showcasing my Java skills as opposed to helping anyone ???? [B]or [/B] Is this a way of disguising your homework ?? [B]or[/B] Is this an assignment which you have copied from the NET and trying to get us to explain the code … | |
Re: [QUOTE=gabec94;813751]Coming from python, to split a string i would do 'string.split(" ")' and it would split 123 into 1 2 3 I don't know .length, or .charAT, or what that even is I do not know what I should use to traverse through the string and split it by each … ![]() | |
Re: I have not visited the link but you might be interested in the [URL="http://www.jmonkeyengine.com/"]JMonkey gaming engine[/URL] for designing/implementing your game. | |
Re: [URL="http://java.sun.com/developer/onlineTraining/EJBIntro/EJBIntro.html"]This tutoria[/URL]l should hopefully answer most of your questions. | |
Re: If you use frames, then the URL in the address bar would be only of the main page which accommodates all the frames. But getting the URL of the page inside the frame is not too difficult. Alternatively if you use the <jsp:forward> tag then I **suppose** the address bar … | |
![]() | Re: So there was already a thread for it, why did you need to create a new one ??? |
Re: The problem sillyboy is referring to kbullard516 is related to the following code snippet. [code=java] public static Circle[] cArray; [/code] You have never initialized the array "cArray", so memory will never be allocated to it, but you are still trying to put some values into that "cArray" in the Collection … |
The End.