@# Quotes DB     useful, funny, interesting





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



Comments:

<0> i usually use notepad and command line to create and execute java programs.. i used netbeans 5.0 to create a simple interface. Does anyone know how to export it to be able to run in just command line? it creates a jar file that seems to compile in command line (java -jar "filename.java") but nothing happens afterwards
<1> pwherman: make sure you have all binaries and such in place.
<1> err, libraries.
<1> also note its not "filename.java" but "filename.jar"
<0> lion-o: yes filename.jar... upon compilation, it created a text file stating where to type the command.. I navigated through command line all the way to the folder and did it in there.. still didn't work..
<1> pwherman: whats the error?
<0> lion-0: no error.. it's just when i do the command to run it, the jpanel doesn't show up.. in netbeans it runs fine but not on command line
<2> The channel is still struggling.
<2> re talios
<3> 'lo mele
<2> re
<4> Where do you download Java from?
<5> sun website
<5> xyyzz: you love ubuntu?
<4> Yeah, I've been using it about a week
<4> It's great



<4> javaq_, does this look right: dk-1_5_0_06-nb-5_0-linux.bin
<6> Hi, I am using Java Studio Enterprise and I have the problem it eats almost all my resources each time I start a thread, and worse even when the process stops the thread seems to be running,
<6> is there a way to "kill" the running thread
<6> ( I have that problem even after ending my run method)
<7> salut tous le monde
<7> hello every body
<5> azertmzqef: gracias
<7> i have question about jcreator
<5> wot
<7> i must have licence of jcreator befor creat application with it
<7> ?
<5> no need
<5> you can use the freeware version of jc
<7> i mean for commerce
<7> for sell application made by jc
<7> there exists any java compilateur free ?
<5> jcreator
<7> ah ok
<7> thank you
<7> and i can use it for commerce?
<8> For J2SE 1.5 there's cl*** UUID - how can I create a guid/uuid with j2se 1.4?
<8> nm. found java.rmi.server.UID .
<9> morning
<3> 'lo
<10> hello
<10> all
<9> hi
<10> need help reg java
<10> can anyone help
<9> need ... what?
<10> well i need help i am a learning java and cant run a program
<10> sounds geeky i know
<1> geeky? or silly ;)
<10> whatever
<10> guys no ones here
<10> and i know its silly
<9> lam2683: read the java tutorial
<9> it walks you through everything
<9> even my 10-year-old managed, once he actually read it
<10> ;-) ok
<9> what problem are you having?
<10> well i am using text pad and when runnin a program its says
<10> exception in thread "main" java.lang
<10> no cl*** def found
<9> what command line are you using
<10> ??
<9> what command line are you using, to try to run the program
<10> well ther is a built in option in text pad i just press cntrl+2
<9> apparently it's wrong
<9> go back to the tutorial
<10> k
<9> step through it instead of trying to get tools to do the wrong thing for you
<10> ok
<11> hy, i need some help here...
<11> im trying to run a java project... but i'm getting this error.. (running at gentoo , /opt/sun-jdk-1.4.2.10/bin/java /opt/sun-jre-bin-1.5.0.06/bin/java )
<11> Exception in thread "main" java.lang.UnsupportedCl***VersionError: NewJFrame (Unsupported major.minor version 49.0)
<11> obviusly its a problem about cl*** swingx ... but, dunno how to fix it
<9> haha
<9> k0001: well, looks like you're running it with 1.4 when you SHOULD be running it with 1.5
<11> jottinger: downloading now jdk5 .... sry, i just followed the link gentoo offered me ... didn't pay attention to that
<9> reading the exception message is always wise :)



<11> jottinger: i'm new at this languaje... trying to learn :)
<11> thaks for your help
<9> you're welcome
<12> try {blah();} catch(Exception e){if e.getMessage().contains("foo") throw e; else doSomethingElse(); }
<12> is that a reasonable way to do stuff?
<13> erm, probably not really
<9> don't use exceptions to manage flow
<12> it's not really
<13> it also doesn't account for multilingual exception error messages
<13> just catch the more specific exception
<12> in this case it's to check whether OracleDriver is already loaded
<12> so that it doesn't get loaded again
<12> everything throws SQLExceptions, but I only want to load the driver if it's not found, and throw others up the chain
<12> there's probably a better way to do it
<9> um, if it's not found, wouldn't that throw another exception? :)
<12> jottinger: yeah, I let that be thrown up
<12> the code is closer to: try (conn=DriverManager.getConnection(url);} catch(SQLException e){if e.getMessage().contains("Driver not found...") {cl***.forName(...); conn=DriverManager.getConnections(...);} else {throw e}
<13> is there no more specific exception that indicates driver not found?
<9> why woudln't you just do the cl***.forName in the first place?
<12> no
<9> Why rely on the exception?
<12> it's all SQLException
<13> or some error code on SQLException you could use rather than parsing the human message?
<12> that might be wiser
<12> I'll look into that
<13> looks like .getErrorCode or .getSQLState would be better
<9> It's not hard to just use cl***.forName to register the driver... if it's already registered, it's pretty much a no-op
<13> or have a once per process called to "SetupSQL" that guarentees it will be loaded
<13> a static constructor or similar
<12> jottinger: it is?
<12> jottinger: so it costs nothing to just do it anyway?
<13> well, it won't cost much
<12> why do some books say "cl***.forname(...);" and some say "cl***.forname(...).newInstance();"?
<12> what's the difference?
<13> one gives you the Cl*** object
<13> one creates an instance of the actual underlying object
<12> yes, but why do one or the other?
<13> the Cl*** object is like a descriptor for the actual cl*** - but it can't "do" much
<13> depends on what you want to do
<12> register the Oracle driver
<12> both appear to work identically
<12> I just wondered what the difference was?
<12> I'd imagine that newInstance() carries a higher overhead if you're doing it often
<13> newInstance is a waste of time, if you just want to load the cl***
<13> it'll create an instance, then throw it away
<13> unless the act of constructing an instance has some significant to the driver
<12> not that I'm aware of
<12> it appears to work whether you use it or not
<13> then "cl***.forName(..).newInstance" is redundant overhead
<13> you're basically saying "Load this cl***, create and instance of it, and throw away"
<13> s/and/an
<12> makes sense
<12> ah
<12> https://lists.xcf.berkeley.edu/lists/advanced-java/2000-September/012601.html
<12> appears to say there's a bug with the MS VM that makes forName() fail unless you have newInstance()
<12> and quite a lot about what the spec has to say about it
<14> hello, anyone familiar with struts ?
<15> can anyone tell me whats wrong with these two pieces of code
<15> http://89.136.65.115:8080/temp/Server.java
<15> http://89.136.65.115:8080/temp/Client.java
<15> i get socket is closed exception
<15> client sends an image to the host , host analyzes the image and sends the results back as a String
<15> anyone ?
<11> nice pics in there
<16> is there a way to find a function's derivative ?
<8> Aware: yes, derive it
<16> automaticaly ?
<8> do it very very fast?
<8> comeon, what kind of function, what kind of representation...
<16> if its a polynomial one
<16> but a wich changes
<8> what kind of representation...
<16> what parabolic ?


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#linux
ghal gol hajt
tukye
#linux
alkacelser
domxml_new_doc ubuntu
theiutza
#chatzone
#mirc
javascript to tell which button was pressed



Home  |  disclaimer  |  contact  |  submit quotes