| |
| |
| |
|
Page: 1 2
Comments:
<0> Hey all... <0> Quick question. Under SWT, how can I load an image that is inside of the application JAR file? <1> swt is bad for you <0> kmh: That's not a very useful response... <2> Hi, I got a question; when I type java myprogram (Swing is used here), the console appears, is there any way to hide it ? <0> W***|: Depends on the platform. In windows, use javaw instead of java command. <2> DSpair : and linux/Mac OSx ? <0> W***|: Use and & to run the program in the background. <2> thank you verry much <2> ;) <0> W***|: np. <3> hi <4> hello <4> :) <3> hi <4> calchas: are u good at java
<4> ? <3> depends how you define good <3> are you <4> heehee <4> lol <4> calchas: no bro <3> bro == ? <4> i am not good i am just learning... java.. :| and i find this thin really difficult <4> well sis..?** <3> I see, I am niether you brother nor your sister, and it may be best to not suggest that I am <5> that was kind of cold calchas ;) <6> does anyone have experience writing a server with java? <5> a long night ahead of him pacabel_ has <1> calchas : let's call you comrade then <7> hi <7> if B extends A , why is it necessary to put super(args) in the constructor of B instead of A()? <7> at least my compiler complains if i write A() <7> it says it cannot find the symbol <7> and the two cl***es A and B are in the same java file <8> super calls A's constructor <8> thus its in B not in A <8> where are you writing A() for it to complain? <8> paste your code in the topic link. <9> disproportio: cl*** B extends A{B(){}} gets some automatic code generation from the compiler. <9> It ends up looking like cl*** B extends A{B(){super();}} <9> super() can only work if A has a no-arg constructor, so if it doesn't you get errors. <9> subcl***ing-- <10> hello <10> oh so lonely and cold <11> ssht, don't disrupt the meditation <10> life! <10> ive been having trouble getting java applets to work (they work in Applet Viewer, just not in browsers) anyone have any ideas why? <10> java.lang.NoCl***DefFoundError : Hello (wrong name: applets1/Hello) <10> at java.lang.Cl***Loader.defineCl***1(Native Method) <10> ; Exception in thread "Thread-4" java.lang.NullPointerException <10> those kinds of exceptions show up on the java console <11> Looks like a wrong implementation, it obviously cannot find the cl***. <10> would i just need to change the location? <10> ive tried putting the html and java files in the same file, and ive tried putting the location of the file in the html code <11> Impossible to say based on just the error. <12> looks like that applet cl*** is in a package. <12> moin Lion-O, everyone <12> garfPlog: is the applet online already? if so, at what url? <11> an important line would also be the 'codebase' entry in your <applet> definition <11> Clackwell: yo! <11> well, codebase and code I suppose. <11> if codebase is defined and code sets up "applets1/Hello" then there better be a subdirectory applets1 ;) <10> Clackwell: it is just on my computer <12> garfPlog: then pastebin the .html file that you use and the output of "dir" of the folder where that html file is located in. <12> PASTEBIN Paste/upload your full error messages or test cases: http://papernapkin.org/pastebin/ http://pastebin.com/ http://rafb.net/paste/ <10> thanks <10> sorry im a bit new :) <12> no problem <12> garfPlog: have you pasted the html file and the dir listing yet? <10> just did it (i had to search for something first) <10> oh <10> i mean i just posted the error message <12> garfPlog: shout and post the url when you have pasted the html file and the dir listing. <10> ok html is up <12> there are many pastebin sites. i cannot tell which one you used. <12> post the url to your pastes.
<10> ? but the code is just on my computer-- no website up or do you mean something else <12> garfPlog: please go to one of the pastebin sites about. copy and paste your html file into one of them. copy and paste the url for that paste here. <10> oh <10> oops <12> then do the same with the directory listing of the folder that contains the html file. <10> http://papernapkin.org/pastebin/app/view/595 <10> http://papernapkin.org/pastebin/app/view/594 <9> Clackwell: We clearly need a pastebin search engine.; <12> :) <12> garfPlog: looking <10> did i send the right urls? <12> garfPlog: dude, what the heck is that at http://papernapkin.org/pastebin/app/view/595 ? <12> garfPlog: that looks like an RTF file. <10> hmmm <12> you are lucky it works at all. consider using a real text editor instead of wordpad or whatever else that you are using. <9> Wordpad is fine for editing text. <10> hahaha <9> Better than Notepad, in that it can handle non-Windows line-endings. <12> it's a bad choice in so far that it lets you use file formats unsuitable for the task at hand. <10> that line of code at the top is strange though -- i have a few other applets i tried, and they dont have that on the top <10> i have been trying to copy code from the internet and books to get applets to work <12> garfPlog: it seems that your applet is coded and compile to be in a package. yet in your html file and probably the directory you treat it as if it was not in a package. <12> garfPlog: maybe you are using a bad tutorial? <10> perhaps-- but ive tried like 5 tutorials, haha <12> garfPlog: http://javafaq.mine.nu/lookup?9 <9> Applets are old hat. Flash, Ajax or JWS are the way to go! <11> garfPlog: what did you try? Merely copying and paste code or did you also read up on the Java basics, like packages and the likes ? <9> garfPlog: Make a directory called applets1, and place Snowman.cl*** in it. <10> i dont remember reading about packages-- i read pretty basic tutorials <9> garfPlog: In the directory above that, make a HTML file containing roughly what you have there. <10> it is actually already in it <12> and adapt your html rtf file... <12> and make sure the html file is located in the parent folder of the applets1 folder... <9> And make it use code="applets1/Snowman" instead of code="Snowman". <9> Er, correct that.. <10> ok <9> And make it use code="applets1.Snowman" instead of code="Snowman". <9> The reason is that your cl*** is not called Snowman. <9> It's called applets1.Snowman. <11> crookery: actually... applets1/Snowman will also work. <9> Lion-O: I don't care. <9> I'm trying to forget about applets! <11> this isn't helping :P <9> garfPlog: Try not to just randomly copy text from tutorials without understanding it. Java isn't that kind of language. <12> garfPlog: BEGINNERSBIBLES Download these two bibles (free of charge): 1) Sun Java Tutorial (http://java.sun.com/docs/books/tutorial/) 2) Bruce Eckel's "Thinking in Java" (http://www.bruceeckel.com/) <10> yea i think i will read up on it more-- (changing the parent folder and code didnt work..) thanks anyway <9> It's not worth learning through applets. <10> do you mean the java language? <10> I took a cl*** on java before, I am just pissed that I cant get a simple applet to work :D <9> Applications are simpler than applets. <9> Can you get a simple application to work? <10> yep <9> If you can, then worry ye not. <13> i have a string ( a,b,c,d) ..how to put it in a array separated by , ? the flash help doesn't say a word 'bout that ...but i know it can be done (i'm asking here because the syntax should be the same as flash) <13> and ...re pplz :) <9> In Java, there is a split method in the String cl***. <13> even in flash ...but it's undocumented ... <13> at least the flash help <9> Yet you proceed to use Flash? Interesting. <13> :)) <13> how's the syntax in java ? <14> Anyone know anything about domain forwarding and web application context paths? <13> ok <13> gotit <13> split(',') :) <13> thanks <13> ;) <13> byez <15> morning <16> http://www-03.ibm.com/servers/eserver/zseries/software/java/java_press.html <1> what z/OS ? <1> same mainframe crap ? <1> ah right <16> yeap it's good bait
Return to
#java or Go to some related
logs:
#linux badpadding wrong secretkey hklm\system\controlset001\services\
#windows #mysql #teens dejo76
#php cosmick wars #skype
|
|