@# Quotes DB     useful, funny, interesting





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



Comments:

<0> i meant in need to throw, u need to put a throws IOException, while its not neccesary got IllegalArgumentException?
<1> I don't understand.
<0> well, i have a main, with try catch
<0> in one the catch is IllegalArgumentException, but the function that throws it doesnt contain a throws in the signature
<0> in the other, if i dont put a throws IOExecption, i get an error
<1> Umm.
<1> Something you're calling in there must be throwing an IOException
<1> You may need to add it to the catch block you have around the code.



<0> hmmm
<1> I'm not sure without seeing a little more specifically what's going on. If you throw the code up on pastebin, I'll have a look at it.
<0> ok sure, the url in topic ?
<1> http://pastebin.com/ that's what I usually use.
<1> Just paste the code and let me know what the URL it gives back to you is.
<0> http://pastebin.com/713708
<0> in example 1, the throws is used in the signature, while in example 2, its not
<1> OK, so when you're trying to compile this, you're getting compiler errors?
<0> no, am just trying to understand why in one example u need the throws while in the other u dont need it
<1> OH
<1> Within that copy method there is something being called that could possibly throw an IOException
<0> public static void delete(String filename) and public static void copy(String a, String b) throws IOException
<1> If you don't surround that code with a try/catch block within copy, then you must declare that the method throws IOException since it's never going to be caught within the method body.
<0> ahhh
<1> And within delete, there is something that is being called in there that is causing an IllegalArgumentException rather than an IOException. That's why you have to declare that as being thrown from that method.
<0> ahh ok.....i think i get it....thanks :)
<1> No problem.
<0> lol
<0> what r u doing in here Tweetie
<0> stop inviting Tweetie
<2> hey
<2> I have a question, just wondering if someone may be able to help
<2> I would like to add a button on my site that checks and makes sure that the visitor has java enabled.
<2> and if they dont, Id like it it to direct them to the download site...
<2> is there such a thing out there? thanks
<3> download of java ?
<3> the applet tag will cause that automatically i think
<4> or http://www.java.com/en/download/installed.jsp



<2> thx
<2> i already found that, i was hoping there may be a button i could use on my site
<2> instead of a link somewher
<2> e*
<4> make a button and link it to that
<4> i'm sure Sun won't mind
<4> unless it's a pr0n site
<5> that's cheating.
<6> wrong channel, no?
<5> sorta :P
<5> smsie: ssht, maybe no one will notice.
<7> i installed, but my browser can[t open java apps that use JRE
<7> in linux
<8> SlayPain: browsers don't "open java apps". browsers can host java applets and tell java webstart to run webstarted applications.
<8> SlayPain: how to set up support for applets once you have the sun jre installed depends on your linux disttribution. try to find articles about it on the net.
<7> but i follow that the mozilla page tell me
<7> but, no solution
<8> i don't know what the "mozilla page" says to do.
<8> i ***ume there are many pages on the mozilla.org site, many of them outdated, or not considering the various specialities of linux distributions.
<8> consider windows. to get java support installed usually consists of installing the jre. much simple. no reading and researching, asking others for help, etc.
<8> simpler, that is
<7> ok
<5> SlayPain: best approach IMO is to get the official JRE from Sun, install it, and then use its netscape plugin in mozilla.
<5> so far that works like a charm for me.
<8> rob
<9> Clackwell
<7> i can't solve the problem
<10> Hiya guys
<7> the applets doesn't work in firefox
<10> does it work in IE?
<10> will you answer me?
<10> SlayPain: wakey wakey


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#mirc
#windows
tettingers
hi5
scott aki
g0thicangel
kndels
#php
hey you don't be silly put a condom on your willy
quintuplates



Home  |  disclaimer  |  contact  |  submit quotes