| |
| |
| |
|
Page: 1 2
Comments:
<0> puftiiiii <0> anyone senn star wars <0> episode 3 <0> this is the nerds club right <1> mux aw <1> lol <2> hi, how would I create a string of length of 2 bytes for example? <3> SuseLin: www.thejavatutorial.com <3> defining a string isn't the same as an array <2> I know that, but is there a way to declare a string of a specific size? <3> SuseLin: check the API docs for the String cl***, pay attention to the constructors, and you'll soon find out. <2> the string can be empty, I just want to send it as a packet <2> oh, so I should use the constructor String(byte[] bytes) <2> the API says that String(byte[] bytes) needs an array of bytes to specify string size? why an array, why not just a constant? <3> try another constructor ? <2> which other one?
<2> all of them use an array of bytes <3> bull**** <3> cut out the nonsense <2> ? <3> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html <2> you mean this way, byte[] buffer = new byte[100]; and then String string = new String(buffer); ? <2> to create a string of 100 bytes <3> not really. <2> ? <3> why focus on 100 bytes? thats nonsense. <3> String mystring; <3> <use mystring> <2> byte[] buffer = mystring.getBytes(); <3> whatever rocks your boat. Now kindly take the nonsense elsewhere. <2> is that what you mean, that I can get string size from any string? <3> SuseLin: check the API docs. String.length() is a nice method for this, but we both know you'll never check the API docs. <2> I am not sure what you are trying to say, I can just p*** string = new String(mystring)? <2> I checked the API <3> perhaps a little too harsh, the other ops will have to comment if they even care enough, but I don't take this serious. <4> hm. i try to move on, unless someone is rude or something. can't help the thickheaded. not even with kicks. <4> good night. <3> Clackwell: will keep it in mind. Guess my mood is also a bit under the border. Sleep well! <5> I contentPane.remove(blah) and then contentPane.add(blah), but it doesn't show up again <6> pack()? <5> nah <5> ah. o well. I'll figure it out myself faster than I find the answer online. <7> Schiff use .validate() <7> I had this problem, and I also had to call repaint() after replacing a component <5> on which? contentPane or blah? I checked the javadoc for validate and it just says "validates a component" <5> :/ <7> on contentpane <5> ok. thanks <5> hmm. still didn't redraw right <5> got it <5> awesome. thanks. <8> morning <9> anyone here? <8> no <9> http://pastebin.ca/321304 - can anyone help me out with this real quick? <9> Line 42 is giving me trouble... I just want to store that to an int variable.. <8> what kind of trouble exactly? <9> well it's saying that it is giving me an object data type when I need an int data type - <9> why would the get() function return an object? <9> I'm trying to look through the API for a solution but am turning up with nothing so far =x <8> buchannon - you need to cast it to an Integer <8> int i = (Integer)hitsOnTheNumber.get(randomNumber); <9> hm... shouldn't it be an integer already? I guess I don't understand why it isn't... Did I initialize the array wrong? <9> thanks MbGone, I'll try that <10> MbGone know about tomcat? <8> buchannon - its not that you initialized it wrong, its a general implementation , you can use generics to specify list of integer, and also, why are you using LinkedList ? and not ArrayList , or array ? <8> jak20000 - abit, ask your question <10> tomcat usualy by default listen on port 8081, where change the prot to listen to 8081? <10> err <10> listen by default in port 8080 i want listen on 8081 <9> MbGone: I guess I'm using LinkedList because I don't know what else to use. I know that I need a varrying size array so just a normal array wouldn't work... <8> so use ArrayList or Vector (although from the looks of it, you always use the same size TOTAL_NUMBERS) <9> why is an arraylist better than a linked list? <8> jak20000 - edit the conf/server.xml file <11> An arraylist better than a linked list i thnk its not <11> accesing can be faster in first one case only <11> but the internal implementation( doubly linked list) of LinkedList is far better
<8> jak20000 - its not better, its better for your needs now, as you are using direct access <10> MbGone <10> i try: <10> http://localhost:8080 and ask me a user / p***word wich is it? or how modify or add one? <12> i thnk some other service runnin on 8080, might be some oracle service. try to run ur webserver by changin its port to some other <10> yes <10> i have installed oracle <12> ya then stop ur oracle http server <13> I know how to change the oracle port <12> its ackin on 8080 <10> InBravo how restart, tomcat? <12> i thnk dn stop this better change ur webserver port <10> i kill the app that use port 8080 <12> k no hit 8080 <12> no* <13> exec dbms_xdb.sethttpport(9090); <10> how restart tomcat? <12> u on unix box.. jak20000..? <10> not <10> windows box.. <12> ur TC version..? <10> 5.5 <13> go to your services <12> k then it must be a GUI interface to run it..? <3> cuvopsy: keep it in the channel please. <10> jerre, how change the port? <10> i am on services.msc <13> exec dbms_xdb.sethttpport(9090); <12> or u can shutdown it frm bin directory <10> Jerre, exec in windows? <13> no in the sql command prompt <10> ok <10> ok... <10> now i start the apache tomcat... <10> (are running), and try: http://localhost:8080 but not lucky <11> better to change r port of tomcat <10> server.xml has a line: <Server port="8005" shutdown="SHUTDOWN"> <10> try too: http://localhost:8005 and not lucky <11> man <11> change Http port <11> hang on <11> change here <11> <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8000" redirectPort="8443"/> <11> change the port="8000" attribute <10> ok i change to 8081 <11> fine <11> now restart <10> <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> <10> <Connector <10> port="8081" maxHttpHeaderSize="8192" <10> maxThreads="150" minSpareThreads="25" maxSpareThreads="75" <10> enableLookups="false" redirectPort="8443" acceptCount="100" <10> connectionTimeout="20000" disableUploadTimeout="true" /> <10> <!-- Note : To disable connection timeouts, set connectionTimeout value <10> to 0 --> <10> ouch <10> InBravo its ok? <11> oh i thnk its will not work coz https acks defaulty on 8081 <11> try port 9000 <10> http://rafb.net/p/Iv6YMh89.html <-- see the line 78 have th port 9000 and try: http://localhost:9000 <10> not lucky... the lines is comented? <11> mmm <11> hang on <12> listen jak20000 there should be atleast one connector in web.xml <12> tht is uncommented i thnk it shld work <12> not tell me the problem <12> direct ur browser to 900 <12> 9000* <10> same as: http://localhost:9000 ? <12> ya <12> u restarted ur server..? <10> apache server? or Apache tomcat service? <10> here web.xml : http://rafb.net/p/jAF4ek79.html <12> tomcat service
Return to
#java or Go to some related
logs:
#java /php/php-cgi.exe/index.php is it posible to see idle time in msn #linux #linux What desert spreads from Botswana into South West Africa ? uruni 1
#c++ jet java_home ubuntu #linuxhelp
|
|