736 Posted Topics

Member Avatar for curtissumpter

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.

Member Avatar for stephen84s
0
48
Member Avatar for Thirusha

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 …

Member Avatar for stephen84s
0
88
Member Avatar for coolbuddy059

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

Member Avatar for stephen84s
0
159
Member Avatar for jbennet

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

Member Avatar for stephen84s
0
368
Member Avatar for younaskhanpk

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

Member Avatar for younaskhanpk
0
100
Member Avatar for lordelf2004

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 …

Member Avatar for stephen84s
0
277
Member Avatar for add4

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.

Member Avatar for Ezzaral
0
92
Member Avatar for PhiberOptik

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

Member Avatar for PhiberOptik
0
94
Member Avatar for stewie griffin

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

Member Avatar for Ezzaral
0
171
Member Avatar for The Dude

Your Brain Usage Profile: Auditory : 46% Visual : 53% Left : 47% Right : 52% Description: Ditto as A.D.

Member Avatar for chriswellings
0
275
Member Avatar for shahab.burki

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.

Member Avatar for ejosiah
0
116
Member Avatar for MosaicFuneral

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

Member Avatar for verruckt24
1
216
Member Avatar for freaky.pandit

[QUOTE=verruckt24;829967]No, We are not hiring now anyways. ;)[/QUOTE] Not to mention the hell of a first impression he has already made.

Member Avatar for verruckt24
-1
129
Member Avatar for fif3l

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

Member Avatar for xkey
0
140
Member Avatar for Madbuda
Member Avatar for jackiejoe

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.

Member Avatar for BestJewSinceJC
0
295
Member Avatar for luke42

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

Member Avatar for jasimp
0
204
Member Avatar for SSagar

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

Member Avatar for masijade
0
99
Member Avatar for khr2003

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

Member Avatar for cwarn23
0
1K
Member Avatar for Intrade

Strange even I had the Notion of HDDs being faster than SSDs but not only the Wiki even googling says otherwise.

Member Avatar for stephen84s
0
70
Member Avatar for serkan sendur

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

Member Avatar for Ancient Dragon
1
668
Member Avatar for Nrod520

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.

Member Avatar for verruckt24
0
115
Member Avatar for Grn Xtrm

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 …

Member Avatar for Grn Xtrm
0
914
Member Avatar for get2tk

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

Member Avatar for verruckt24
0
184
Member Avatar for EJD

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 …

Member Avatar for verruckt24
0
581
Member Avatar for Mumma Singh

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 …

Member Avatar for Mumma Singh
0
299
Member Avatar for abhi_elementx

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 …

Member Avatar for stephen84s
0
118
Member Avatar for josemakara

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

Member Avatar for stephen84s
0
114
Member Avatar for gcr007

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 …

Member Avatar for masijade
0
133
Member Avatar for SSagar

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

Member Avatar for SSagar
0
85
Member Avatar for davi

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

Member Avatar for stephen84s
1
358
Member Avatar for Valkerion

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 …

Member Avatar for blog_user
0
1K
Member Avatar for weblover

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

Member Avatar for weblover
0
151
Member Avatar for xlx16

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

Member Avatar for stephen84s
0
143
Member Avatar for kiel19

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.

Member Avatar for c0dex
0
119
Member Avatar for AntMastr

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

Member Avatar for stephen84s
0
83
Member Avatar for njabs

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

Member Avatar for stephen84s
0
135
Member Avatar for deep2sky

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.

Member Avatar for stephen84s
0
75
Member Avatar for ProgrammersTalk
Member Avatar for nandomendoza

@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] …

Member Avatar for stephen84s
0
117
Member Avatar for r5quad

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.

Member Avatar for stephen84s
0
103
Member Avatar for mary10

[URL="http://www.daniweb.com/forums/announcement9-2.html"]Here is some ready made code[/URL] for an MP3 playlist.

Member Avatar for nymph
0
205
Member Avatar for joshmo

I suppose [URL="http://java.sun.com/docs/books/jni/"]JNI (The Java Native Interface)[/URL] is what you are looking for.

Member Avatar for stephen84s
0
102
Member Avatar for IMtheBESTatJAVA

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 …

Member Avatar for verruckt24
0
167
Member Avatar for gabec94

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

Member Avatar for Taniotoshi
0
564
Member Avatar for Ratte

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.

Member Avatar for stephen84s
0
135
Member Avatar for ppp83

[URL="http://java.sun.com/developer/onlineTraining/EJBIntro/EJBIntro.html"]This tutoria[/URL]l should hopefully answer most of your questions.

Member Avatar for stephen84s
0
68
Member Avatar for nishantdaniweb

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 …

Member Avatar for stephen84s
0
2K
Member Avatar for starsinthesky

So there was already a thread for it, why did you need to create a new one ???

Member Avatar for The Dude
0
25
Member Avatar for kbullard516

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 …

Member Avatar for kbullard516
0
180

The End.