| |
| |
| |
|
Page: 1 2
Comments:
<0> Zaph0d^: thats not the issue <0> a variable may not be initialized. <0> when using "A a_1" then you didn't give a_1 a value to work with. iow; its not initialized. I don't see the problem here. <1> the problem is that a_2 doesn't appear to be ***igned, even though a_1 does become ***igned <0> Well, I'll give it a try. Perhaps I'm overlooking things here but... I dunno <0> doesn't like me turning of auto indents :P <1> but hm, if a_1 and a_2 are given null initializers, the code -does- work.. <1> I wondeer if this is a bug or some cornercase of the JVM I'm jut not familiar with, given that the code is quite wierd by my standards <0> wlfshmn: thats my idea exactly. <0> the 'weird' part. <1> but hm.. most likely it's a bug.. the VM simply doesn't pick up the variable when first declared that deep down <0> I doubt it. Can't recall from mind but the instructions are clear in using () to try and do certain things first prior to others. <0> its the &&.
<2> ? <0> both conditions need to be met. so if the first doesn't there isn't much need to evaluate the second as well since the outcome is already determined. solely from mind, I'd have to look it up to be positive, but thats why the variable might meet an uninitialiased condition. <0> IMO this is no bug. <0> IMVHO its a little sloppy programming since this makes the code very hard and obscure. I think thats also where the confusion is coming from, but heck. Thats just my 2 cents. <1> Lion-O: && shouldn't result in any optimization though.. <1> Lion-O: both parts have to execute to figure out the result of the evaluation (and both sides -do- execute, 've verified that) <1> Lion-O: You can only optimizae away a side if it's an OR operation and the first part returns true <0> wlfshmn: afaik that depends on the equation. If both conditions need to be true whats the use of evaluating the second if the first is false? <1> ah, thats true <1> but in this case it isn't false ;) <0> I wonder <0> Alas, like I said, just my 2 cents. I'm pretty convinced this isn't a bug :P <0> Not null? I also dispute that btw :P <1> err hang on.. <0> anyway, gotta run. back later. <1> no, the first part returns true <1> ah, yeah, either way, screw it ;) <0> women... Anyway, the issue is that when using && the second evaulation is conditional. I just looked it up in the tutorial. Hence; there is a chance that it doesn't run and as such results in an uninitialised variable. <2> yes ,but if it doesn't run, than the value of the condition is false and the doThing() won't get executed. <1> Lion-O: sure. but in this case it -does- run <0> You get the same response in other cases when a variable first gets its value inside an if statement. The result of the if condition doesn't matter because there is always a chance that the variable remains zero and Java doesn't like that. <0> Its all in the tutorial. <0> and now I really gotta run. <1> ok, bye <2> well, need to go as well. <2> (actually, needed some time ago, stayed in work because of some annoying bug (unrelated)) <3> Everything you ever wanted to know about being a programmer on Wall Street: http://www.wallstreetprogramming.com <4> paintComponenent(Graphics g) in a JPanel-extended cl*** can be used to draw several figures (ovals, rectangeles) using only one call... but how do i save the individual graphical objects color? when i call setForeground() i change the color of ALL the graphical objects.. <5> i think, setForeground affects the color of the objets painted after setting the color, not before <6> What Java-IDE is "most popular" on Debian? <7> anyone here know how to draw in java by using equations in stead of using points <7> ? <8> I'm trying to get able to compile my java-programs from within emacs (on windows) and I've downloaded the JDE what more do I need for it to work, there is constant references to speedbar which I can't find where to download... what does it do? Do I really need it? <0> fatbrain: vim most likely :) <0> tobbes: you need the jdk. if you got the jre then it won't be enough. <8> I have jdk <7> anyone know answer to my question? <0> tobbes: then it all depends on the program. if its using external cl***es then its likely to fail. <8> what does external cl***es mean? <0> tobbes: just that. java cl***es which aren't part of Java itself. <8> well <8> I tried the standard hello-world program <8> but it didn't find javac <8> in the shell <0> tobbes: thats not what you said. <7> how can i draw lines, circles and stuff on java with equations??? and not points <8> I want to know if speedbar is really needed to run JDE <0> tobbes: if it can't find javac then simply fix your Windows searchpath or provide the entire path to javac. Plain common Window knowledge. <0> tobbes: whats jde ? <8> something i obviously need to be able to call the java compiler from within emacs <0> tobbes: do you? I fail to see why. <0> all it takes is run javac and give it the right parameter. In your case the name (and possibly location) of the file you wish to compile. It looks to me as if your problems are more Emacs and Windows based than Java :P <9> Lion-O: JDE is the "Java IDE" from Emacs
<8> yes <8> probably <8> well, has anybody tried to get emacs to run with java under windows? <9> you don't 'need' JDE. JDE attempts to make Emacs a decent IDE, and does a reasonable job of it - if you like emacs <9> last time I tried it worked out of the box.... on a properly setup windows machine. <9> i.e. with java, ant, etc. etc. on the path. <8> talios do I need to set a path? <0> fatbrain: anyway, more serious, it seems that Eclipse (most parts of it anyway) is provided by the Debian software repositories. So I guess you could consider it "popular" but that isn't really the case. I think its more a licensing issue :) <9> tobbes: probably - emacs is probably just running javac and expecting it on the path. no idea. <0> fatbrain: I really don't see Debian package Netbeans, even though both Netbeans and Eclipse are the most popular IDE's currenyly available for Java (at least to my knowledge). <0> Hi pmitros <10> Heya, Lion-O <9> either that or you only have a JRE installed, and not JDK <8> I have both installed <10> Lion-O: Didn't know you hung out here or did Java. (It's my first visit) <8> I usually run blueJ <11> Lion-O : at least the most popular free ones <8> which works <8> but I find emacs quicker <8> and easier to use <8> (when properly set up <8> ) <1> pmitros: another lost soul finding it's way in here ;) <8> how do I set the path? <11> fatbrain : in any case if you want the newest version of either (including the jdk) don't go with the debian package but through their websites directly <0> pmitros: hehe :) I began somewhere last year and figured that this channel might be good fun. And it was :) So yeah, been visiting ever after and for the things I do Java really provides a big solution. <11> fatbrain : it is a trade off between having the newest version and the comfort of the install manager <1> gah.. somone at jetbrain is closing an awfull lot of bugs tonight.. <0> kmh: well.. I think we should agree to disagree as I consider both Netbeans and even the official JDK itself also free ;) its all licensing hell so it seems. <11> jetbrain ? <10> So I gotta question. For some unholy reason, I'm developing a web service. I need this to be very easy to deploy, so I don't want people to have to install Apache+Axis+my application. I'm wondering whether there's any reasonably mature SOAP standalone/embedded library that I can just link to my application. <1> kmh: the IDEA people <9> wlfshmn: are the fixing them as well or "marking as dupe" <11> Lion-O : well where do we disagree there exactly ? <1> pmitros: axis can run directly from tomcat can't it? <11> wlfshmn : no i mean what does the term means/stand for ? <0> kmh: that Debian is shipping the most popular free Java IDE's :) I'd put Netbeans into the same collection. <11> Lion-O : i didn't say anything about that <10> wlfshmn: I'm considering making a .jar and bundelling Tomcat with it, but it's a little bit more messy than E.g. gSOAP with C++, or perl-SOAP-lite, or similar. <6> kwh: I'll give netbeans a try, never liked it on win32... but havn't tried it for a few verions. <0> kmh: aah, then I misunderstood your comment. <10> bundling <6> kwh: thanks. <11> Lion-O : i told him not to use debian downloads but go directly to sun, netbeans or eclipse <1> pmitros: perhaps a custom bundle with jetty and a service wrapper? <9> pmitros: seen the new JDK6 (not yet release) webservices stuff? the JDK now has a web server built in - one line webservice initialisation :) <1> pmitros: ***uming axis support jetty <11> Lion-O : and earlier i just meant, those you named are the most popular free ones (not considering commercial ones like idea or jbuilder) <0> kmh: aaah, gotcha! <10> talios: I have not. Interesting. When is it scheduled to ship? <1> kmh: jetbrains? it's just their company name <11> Lion-O : so no disagreement with at all :) <10> wlfshmn: Jetty looks good. I'm googling to see if it does SOAP <11> wlfshmn : ahh so jetbrains produces idea ? <1> kmh: yupp <9> pmitros: december now - got put back 2 weeks <11> wlfshmn : ic - thanks <1> pmitros: I expect axis can be configured to run with it. It's a little harder to get running that tomcat, but it's vastly lighter.. <9> pmitros: http://www.javaworld.com/javaworld/jw-07-2006/jw-0703-mustang.html has a good short intro the new JDK6 webservice foo. Not played with it so not sure how good/bad/ugly it really is thou. <1> pmitros: I havn't used it myself though I'm afraid, but it's on my todo list for when I move to a phase where I will actually be dpeloying stuff ;) <10> talios: Thank you. I am reading it. <10> Just to give an epsilon more background: It's an application that talks to a piece of instrumentation hardware. It has a GUI, but the hardware also needs to be accessable remotely, through an existing web services API. <10> Because the web services is only part of the system, I think it is easier to embed the web server in the application, rather than embedding the application in a web server. It also needs easy deployment, since it'll be used by people with an engineering (rather than a software) background.
Return to
#java or Go to some related
logs:
#linux #slice #linux #c++ #linux boot insertion plotter AND root AND C++ #php social tron.com
8ball bot
|
|