| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> There ya go <1> thanks :-) <2> Question: Just installed Eclipse 3.2 and for some reason the Cl*** java.util.Enumeration cannot be resolved. I have the latest runtime and when i look at the runtime jar java.util.Enumeration is certainly in there. What could be wrong? <2> nevermind, got it <2> Question: <2> BUILD FAILED <2> C:\bw-src\src\build.xml:82: Unable to find a javac compiler; <2> com.sun.tools.javac.Main is not on the cl***path. <2> Perhaps JAVA_HOME does not point to the JDK <2> I set JAVA_HOME as an environment var pointing to c:\jsdkdir\bin <2> but it didnt work <2> where should i be setting this JAVA_HOME? <3> there is a file called tools.jar <3> in 1.6 that is <3> you have to make sure its in the cl***path <2> where do i set the cl***path? is it an environment variable
<3> what os do you use? <2> XP home <2> actuallly XP Media but same thing <4> icenyne: where is java installed? <4> c:\jsdkdir\, right? <4> what makes you point java_home to c:\jsdkdir\bin then? <2> i have no idea <3> right click my computer, goto properties, goto advanced tab, and there is a list of variables, one is called CL***PATH, if its not there you can add it <4> :) <4> do not set CL***PATH. <2> ok and is there anything else that should be in CL***PATH? <2> do not set it? <4> come on, mallard, how long will you be part of that moronic group who keeps suggesting this rubbish? <4> icenyne: CL***PATH2 "the point is this: making global changes to the cl***path is generally a bad thing, be it with lib/ext or with $CL***PATH because applications invariably depend on different versions of the same libraries and it's only a matter of time until you get version conflicts with not so well defined results" - El_Pollo on #java <3> ok I digress <2> ok so how does one create/set CL***PATH without doing so manually? <4> ant relies on JAVA_HOME to find the jar file with the java compiler. <4> (last i heard) <4> icenyne: parameters: http://java.sun.com/j2se/1.5.0/docs/tooldocs/#basic <4> but this is not required for ant. <4> ant requires you to have configured JAVA_HOME correctly. <3> if your java home is the the runtime and not the sdk it will not have the tools.jar <4> mallard: good point. <4> icenyne: are you reading that tool docs link now? <4> if you do, stop. fix JAVA_HOME instead. <4> keep that tool docs link around, you'll need it at some point. <2> yes im checking it out. when you say that if java home is the runtime and not the sdk does that mean my cl***path should include rt.jar instead of tools.jar? <4> icenyne: neither. <2> ok <4> just forget about the cl*** path. <2> i fixed java home to point to c:\javasdkpath <4> just remember not to set it. and if something pukes, check if it is set, then unset it. <4> CL***PATH is never the answer. it is a problem to blow up in your face. <4> +waiting to <2> ok then <4> icenyne: remember to open a new cmd.exe instance via start/run... after each env var change. <2> so what am i suppose to be looking at in this tool doc? it tells me to set the cl*** path <4> even starting cmd.exe from another process can cause it to have the previous/older env var settings. <4> icenyne: no, it does not. you are supposed to look at the parameters to set the cl*** path, when you need it. you don't need it now. <4> icenyne: CL***PATH Detailed information about the cl*** path mechanism is available at http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/cl***path.html More indepth discussion: http://java.sun.com/developer/technicalArticles/Programming/GettingStarted/ How Cl***es are Found: http://java.sun.com/j2se/1.4.2/docs/tooldocs/findingcl***es.html Also see CL***PATH2 <2> ok but im still getting that error that javahome isnt set <4> keep those links around, too. <2> BUILD FAILED <2> C:\bw-src\src\build.xml:82: Unable to find a javac compiler; <2> com.sun.tools.javac.Main is not on the cl***path. <2> Perhaps JAVA_HOME does not point to the JDK <4> "javahome"? <2> take out tools.jar? <4> holy cow... <3> where? <2> ha <4> dude, just unset the CL***PATH env var. set JAVA_HOME correctly. open a new instance of cmd.exe, then check if JAVA_HOME is set. <4> the command "set" will output all env vars in cmd.exe <2> yeah its set the right way <2> still get the same error <2> no cl***path <4> try not to get everything wrong man. <4> it does not say that. <4> icenyne: pastebin the ant script file that you are running. <2> ok then. so cl***path should exist but be unset
<2> ok hold on <4> icenyne: naw, remove it. "unset" as in "SET theenvvar=", which removes it in cmd.exe. the gui has a delete button there, yeah. <4> i seem to recall a bug in that ant script. <4> icenyne: which version of ant did you download? <4> (be exact and verify please) <4> "ant -version" might say. <2> 1.6.5 <4> ok <2> should i update <2> still sending the src to pastebin <4> isn't that the latest version? the ant homepage says that it is. <4> http://papernapkin.org/pastebin/ <4> pastebin.ca <2> i havent a clue <4> look at the homepage? <2> http://papernapkin.org/pastebin/app/view/791 <4> i mean...are you interesting in fixing this or not? what kind of answer is that if you are... <2> yes i am. i ***umed that my ant build was recent enough whether it was the latest. i mean, this all works with eclipse 3.0 <4> icenyne: if you type "ant" and press return, a command, executable or script called "ant.exe" or "ant.bat" or "ant.cmd" is being executed. do you know that? <2> yes i know that <4> icenyne: anyway, now you do. pastebin that script... <2> http://papernapkin.org/pastebin/app/view/791 <4> icenyne: why do you post a link to an xml file? <4> cmd.exe does not execute xml files. <4> it only executes .exe, .cmd and .bat files. <2> thats the ant script isnt it? <2> build.xml? <4> icenyne: that's your build file. <4> look what i said a few messages before...i gave you the exact names to look for. <2> i see that now. let me look for one of those <4> ok <4> moronic buggers that these unix folks are it's probably a .bat file. <4> "yeah, windows is dos, right?" <2> yea <4> arrogant twits they are. ;> <2> i was just screaming to my coworker what elitists these java guys are hahaha <2> ;) <4> hehe, but then...you show a great lack of operating system basics... <3> was elitist the word you used? <4> you shouldn't have been let loose on java without all these things. <4> now we are all stuck trying to feed those thing to you, while trying to tackle the "real" problem, too. <2> im self taught. i can write software jsut fine, but im still learning a lot of things regarding setting up environments <2> lol <4> really? that's horrible man, sorry. :| <2> yes i appreciate that <2> haha its ok, im only 21, still got a ways to go <3> Clackwell, I get the sense you are a surgar free sort of guy. <4> that reminds me of that female as/400 / os/400 programmer who had to be helped in her task by a medical doctor....he knew the os/400 basics better than she did. <2> http://papernapkin.org/pastebin/app/view/792 <4> it gave a hell of a stink, of course...my boss complained bitterly to the boss of that company. ;) <2> hahaha well i may not get things done as fast as id like, but for what they pay me and the overall outcome im a good investment to my company <2> thats the ant file we're looking for? <4> that's the thing that gets executed when you type "ant". somewhere in that horrible lump of text these morons have made a mistake - or you have, in setting that env var. <2> gotcha <2> thanks <4> icenyne: pastebin output of this: echo "%JAVA_HOME%" <4> icenyne: pastebin output of this: echo "%CL***PATH%" <2> http://papernapkin.org/pastebin/app/view/795 <4> this **** is so horribly around the corner - i don't even care anymore who wrote that .bat file with which intentions, he deserves a serious spanking anyway. <2> yeah? it came with eclipse: C:\eclipse3.1\plugins\org.apache.ant_1.6.5\bin <2> thats where that files is <2> oh wait <2> thats 3.1 <2> hmmm <4> icenyne: ok. remove the echo off line at top, then run it again. copy and pastebin the output again. that way we'll see how it gets executed. <2> ok the ant.bat for 3.1 and 3.2 are identicle <2> h/o running <4> it shouldn't matter where it resides, it should work with these env settings you made. <4> icenyne: there is a .cmd file, too. windows nt and higher prefer .cmd file, if you leave away the extension. <4> erh...that is - i think it does. <2> http://papernapkin.org/pastebin/app/view/797 <2> there is a .cmd <2> look slike procedural shell script of some sort <4> icenyne: did you remove the "echo off" line?
Return to
#java or Go to some related
logs:
#MissKitten tune2fs no Journal backup nicknameuri sphyaliss maltapark tuition freee certifications
#linuxhelp #MissKitten #php #AllNiteCafe
|
|