@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> hi
<0> str_var.concat(str_long.substring(int_st,int_en)) wont concatenate, why?
<1> ooooooooo: that makes little sense, no nonsense in here please.
<1> this is Java, not Javascript or whatever other language you're using.
<0> thats java...
<1> ooooooooo: With such little context it can be anything.
<0> str_long.substring(int_st,int_en) works, but i want to concatenate
<0> why cant i concatenate strings, even using String.concat(String); ?
<1> I already told you that you're not giving us enough context to answer that.
<1> Anyway; consult the API documentation to make sure you're using the methods correctly.
<1> write a test case, break down the problem into smaller parts, etc, etc.
<0> ive been reading the whole string doc @ java.sun site
<1> And ofcourse if also helps to be a /little/ more specific than "it doesn't work". Consider pasting the whole error and parts of the complete sourcecode on a pastebin.
<0> great idea
<0> http://rafb.net/p/gywBxh21.html
<1> ....



<1> never mind.
<0> im specific, it is all well declared and the whole app works but the concat
<1> no error message, no context, no nothing.
<0> there is no error msg it just print the var without any concat
<1> looks like you're even directly calling a non-static method.
<1> oh well; perhaps someone else is in the mood.
<0> or knows the answer or has any idea
<0> any help would be appreciatte
<1> so basicly I think this is a whole bunch of balony
<0> so no idea of what is going wrong in here
<1> ooooooooo: your problem is that you have no idea what you're doing.
<1> not only will that code produce a lot of errors it also makes no sense what so ever.. So; as I asked before; cut it out with the nonsense.
<0> maybe, but u are not helping me to understand why it wont concat
<1> ooooooooo: it does but you're not doing anything with the output.
<0> ok, code superstar Lion-O
<1> RTFM. Check what the concat method returns.. it returns a string. And you're not doing anything with that.
<1> ooooooooo: and you can leave that attitude outside the channel.
<0> thank u Lion-O
<1> cl***ic example of not understanding one bit of Java basics. Probably ***umed that concat "magicly" changed the string or something.
<1> Hi Talden
<2> And, as is traditional for most new visitors here, is completely unwilling to commit any time to reading 'the basics'
<2> Hi there Lion-O
<1> Talden: sometimes I wonder if that approach actually pays off. I should try it sometimes ;)
<1> "Hey, I have this EJB which is missing one final method, anyone know what I write and put in it? ;-)"
<2> heh
<1> Now I'll just sit back, relax, and watch my code complete itself :) Anyway, enough nonsense from me too :)
<3> question for anyone: why a JPanel in a JFrame doesnt display its contents if pack is not called ?
<4> oack ?
<4> it should, unless the size of it is very small
<4> remember setVisible()
<3> yes am doing so
<4> testcase then.
<3> but my problem is that it shows with pack
<3> yes i did and it worked fine :/
<3> but
<3> with borderlayout set to senter
<3> center*
<3> it is showing on the side without resizing to the jframe
<3> http://baxxilu.no-ip.org/myweb/hmmm.jpg
<3> look
<5> FA|R_MUT3X: What is a test case? Why would you write one? See http://javafaq.mine.nu/lookup?22 (to show what you are *really* doing) Paste test case and any error messages to http://papernapkin.org/pastebin or another pastebin
<5> good night.
<3> can anyone tell me why thios doesnt work
<3> GregorianCalendar startDate = new GregorianCalendar(2007,21,9);
<3> Date displayDate = startDate.getGregorianChange();
<3> System.out.println(displayDate.toString());
<3> nothing i found it
<6> well look at that.. trinidad is starting to edge itself out of incubation
<6> meh.. someone needs to release a sanely packaged bz2InputStream..
<1> wlfshmn: yeah, that'd be cool.
<6> there is an apache commons sandbox project withsuch a cl*** in it, and there are cl***es in the ant runtime for it. I think the two share a codebase, but I really don't want to maintain the code myself, and including the whole ant runtime into a webapp.. nah..
<1> wlfshmn: well, in worst case scenarios there is a zip stream I suppose.
<6> Lion-O: I'm using the gz ones at the moment, it works fine
<1> wlfshmn: cool
<6> while my data volumes aren't huge, bzip2 cuts them another 40% compared to gzip though
<6> (fairly repetetive xml data)
<7> Question: I am trying to either create a file in a specific directory or move it into that directory after i create it. Unfortunately when I create a new FileWriter in java I can only create a file that is in the current working directory and not to an absolute path or to a relative path with the use of '..' in it. How can I move a file in java to the path i want?
<8> ?
<8> how do you create absolute position?



<8> it should work if you write it properly
<7> PrintWriter ps = new PrintWriter(new FileWriter("C:\\progra~1\\envelo~1\\xml\\BWRequest.xml"));
<7> or using the full path names instead of the old FAT ~1 crap
<7> is that wrong?
<8> no this should be right
<7> :-/
<9> icenyne-froz - what do you mean not working? what error are you getting?
<10> Hi
<10> I'm trying to use JNI for public native void inDll();
<11> hi
<10> but.. Exception in thread "main" java.lang.UnsatisfiedLinkError: JavaAccess.inDll()V
<10> the library loads successfully
<9> that means that your dll does not have the inDll method
<9> or the method signiture is different
<10> http://pastebin.com/860548
<10> that's all my sources
<10> one-liners
<10> the error must be really simple and stupid
<10> changed cpp to JNIEXPORT void JNICALL Java_Dll_inDll(JNIEnv *env, jobject obj) { printf("OK\n"); }
<10> still no luck
<9> [algo]] - copy it from the header method, they must be identical for it to work
<10> yeah that's what I just did
<10> but error is still same
<9> for instance, in your header it says jcl***, and in your cpp it says jobject
<10> ok
<10> http://pastebin.com/860550
<10> fixed variant, but same error
<9> add #include to the dll.h file
<9> and use some viewer to see what functions your dll exports
<10> ok viewing through biew now
<10> #include <dll.h>
<10> WOW
<10> it worked!!
<9> :)
<9> the include?
<10> yes!!!
<10> spend half-day for it
<9> anyway, its time to go home :)
<10> thanks
<10> MbGone
<10> a bunch
<7> Question: How can I remove a file from my harddrive using java?
<12> Runtime
<7> java.io.IOException: Too many open files
<7> Question: I am pretty sure I am close() ing and flush() ing everything that I use... how do I keep this from happening
<7> is there anyway I can make sure that everything is closed and such before moviing on?
<13> What's your code , icenyne-froz ?
<14> i cannot see a web application because i get error: HTTP Status 404 - /cl***ifieds_jsp/
<14> description The requested resource (/cl***ifieds_jsp/) is not available.
<15> Sure it's not saved as /cl***ifieds.jsp
<14> yes i'm sure the directory is cl***ifieds_jsp
<14> dave-e: i configured a context in server.xml, i should see the directory, right?
<15> ***uming that's where you set them up and it's actually being read... I guess.
<15> Checked the error log of whatever app you're using?
<14> i use tomcat
<14> there is nothing in the log but the server is running ok
<15> I'd have a look through the first few links on http://www.google.co.uk/search?num=100&hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial&hs=0PY&q=tomcat+404+requested+resource+is+not+available&btnG=Search&meta=
<15> See if their problems match yours...
<15> I've never used tomcat so I've no idea myself.
<14> ok. i will
<15> One suggestion, not to fix it but just a thought... don't name your context/directory with 'jsp' in it... I mean, the user really doesn't need to know what you're running on the backend and it makes linking too it unnecesarily long.
<15> mysite.com/cl***ifieds looks a lot nicer and is easier to type than mysite.com/cl***ifieds_jsp
<15> :P
<14> ok
<14> you're right
<14> it does
<9> evening all
<8> hello
<9> hi wolfey_, how goes it?
<8> oh ok
<8> being lazy
<8> tomorrow i have Databases 1 exam :)
<8> funny thing since i deal with sql for long long time
<8> :)


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

#php
travesti aye
3ahra
#linux
fatmom fuck
#linux
#linuxhelp
frubo italy watch
#php
#london



Home  |  disclaimer  |  contact  |  submit quotes