oh did I mention the build environment is in Sri Lanka and the build doesnt run after 6pm local time because the
How can I print out all the elements and attributes associated with a org.w3c.dom.Document?
If I have an external library in this case Jakarta Commons HttpClient, which I want in the classpath so my app can run, htf do I do this?
Is it even possible? Afai can see it isn't
JVM option -Dclasspath=path-to-jar
I believe
This compilation process used to work, I have to reinstall all my server because of a HD phisical problem and then now I am getting these 3 errors in output. http://pastebin.com/m6811e271 Any idea, please
Nope
How do proper apps do it?
I can't believe it's this difficult just to find a class
jars are pathetic then
What is the point of the jar if it has to stand alone
…
that last point is terrible. but anyway, maybe this will help: http://forum.java.sun.com/thread.jspa?threadID=583158&tstart=90
g[r]eek, HAHA. I am reading that exact thread now
hi
any help, please
yeah, import Itau.Itaucripto; is borked
~tell azuos10 about classpath
azuos10, The class path tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the class path. Also see http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html and http://mindprod.com/jgloss/classpath.html#ANACHRONISM
I tried this and still getting the same 3 errors: /usr/lib/j2sdk1.4.2_04/bin/javac Consulta.java -classpath /home/aaa/itau_shopline/Itau -sourcepath /home/aaa/itau_shopline/ -d /home/aaa/itau_shopline/
I guess the factoid 'getting started' might be appropriate:
azuos10, getting started is seegetstarted
where?
I guess the factoid 'where are you' might be appropriate:
Here
What is factoid?
I already have a factoid with that name, azuos10
~factoid
DRMacIver, factoid is a small snippet of information like this one.
Why "where am I" would be appropriated?
I guess the factoid 'why not mozilla' might be appropriate:
https://bugzilla.mozilla.org/show_bug.cgi?id=84128
hehehe
Are you talking about my IRC client?
I guess the factoid 'the truth about garbage collection' might be appropriate:
azuos10, the truth about garbage collection is http://java.sun.com/docs/books/performance/1st_edition/html/JPAppGC.fm.html
you know that you are talking to a piece of software, right?
or do you meet that less people that finding this out is impossible
Anyone ever setup jetty + jndi with properties?
In JNI two different 'jobject' references can point to the same object. Is there a way to get a unique value for an object (like a ptr) to store in a hashmap?
sometimes you learn a lot about the bot looking at newbies talking at it
hey dharrigan
andresgr, !
I can not see how GC could help me there?
I guess the factoid 'cannot resolve symbol' might be appropriate:
azuos10, cannot resolve symbol is http://c2.com/cgi/wiki?CannotResolveSymbol
you still didn't get it?
you could also go into the kitchen and talk to your microwave
I saw it before when you said the first time. I put it into the compilation command and still there with the problem
I guess the factoid 'fallacies of distributed computing' might be appropriate:
azuos10, fallacies of distributed computing is Please check out http://en.wikipedia.org/wiki/Fallacies_of_Distributed_Computing for more information.
sigh
how do I use FilenameFilter? is the String equal to REGEX ".*name.*"?
wow
I'd like to list all files in a directory [using file.list()], only if the name starts with "metadata_"
not list, I want an array that contains the file names
you will probably need to build it yourself
yea, just implement the interface
hi
oh (oO)
I'm looking for the easiest and simpliest way to implement a RESTapplication server in JAVA
OK, next question
how do I implement an interface
is there any framework that you would suggest to me ? I've googled a bit, but I don't know which one to take ?
~interface
Aradorn, interface is http://java.sun.com/docs/books/tutorial/java/concepts/interface.html
thanks
~rest
http://en.wikipedia.org/wiki/Representational_State_Transfer
OK, let's see if I got it, I'll "implement" it for my class and in my class I write a method called "accept" [that's the method for the FilenameFilter]?
yes
nice
I love this Java thingie
I keep learning something new every day
heh
and thanks to you, Aradorn and Duesentrieb
hello .. i want to get involved with an open source java project, where i will be able to learn how to use and apply java web host in real life ..
any suggestions for me ?
rohan, http://greenteapress.com/thinkapjava/
very good start
if you want to learn java
thanks, daredemo , but i already know java ..
ah
sorry :/ sourceforge?
i'm looking there too .. but since i have no prior experience, i have very few options
This compilation process used to work, I have to reinstall all my server because of a HD phisical problem and then now I am getting these 3 errors in output. http://pastebin.com/m6811e271 Any idea, please
rohan, I'd suggest helping for example, Ayam, or sunflow
or any other 3D related Java project
rohan, or you can team up with me
did you now realize what javabot is or do you still ignore me?
rohan, but I know very little Java
lovely .. but do you already have a project ?
Could you help me with my problem?
rohan, yes, but I'm not sure if they are open source
or, yor are a microwave as well
looks like your classpath is wrong
rohan, I'm writing a English-Japanese dictionary interface for edit
Even when I set the classpath it takes the same error
~tell azuos10 about classpath
azuos10, The class path tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the class path. Also see http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html and http://mindprod.com/jgloss/classpath.html#ANACHRONISM
and now read tht
that
rohan, and I'm writing one stockmarket tool [for local market]
setting it doesn't make it correct
It is finding the Itau package, but not recognizing Itau.Itaucripto
Is it possible to do an HTTP connection to a server host by IP, and specify the virtual host to retrieve?
This package is a blackbox for me. it was provide to me and I have already checked the md5 and it is ok
provided as a jar?
provided as itaucripto.class
I create a subdir called Itau and then I copied the itaucripto.class file into it
so the classfile is /home/aaa/itau_shopline/ltau/ltaucripto.class ?
yes
that is why my program is doing import Itau.Itaucripto;
you could put it everywhere, you'd just have to set the classpath
I am not a java developer, but I think it is rigth, because it was working before my server crash
in which directory are you?
set the classpath to /home/aaa/itau_shopline
i'm sorry, i was disconnected
what are you using, for the stock market tool ?
I thought my projects were too boring
I did it and still the same error
rohan, what do you mean "what are you using"?
by+
i mean, GUI ? if yes, what GUI ?
it will have swing GUI with Graphic2D and/or jogl interface
cd to that directory and try again
I am inside the directory
as root
rohan, at the moment I've got data retrieval working, I'm currently starting to work on the actual data drawing
ok .. let me see if i can find a worthy project on sf.net otherwise i'll tell you ..
/usr/lib/j2sdk1.4.2_04/bin/javac Consulta.java -classpath /home/aaa/itau_shopline/ -sourcepath /home/aaa/itau_shopline/ -d /home/aaa/itau_shopline/
It is correct, isn'it? Still the same
is there some nice function in java string to "asciify" a string? chaninng all "foreign" chars to their ascii variants, ie ü to u.. á to a..
download daily summary data if the file is not downloaded yet (works), draw candlestick (and optionally other) charts (work in progress)
wow, and you say you don't know java !
rohan, I have a wild imagination
anyone who's doing so much has to know loads of java
rohan, if you can't find a project, tell me, and I'll start one on google or something
rohan, nah, I only know REGEX
haha .. sure thing, but doing what ?
rohan, anything
then i have no idea, sure you used the same case, not itao, but Itao etc. ?
rohan, I'm into 3D
ok, start one on google .. let's see how wild your imagination is, daredemo
rohan, so, mobile games would be one option
but I doubt I'd like to make them opensource, as I'd like to get paid for it
and who would pay you atm ?
rohan, I have some pre-agreements for some educational 3D stuff
what kind of pre-agreements ?
rohan, money
if I get something useful done
great, daredemo ..
rohan, what I plan to do is slightly questionable
rohan, I'm a Member of Board of one foundation that funds educational IT projects
yes, I did, just to have an idea when I type -classpath /home/aaa/itau_shopline/Itau instead of -classpath /home/aaa/itau_shopline, it says the Itau package does not exist. So I do not think it is a classpath problem
rohan, and I want to set my own company that tries to get money from them/us
wow .. which foundation is it ?
but in both case I still got the same 3 errors
well, of course I'll abstain from voting if they discuss my projects
no idea then
thank you dangertools
rohan, a small governmental foundation of one small country
rohan, our budget is about 1 million euros per year
but most of it goes to training related projects
which country ?
/whois daredemo
ee stands for ?
http://www.google.com/search?client=safari&rls=en&q=domain%20.ee&ie=UTF-8&oe=UTF-8
estonia, no?
cheeser, should be
This compilation process used to work, I have to reinstall all my server because of a HD phisical problem and then now I am getting these 3 errors in output. http://pastebin.com/m6811e271 Any help, please
again. fix you classpath.
as discussed with dangertools. The problem does not seem to be with the classpath
there seems to be no other explanation
rohan, would you be interested in some educational soft development?
rohan, the edu soft HAS TO be opensource
yes, very
rohan, OK, let's exchange contacts or something
if the VM says it can't find a class, there are very few alternatives.
It is not saying that
sure, it says that it cannot find the class
"cannot resolve symbol"
with the wrong path it says Consulta.java:1: package Itau does not exist
with the correct one it does not say it
then make sure that class exists in the Itau directory
sorry man, but I am not stupid, I know I might looks like, but I am not
no one has said you are.
it clearly says symbol not found which means class not found, don't ignore that
in the pastebin I printed the ls -l too
in your javac commandline, where's your -classpath entry? http://pastebin.com/m6811e271
tthe file is there
Anyone know how you get those breakdowns on google, like, google for "outsurance". the first result has 4 sub links. how do you get them?
for all i know you're a rank newbie so i'm starting at the beginning.
rank newbie ?
~rank
Roooooony, I have no idea what rank is.
also are you sure that Itaucripto is in the itaucripto.class file (the case doesn't match)
in the pastebin, the classpath host is not there, I just did it here and the same thing
Hi, I'm trying to get the Postgres JDBC working with my fedora 6 box. I have the drivers installed apparently but a call to Calls.ForName("org.postgresql.Driver") raises an exeption
before my system crashed it was working fine. Unfortunately it is a blackbox and I cannot see inside it
add the pgsql jar java hosting to your classpath
it is the same phisical file
try renaming it to match the class case
if you copied both, java source and ls -l output you ignored my "is the case right question" right away
lol
ah, where would i find the pgsql jar file? i'm really new to java
you said you had the drivers installed. what drivers are you talking about?
ln -s /dev/null pgsql.jar
I did not ignore you. the case is right
the jdbc postgresql driver
not if you use Itaucripto and itaucripto.class
itaucripto and Itaucripto are seriously not the same case
I understand I should add the jar file but I don't know where it would normally sit on my Fed box.
~tell BrokenNoze about classpath
BrokenNoze, The class path tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the class path. Also see http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html and http://mindprod.com/jgloss/classpath.html#ANACHRONISM
it can sit anywhere you want. you just need to add it to your classpath
most of the installs include the JDBC jar in their directories somewhere … try in your /usr/lib/postgres … or whatever
ok. thanks people
thanks for your help. I can not understand how my file code has changed, because it were a backup but it is working now. thanks a lot
Hm. Any good tools for searching for classes in the classpath?
javap
8^)=
hello anyone knows why i have to use "http://java.sun.com/jstl/core_rt" instead of core
~jogl
daredemo, jogl is a JNI binding of the OpenGL 3d Graphics library. Great for 3d games in Java. https://jogl.dev.java.net/
i am using jakarta-taglibs-standard-1.1.2
with tomcat 5.5
anyone know of an IRC channel for Ant? I've just tried to subscribe to ant-users but the signup process is borked
Hm.
Looks like I might need to use the release candidate of Idea 7.
(Or possibly downgrade to the last version. Hard to tell which. I'm hoping it's the upgrade, as this is 'cutting edge' stuff )
i'm using eap 7111
What's the verdict?
it's good.
i miss one part of the dep mgmt, but it's stable.
and the new features are pretty nice
That's good.
I've had bad experiences with release candidates of IDEs being mindboggingly unusable. (Specifically Netbeans)
yeah. i've had the same with some IDEA EAPs
(Of course, I've had bad experiences with official releases of netbeans being mindbogglingly unusable, so…)
but the vast majority are surprisingly useable
heh
I had some issues with TestNG-J unfortunately otherwise it is fine and dandy, running EAP 7118
I haven't fired up IDEA in over a month…
Time to see if there's anything new
Many new JPA inspections
They've closed three such bug reports of mine regarding hibernate specific stuff in jpa queries recently..
Yep, looks like I need Idea 7.
and I have a few more pending.. but they are closing them faster than I can find new things to comaplin at
Now to downgrade my version of Scala…
IDEA rocks. Simple as that
bleah, morning AGAIN
Aloha jottinger
yeah.. It's nice to report stuff and end up basically chatting with a developer in jira imidiatley..
when is the next 7.0 release coming?
they typically release EAPs on fridays, but the last bug of mien they close they closed with an M2 tag, so I'm unsusre
they haven't hqd an EAP of 7.0 in a long time, have they?
current mileston is M1, current EAP is #7118, which is much much newer than the milestone
The milestone 1 has been around for a while now.
hqd?
ah, had..
ahhh
I'm on the milestone, not the eap… silly me
not in a long time if you only got by milstones ;9
I take it the eap is far better than the milestones
Yeah.
I think we have had three eaps in the past two weeks or soemthing
the EAP is also, in my oppinion, quite stable by now
very cool, I need to update
not release quality ofcourse, but getting there rapidly
Plugins is where b00gz seem to be.
hopefully they fixed the facets
mostly.
i find it still drops my JPA datasource definition.
the DS is still there. the facet just forgets about it…
and i miss the dependency tree bit where all the deps were in alpha order.
that was nice for spotting dupes. or just finding something.
it auto-added my JPA facet, but didn't add my persistance.xml, nor link up with the single datasource I have configured
Same here.
I don't mind it not linking up the datasource I supopse, that is acceptable, but it should have picked up the persistance.xml
buh bye javabot
you still see the end result of the library imports in the project view, libraries tab though
you killed javabot… you bastard!
it's where I tend to find oddness..
(Well, this particular Idea plugin. but it's still their fault. )
okay, downloading 7118
250 bucks for a license?
thats rediculous
… ridiculous
and worth every penny
yes, it should be $500!
I wonder why it is that developers always seem to think it's -toher- people who are suppsoed to be paying for software
IDEA has this strange tendency to be rejected by people who don't want to pay for it… and then when and if they break down and try it, they end up saying "whooo, what a deal"
I actually think Idea's license fee is very reasonable.
s/toher/other/
And did even prior to trying it.
they are a bit like macs…
hi all
can somebody help me in javamail?
can you ask a question that has an answer?
everythink works fine, but i can't setup connect's port
and chances are, if you're using javamail, you should use commons-emil instead
soory jottinger
Plus, they charge in dollars, it's gettig cheaper by the day for me
Eeeeemil!
Then IDEA is the best 250 bucks you spent for it.
if i was using a mac i would use textmate but thats a different story
Likewise.
is it a one time fee?
WHOA… breadcrumbs!
~idea++
No, it's a two time fee. You pay the dollar price up front then, at some unspecified time later, they come for… your SOUL.
otherwise, join an OSS project.
or your goat.
Most people give up their souls.
I could also manage the payments for you, then it is a 4 time payment.
but yeah, OSS projects get a free license.
But it's still worth the cost.
~ping
is idea that expensive?
when i was about to buy it it was like 50euros
$250 for personal
You rang, m'lord?
~ping
You rang, m'lord?
~javadoc String
I don't know of any documentation for String
tee hee hee
w00t to ze version
~logs
joed, channel logs is http://servlet.uwyn.com/drone/log/bevinbot/%23java
~be joed
r3trartz uniti3!!
academic license is only 99usd
~karma joed
joed has a karma level of 51, cheeser
My goodness!
~karma cheeser
cheeser, you have a karma level of 370.
Oi,
~cheeser++
cheeser has a karma level of 371, joed
~karma chameleon
chameleon has no karma, deebo
javadoc coming right up!
figures
laaaaag
uploading src.zip to the server to process
8^)=
Damn it's amazingly enterprisey scalablebly fast!
~be jottinger
I hate you.
~about
I guess the factoid 'the truth about garbage collection' might be appropriate:
cheeser, the truth about garbage collection is http://java.sun.com/docs/books/performance/1st_edition/html/JPAppGC.fm.html
~javabot
http://javachannel.net/wiki/pmwiki.php/FAQ/Javabot
~help
See 'help about', 'help factoids', 'help javadoc', 'help karma', 'help abuse', 'help literal', 'help magic8', 'help google', 'help rot13', 'help dict', or 'help tell'.
hrm.
~rtfm
Read the Fine Manual - API Docs: http://java.sun.com/javase/6/docs/api, Really Big Index: http://java.sun.com/docs/books/tutorial/reallybigindex.html
somewhere in there was teh version info
~version
~stats
I guess the factoid 'unsupported version' might be appropriate:
unsupported version means you compiled your code on a newer version of the VM than you're trying to run it with. Recompile for/with the older VM or upgrade your VM.
I have been up for 0 days, have served 11 messages, and have 2544 factoids.
I always just did a whois on version.
2.0 8^)=
can anyone get to commerce.bea.com?
sure, gimme your credit card
yeah
it's working?
indeed
hrm, something funky on my end then
your infamous Solaris box?
~javadoc String
I don't know of any documentation for String
[TechGuy]: the solaris box is able to reach it, it's the windows box that's having the problem
hrm.
doesn't seem to have worked…
web-ui?
haha, it's very javascript-driven, so links couldn't use it!
Noticed that GF is up to v2RC2 now?
nothing in the logs either.
You have a virtual2 Reality Cache 2 Girlfriend?
weak!
8^)=
Any bombing ?
It's virtually realistic
well, i'll deal with it later.
it's just the javadoc anyway.
[TechGuy]: no, I need to wait until it's stable to use it
module startup times seem faster. Only took about three seconds to load the JSF module when first going to the admin page
the rest works? Like factiods/logs/karma?
yep
Publish url?
[TechGuy]: heh
does the jca registration still suck?
dunno. Never dealt with JCA
Want me to fire it up and I PM you my address?
no
Hi. Is the comet implementation in tomcat hosting 6 only an experiment or it can be used in real world applications?
gah
you can use it however you'd like.
IE can *read* bea.com, but I can't log in
IE. tee hee
~ridicule jottinger
Some perverted side of me wants to play with Oracle XE
sweet
I gave a glance…it seems a little hard to understand and very quiet low level..
Safari and Firefox both failed
is there any library that make it easy to work with this paradigm?
[TechGuy]: so why don't you?
It's Oracle. I'm scared of it.
I need to add an attribute to a DOM Node, any ideas?
sure. go for it!
you can do it!
[TechGuy]: oracle is quite nice in many ways, it can also be a high resource user…
bomo
Well I can't figure out how to do it.
err boom
Emphasis on high resource user
I have a friend who I haven't spoken to in years who's a senior Oracle sales exec. He used to give me lots of free CDs here and there.
[TechGuy]: well, you can run XE on your desktop machine, but you probably do not want to do that…
any "framework" for comet?
google for cometd. seems like a saw a few but can't remember which.
what class/library are you attempting to use?
~stats
I have been up for 0 days, have served 3 messages, and have 2544 factoids.
~be joed
r3trartz uniti3!!
~stats
I have been up for 0 days, have served 6 messages, and have 2544 factoids.
Tharz we goez
~tell mattis___ about xml
mattis___, xml is best parsed with XOM (http://www.xom.nu/ ), JAXB (http://java.sun.com/xml/jaxb/ ), JDOM (http://www.jdom.org/ ) or XmlMap (http://www.zwitserloot.com/java-boilerplate/mox ). If you like pain, you may wish to check out SAX or DOM (http://java.sun.com/xml/tutorial_intro.html ).
STAX isn't bad
Doesn't OC4J and OAS have a generally dim opinion in here?
ah HA!
~opera++
opera has a karma level of 1, jottinger
"don't," techguy… and when you say OAS, what do you mean?
Yeah bite my fat ass.
, I was originally typing just OC4J. And Oracle AppServer
ah
well, it's not bad, really
bite my shiny metal ass!
all hail Bender
OAS can also be used to refer to OrionServer, was why I asked
~hail bender
All hail the mighty bender of benderness!
and my opinion of OrionServer is and nearly always has been that it's the bestest J2EE 1.3 server around
Where're Prof. Farnsworth and Zoidberg when you need them?
Will there ever be an updated version, you think? or is it dead?
zoidberg's probably eating his young
I think it's a victim of WoW addiction.
unlikely, his race dies after breeding.
hehe, seriosuly?
yeah
That is both amusing and tragic at the same time
rumor has it at 95% done in a LOT of areas.
yes, agreed
it really bugs me.
hello
i have an issue running a java app on mac os x
damn you lionel richie!
the culprit is steve jobs
I blame Woz
is there any way to have the app running using gtk instead of aqua?
luke`: only if the app supports switching to the l&f
i dunno if you can force that externally or not.
I don't think so with Apple's VM
hmm
[TechGuy]: can you with sun's?
I blame lionel ritchie too for giving nicole ritchie a basis for being known
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel your.fine.Program
very nice.
i'll have to remember that.
i don't do a lot of SWING so i'm unlikely to.
8^)=
~look and feel is replyjava -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel your.fine.Program
why remember when you can have robots remember it for you wholesale
~look and feel
joed, look and feel is java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel your.fine.Program
Hmm, reply, maybe we need to clone().trim() that…
I need to append my classpath at runtime– any ideas?
hrm. no feedback when creating a factoid?
~feedback is replywhat do you want to hear?
Okay, cheeser.
luke-jr: create a new URLClassLoader
strange
~feedback
what do you want to hear?
hi all. I like to know if NetBeans support collaborative develpment (like SourceSafe on VisualStudio) thank you.
and that will change the classpath?
#netbeans can probably tell you
sourcesafe isn't collaborative
luke-jr: well… yes and no. you can use your own lcassloader to load classes from additional places (directories, jars)
it's a way of putting the brakes on development
I'm not the code loading it
how do I prevent aqua from decorating each window in the application? The application looks great on linux and windows
luke-jr: the classpath defines which places are searched by the default classloader. you can not change that.
why not?
VSS is the lesser of the two evils I have to use..
luke-jr: because that's how the class loader system works.
what's the worse?
ccc/Harvest
Change Management stuff. Wrose by several orders of magnitude.
in what kind of hell do you work?
luke-jr: if you have class X which needs to load class Y from an obscure place, make sure class X is loaded through a classloader that also knows where to find class Y
Your everage mid-large ERP vendor..
It's the sequel to The Divine Comedy… The Holy Sitcom
Look at it this way, I checked in a change in harvest earlier today, and waited for 114 minutes for the build to complete…
hahahaha
I mean, uh, ouch
at least with VSS you have an excuse to lie about using it
"Oh, it lost my change… again"
the build ofcourse failed. not on my stuff, but on someone elses, so I'm waiting for the next build, which should be done in about three hours
hopefully said person will have fixes their problem so the build as a whoel can complete, and I can promote my fix from implementation to the -actuall- build
It's an… interesting way to work
I've been there before.
hello
oh, did I mention the build environment is in Sri Lanka, and the build doesn't run after 6pm local time because the power to the industrial area the building is in gets the power cut at nights?
i advetise for #math-prog . anyone willing to help out is welcome there
hahaha
that's awesome
no… but I think that trumped me
It's apparently something fairly common while they construct new regions, as the power grid can't keep up.. when people come home frmo work and turn on lights, there isn't enough capacity
that's spooktacular
anyway, it's life.. fortunatley most of my work doesn't involve that particular system, so I get to use VSS.. hence why VSS feels almost like a treat
golly, I feel like I can't even make fun of you now, out of pity
i have no such compunctions.
hehe
I'm sure it makes more sense to some other group of people than it does to me..
yes, your competition
Tsk. This is ERP. This is like the ERP equivalent of agile development..
buzzwordy and of dubious value?
~ping
Uh.. wha?
ive just installed jdk 6, how do i get rid of the old jdk 5? (using windows)
uh…
why do you need to do that?
you can keep both and it can be handy to have java/5 in a few cases…
uhm, tidy up space and clutter ?
add/remove programs does not work?
it's in the control panel. consult a windows help forum and/or google
Anyone remember what the MySQL implemented semaphores are called? It's for when a process wants to create an lock on a namespace rather than a database object.
ask ##mysql?
nope, it probably calls the installer again, because it says that it is already installed (doh)
That is a 1337 channel where no one talks about these simple matters.
is there an easy way to test javabot from console, preferably not needing any irc server…
not atm. but there are testng tests you could use.
if you want your apps to work with mac you have to compile using java5
at least that's my experience
there's a java6 preview out but it's oooooold
ok well i'll keep it.
but you can compile with 1.6 and target 1.5
guess I have to open another feature request then… :-/
in case the uninstaller doesnt work (which is the case) can i just delete the jdk5 directory ?
heh.
there are a few missing docs on how to start coding/testing javabot…
what do you need this time?
cheeser maybe that's what i did.. i'm just a n00b
yeah. that should probably be updated.
a *lot* has changed since 1.7
I added my throttle multiple tell, want to test that it is working correctly… want the diff?
man, BEA needs to get some bandwidth
attach it to a ticket in the issue tracker.
i was just talking to joed about that request.
post it to the tracker
my folks are coming to town so I won't be able to look at it for a few days. but joed might.
where do I upload files there?
if not i'll try to apply it next weeks
are servlet questions ok here or do they have a special channel?
they're okay here
just attach them as issues
great.. i'm planning to learn something about it
I just see "add a comment:" I do not see any attach file…
are you logged in?
no…
"
sf.net ate my password when they were hacked, the account sends mail to an old school account so I can not reopen it….
weird
(I could create a new account, but that sucks since I have my project there…)
and the admins can't fix that?
s/my project/one of my projects/
tried to contact them, got no response, stopped bothering
yeah. they kinda suck sometimes.
got it?
if you declare an Object, but do not initialize it, does it automatically get set to null?
moved all my projects to my own server instead…
it depends
Thank you!
note that it is untested, but the difff is probably easy to read…
No problem!
ernimril, on what?
Hm
where you declare that object
~graph
I guess the factoid 'graphics repository' might be appropriate:
DRMacIver, graphics repository is Java Look and Feel Graphics Repository http://java.sun.com/developer/techDocs/hi/repository/
~jung
DRMacIver, I have no idea what jung is.
~fmarceau
fmarceau, I have no idea what fmarceau is.
ah
if it is an instance or class field, then yes it will be null by default
i'm debating moving javabot to launchpad.net
jung is the Java Universal Network/Graph framework, a very powerful library for manipulating and visualising graphs in Java. See http://jung.sourceforge.net/
Okay, DRMacIver.
graph is seejung
if it is inside a method, then you will get a compile time error if you try to use it before setting it
~ping
Pong
Hm
~graph
I guess the factoid 'graphics repository' might be appropriate:
cheeser, graphics repository is Java Look and Feel Graphics Repository http://java.sun.com/developer/techDocs/hi/repository/
ernimril, what do you mean if it is an instance? aren't all objects instances of a class
~graph is seejung
~literal graph
I have no factoid called "graph"
~literal graph $1
I have no factoid called "graph $1"
class Foo{ Object o; void bar(){Object p;….}}
o is null, p is undefined
jung
Okay, joed.
~jung
jottinger, jung is the Java Universal Network/Graph framework, a very powerful library for manipulating and visualising graphs in Java. See http://jung.sourceforge.net/
~graph
joed, jung is the Java Universal Network/Graph framework, a very powerful library for manipulating and visualising graphs in Java. See http://jung.sourceforge.net/
~be jottinger
There are no stupid questions, only stupid people.
anyway.
~be joed
r3trartz uniti3!!
~graph is seejung
I already have a factoid with that name, cheeser
~graph
cheeser, jung is the Java Universal Network/Graph framework, a very powerful library for manipulating and visualising graphs in Java. See http://jung.sourceforge.net/
ernimril, does it make a difference if the method is static?
the sequence value was borked
was getting dupe IDs
Yep, for some reason. I'll look later at that. I have the same error in a test here.
~tell peeps_work about variables
peeps_work, variables is http://java.sun.com/docs/books/tutorial/java/javaOO/variables.html
probably just an import problem.
select setval('hibernate_sequence', 100000);
hmm.
GAAAH!!! Where TF does it say, anywhere, on commons-httpclient that it also depends on commons-codec?!?!
in the pom.xml?
8^)=
[TechGuy]: why do you need commons httpclient anyway?
Simple post-read-response HTTP where I have to control a request header. I hear commons-httpclient tossed about here enough
Dependencies
err, [TechGuy]
disregard
well that's a helluva place for it
[TechGuy]: and HttpURLConnection does not give you enough?
It's nice when one is able to cut out huge chunks of the design as irrelevant.
yeah. they should've picked some place less obvious
Or, ya know, maybe actually *mention the damn deps* in the readme or such
Probably does. But commons-httpclient says HttpURLConnection has "issues" (dunno what those were).
[TechGuy]: well to be fair so does commons-httpclient…
[TechGuy]: that's the place where the dependencies of all Commons projects are
[TechGuy]: but yes, it's hard to find
True. Grain of salt
whats wrong wtih HttpURLConnection?
Ive used it pleanty of time without any problems
Screw it… quick refactor back to HttpURLConnection
but but but, more dependencies == bettarz?
that would explain why javabot needs 35 MB of external jars…
heh
You see the light!
Hm. Jung really is astonishingly featureful.
JSF's and Facelets seem like they are ready made to create the uberest CMS ever.
RYO!
do I use "import java.io.FilenameFilter;" before I can use it to implement with my class?
tias
very little about the framework choice has much to do with how good a CMS is.
I agree that good arch is the most important. But having a slick magical framework behind it, makes creating a good arch easier.
and i'm not sure JSF is that magical framework.
8^)=
It's magical how long it has taken though.
I'm interested in your take on it, as I'm not only new to Java, but very new to JSF's having only gone through the tutorial and watched the few flash demos.
I understand the biggest issue is it is .net component based rather than MVC.
erm
.net-ish I mean.
~seen kinabalu
9 AM kinabalu :unaffiliated/kinabalu joined the
w00t
Indeed!
Anyone want to give me a hand? I'm getting "ghosting" in a JTable. When I add a new row, the values from the row above appear in it, but they're not the cell's contents.
do you have a test case for that?
are you sure that you only modify the table on the edt?
~edt
Event Dispatch Thread, the thread that drives the swing gui. See http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html for a tutorial on Swing and threads, and note http://java.sun.com/developer/JDCTechTips/2005/tt0727.html#1
I'll take a look. I'm new to java. When I'm adding the row I'm manually instantiating a new row in the model, filling it with null values, and then fireing the fireTableRowsInserted, so I'm fairly sure that the new row's values are empty
anyone ever use quickfixengine?
excuse me gentlemen
which is more advisable these days, to make methods take arrays or lists as parameters?
if you use generics you usually want to avoid arrays, since arrays and generics does not mix well
{ public void dance(E[] sequence); }
ernimril, hmm that be true
i have JRE 1.6 installed and when i try to run a java program, it returns with: Exception in thread "main" java.lang.NoClassDefFoundError: com/jgoodies/looks/plastic/PlasticTheme
I got stuck with FilenameFilter interface :/ How do I make the "accept" method?
exactly as it is described in the interface
that's an external lib, you miss the plasticTheme
it's trying to use some external class, and you haven't told it where to find the class
how would i pass that option? the program comes with 2 more jar's….looks-2.1.4.jar which i'm assuming will have the theme
~tell adeel about classpath
adeel, The class path tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the class path. Also see http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html and http://mindprod.com/jgloss/classpath.html#ANACHRONISM
thanks
hmm is this idea's .form format some propietary crap or a supported format?
it's a supported format. In IDEA.
:/
guess ill just do my gui stuff by hand then
time to prepare the razor for the wrists
g'morning.
Why not tell IDEA to generate the java code instead of the .form?
I mean, it's an option…
hmm i didnt find that, lets have another look
ah there
been a while since i used this
mmm, how do i start editing a class that is already extending jpanel and has components
i can only find new form, which creates .form instead of .java alltho i have set it to generate .java
use netbeans matisse to edit your forms and idea to edit your code
look in your class… there should be collapsed code at the end
what does this mean? : java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c-xlib.lock' failed.
jeesus this is hard, ill just do it by hand
when i open a class that extends jpanel the side bar doesnt have the "ui designer" tab
and ll i can do from the new menu is make a new .form
which i dont want
but if i create a new Dialog it will generate java too
going from idea to eclipse was hard, but its hard going back to idea
hi all, does anyone know of a c compiler that doesn't require an install? Something like eclipse where you just unzip it in a folder? I would ask in #C but they block my gateway
rather unfortunate…
GCC
I should mention that I'm on a windows machine that I'm not allowed to modify in any way
yes, that changes the answer to "GCC"
so I'm thinking of running off a usb stick
mingw/gcc should
anyone know if idea can import/convert a complete eclipse workspace?
you think cygwin would work? I also need a prolog and a lisp compiler
it should
I could give it a try I guess
can anyone tell me what a recursive decent parser is in simple terms?
decent?
err
descent? [sic]
n) parse(n)
using java 1.6, is there a way to get around the 'xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c-xlib.lock' failed' error?
http://en.wikipedia.org/wiki/Recursive_descent_parser
markup didnt go quite right there but still
I have to write one in c for programming languages
woohoo fun stuff…
aaah its like that
of sorts
well, I gtg and try this cygwin for a bit, thanks guys
why do people use global resource directives in server.xml and then use resourcelinks in their context.xml?
dosnt seem to make any sense
i don't use either of those.
how do you normally do it?
it is.
yeah tomcat
we are pretty low tech here
quiet today
yeah
ill liven it up some…
when i compile my program it is giving me a ClassCastException but I dont cast any objects in my program. Can someone tell me what is wrong!
hi
Guten Tag
when I create a soap server in java, can I specify the IP address I want to bind to ?
oh my god.
Wow, did I ever mention how fun it is to use gcj.
that bad?
no
javabot tell svm_invictvs about gcj
svm_invictvs, gcj is not Java; don't be surprised if we refuse to help you. You can find information about gcj at http://gcc.gnu.org/java/ or see #gcj on irc.oftc.net
Fun like having a papercut on your nutsack.
so, this is odd.
this is -not- a slow machine.
drop em, i'll give you the papercut
gcj is can't be that much fun
but things like firefox, thunderbird, and eclipse… tend to be sluggish.
i have a decent video board, plenty of ram - but it's like the GUI hooks are rendering pig-slow.
eidolon ive had that problem lately
yeah i know what you mean. "I got three cores free, please use them for the goddamn ok-button!"
on a 2.26gig P4 w/2gig, i should be able to flip screens from my firefox desktop to my eclipse desktop without spending time watching widgets redraw.
Tahts' waht the last girlfriend said.
i'm wondering if i have something misconfigured.
off topic, but ff and thunderbird use the mozilla rendering engine, which is largely javascript
i have a 3.4 p4 with 3 gigs of ram and eclipse/ff2 have been really slow lately
it's loosely related,and i understand that tb and mozilla use XUL.
and i know XUL is pretty low-end.
svm_invictvs…
im thinking about ditching eclipse here at work
it takes almost 3 mins to startup
hi all
someone know why jList1.setLayoutOrientation(javax.swing.JList.HORIZONTAL_WRAP); doesn't change nothing at all
?
items remains vertical
eeef.
mine doesn't take that long.
you're doing something wrong
who is doing something wrong?
let eidolon show you how to double click that icon.
heh
you mean you are assuming the setting would make things from up to down
?
eclipse should not take 3 minutes to start.
its my machine
no i want items from left to right wrappwd to the jlist width
i want a classical windows listview for files
explorer like
i just did a 'time runeclipse.sh' - just going from command line to where i could edit and hit [Close]
real 0m27.823s
http://planet-geek.com/yawl.html — on this machine
have you read the actual api page ?
java comiles into…what? bytecode/object code/binaries?
bytecode
usppose i could replace this 2.26gig machine with like a dual core 3.0gig machine. that might help performance a bit.
How do I explain this to a bunch of old school C programmers. They keep asking about the "object code." taht's produced.
you could call byte code object code…
mm ok so the same problem how can i have a listview?
they're wrong
send me your old one
object code is pre-link.
it's just a different machine
the most common the more hidden un-present
yeah, that's true.
argh i hate java
err.. what ?
optimized object code for a vitual machine?
and what assembly language is the "object code" in.
you came to the right place!
Proguard!
what are you trying to accomplish
?
you can get these machines (like yawl) on ebay for like $120.
Java bytecode - the machine code of the Java Virtual Machine.
duh, I've tried to explain that.
currently an out of work college student….I don't have like $120
is the java plugin framework any good?
i want to know if there is a swing component that i can use to show a list of files in the manner any os's explorer would do
get a job!
JFileChooser?
actually..have an interview in 45 minutes
good luck!
not to choose a file
well.. i think that varies..
we'll see….its a part time tech support job…I'm going to try to wrangele that into a part time support-and-a-little-coding job
and there is something called "vertical wrap".. if you read the actual api page for the method you were using..
all tech support jobs morph into coding jobs.
so let me ask again, have you read the api page ?
argh yes coulb be i'm not able to understand it at this point
trust me its really simple, just scroll down to the method you were using..
gotta start small eh ?
that's what she said?
michael scott++
no that would be "You call _that_ 'the moNSTERRR' ?!"
i was in the pool!
followed by loud laughter
i need formMain.jList1.setVisibleRowCount(0);
works now
okayy..
i swear you were on pcb, but good for you
pcb?
where does NetBeans save the GUI layout data for applications? I'd like to make the visual layout in NetBeans, but I don't want to use it for anything else
in the .java
cheeser, also the location of buttons and all?
look and see
yes all java code that use the .properties file
what?
swing app framework code uses some .properties file
no it doesn't, stfu
I think something is wrong..
swing app framework code?
wtf are babbling about?
Is this javavm working ? https://www2.bancobrasil.com.br/aapf/login.jsp?aapf.IDH=sim
lol i see it
cheeser, looks like it's in the .java
no way!
but nevermind i don't know java
can i create a beanclass and then bind a tree of this beans to a Jtree?
thanks again, everyone
i want to write only the beanclass, where is a generic tree data structure bindable to a jtree?
write my bean, declare a tree BuiltInClassmybean, Jtree.bind(tree)
someone can poit me to a simple example?
hmm, i have a class with an textarea
and a eventlistener for a button
is there a good way to access this textarea in the anonymous eventhandler for the button?
u mean final sucks?
yeah
same problem here
~tell mefistofelix about aolbonics
mefistofelix, aolbonics is talking like a retard using speech as if you were on AIM or using single letters for you, are, you are, you're, see, etc. Talking like this is frowned upon in ##java and may result in you being silenced. You have a full keyboard so use it. We don't care if you talk
like an idiot with your friends but we don't want to sit through stuff like this: http://forums.oracle.com/forums/thread.jspa?threadID=499980&start=0&tstart=
eh sorry
the final problem remains
yeah, feels awkward to extend the eventlisterner, just to be able to access my textarea from the actionevent
look at the javadoc for ActionEvent
the cheeser response is: use the Swing application framework annotations to workaround
stfu for once?
quit talking about your ass.
er, out
8^)=
quit talking about him talking about his ass!
sorry i'm frustrated
java kicks hard on programmers that want to write and read logical code
don't blame java. millions of developers have gotten it working just fine.
you know procedural is very logical..
mefistofelix, you really have no idea what your on about…
there are swing tutorials you should work through.
and since when was logic anything but relying on arbitrary rules anyway ?
Exception in thread "main" java.lang.NoClassDefFoundError, what am I missing?
jtree beans binding root node, but nothing usefull
a static void main(String[] args) method?
Rémi Forax's Blog: Beansbinding goes to the wrong direction
lol
grub, it's there
sorry, GraveDigger, it's there
hi all. what types have i to use in bean class declaration for its properties - primitive one or wrapper classes ?
eh?
https://appframework.dev.java.net/intro/index.html
a href="https://appframework.dev.java.net/intro/index.html"https://appframework.dev.java.net/intro/index.html/a
eh. are you using command prompt?
no
i mean. i see in tutorials that they use wrapper classes as type for properties of bean - not primitive . is this some particular rule or simply an accident ?
hm. it's possible that you referred to a class that doesn't exist. somehow.
pastebin the actual error message
I don't think IDEs would be that stupid…
you can use primitives
hi all
i know that i can, but what is the true approach or better approach ?
there's nothing "wrong" with it
people does anybody here have used snaq.db.ConnectionPool??
~anyone
Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.
s far as i know in M9 you cannot bind for example JTable to your custom property myList , only to util.List bean and its contruction limited only to Query (huh!?) wrapped by ObservableList (still didn't understand why cannot just use ObservableList without Query…). In beansbinding itself -
everything works fine. But i still cannot bind JTree. Exceptions… Even snippet from javadoc does not work. Where can i find JT
http://pastebin.ca/652668 and this is the error when I run it
is that class in a package?
ok. thanks . do you know some links where can i get detailed info ?
yes, I guess so
~javabeans
cheeser, beans spec is http://java.sun.com/products/javabeans/docs/spec.html
I'm using that Connection Poolling implementation and got SQLException without any message.
Anyone that uses IntelliJ IDEA
?
javabot tell mgenov about anyone
mgenov, Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.
a lot of us use IDEA.
Okay, i'll ask.
don't do that in channels, just ask.
~mgenov we all do, kthxbye
I guess the factoid 'fallacies of distributed computing' might be appropriate:
I have an web module with some jsp page in it and i wan't to redeploy web pages on save.
joed, fallacies of distributed computing is Please check out http://en.wikipedia.org/wiki/Fallacies_of_Distributed_Computing for more information.
server is tomcat
5.5
I've configured the web module to use exploded directory
instead of war file
I can do this manually by clicking with right mouse button in the editor and invoking "Package file"
hmm, implemented the ActionListener and added the method ActionEvent and so on
it works, because it starts things in handler
but it can't update a textarea field
private JTextArea infoArea = new JTextArea("blah", 5, 20);
i can't even do a infoArea.append("shit"); in the constructor
if the ActionListener is a separate class, pass the reference to the JTextArea in its constructor … ?
it is in the same class, i just implemented the ActionListener interface
the text 'blah' shows up, as it should
so what exactly was your problem ?
is there like a requirement to have scrollpanels or something?
i can't append to the textArea
where, when ?
for instance in my actionPerformed method
no, append should work.
I can't find any explanation/discussion on the scope parameter in jstl SQL tags.
I want my simple query to be application scoped, so that I only fetch the data once.
if i add infoArea.append("shit"); to the end of my method that draws the GUI it don't show either
do you do this in the initializer, or the actionPerformed method?
i tried both
ill pastebin my code
eh. I'm not as familiar with with Swing as I'd like to be.
well it should work anyhow
http://pastebin.com/m1e78d30f
*silence*
i would like to compare text in 2 documents for "keyword differences", not line-by-line differences as in coding, ex: "1.txt" contains 'Hello you are funny' "2.txt" contains 'I you are funny' Results show "hello" occurs in first document
i've only been able to find one program that does this, CompareSuite, but am looking for something else….*(I'm not a programmer)
does it even go into the block start starts at 69 ?
*that starts
i've tried 10 different programs so far, just coming to a programming channel to ind out if anyone might use a program that does this
yes
and by having the infoArea.append("shit"); i can make sure that the dialogue is still active
i would have bought that the "Connecting" thingie wouldn't show up due to it wouldnt have time to repaint or something
but that does not seem to be the problem
so you have actually debugged it and seen it go into that block ?
well, i know that the game starts fine when i press the connect button
right
but i haven't walked it through with a real debugger yet
but that feels a bit far fetched
so the "shit" appears, but not connecting or waiting ?
no, the shit does not appear.
people how called pattern which show the way that how to have only one instance of object?
singleton
called I mean the name
oh yes thanks
havn't you heard? there is a witchhunt on for singletons..
allways has been, allways will be..
this.infoArea.repaint();
this.settingsDialog.repaint();
after the "shit" line
until the day we can all spell "always"
8^)=
but that didnt help at all
hehe
i should not ahve come to work today
murphy's law has taken over today
i'm not even supposed to *be* here today!
well, you do dispose on the dialog where you added it..
true, but it the infoArea.append("shit"); should be visible though
and the Networker.Connect(blabjhaha) could take a few seconds
which db connection pool package you are suggest?
dbcp
jakarta apache. as I know
Or a pooling jdbc driver if your database has one.
I want create connection pool and store it in singleton object. my application is servlet based web application?
write=right
making mistakes is the only way you'll learn
well, watching others' mistakes is helpful, too. P^)=
And laughing. Laughing is very useful.
jsr168 anyone ?
MyClass [] myclasses = { new MyClass("foo"), new MyClass("bar") };
but the compiler is complaining
portlets?
yah
oracle has had its way with me for the last 3 days my ass hurts and i still cant figure this out
sounds like you're using them incorrectly…
8^)=
you need a new MyClass[] before your { }
http://www.youtube.com/watch?v=FG_HuFtP8w8
kinda long
but good
"doc, for all the good those suppositories did me, i could've shoved 'em up my ass."
i have followed the docs, but i cant get the edit and help modes to work
Sou|cutter, oof, thanks
strangely I have a hard time remembering that syntax sometimes too
they just dont show up
in my portlet.xml file doesnt do a damn thing
well, try quoting the dispose and see what happens..
as far as i can see there isnt any reason why the append shouldnt work.
so the odds are you just arent seeing it for some odd reason.
Assuming there is space to draw it, so it isnt drawn outside what you see, or something silly like that.. i dunno ^^
How do I use layout managers to have one component take up as much space as possible?
you could try using .setText(), and see if theres a difference.
is it the only component?
no
otherwise I'd use gridlayout
or borderlayout may work for that too
if you were to use gridbaglayout, you'd have to give more info than you have
if you read a tutorial about how to use it, i'm sure it would be obvious
yeah
oi
shall i use jetty or tomcat with wicket ?
jetty with wicket!
i've used both
Jetty++
Hello. I have a question about graphics libraries for Java. Is Java2D the de facto standard for rendering 2D graphics? (And for 3D, what should I use? JOGL?) I have no prior experience with OpenGL.
jetty all the way
hmm, starting to bog down a bit. have 11 progams open, not including services.
11 programs is nothing
I need a bigger monitor here at owkr
as a metric, I mean
I think i found the problem!
it was the .setModal(true);
what on earth
yeah, kind of weird
if anyone has used stripes, can controller handlers be mapped resfully? instead of /controller?action ?
someone if there is something in wicket for javafx support?
restfully* as on /controller/action
uh. no.
i hope, only for now
well, the shit appears now, but still can't get the actionevent appends to work
did you try quoting the .dispose ?
even with the dispose commented out
yeah
how do I draw right up to the border when using a BorderFactory.createTitledBorder
have you tried using setText ?
don't hold your breath
or is the textarea surely big enough to support more than one line ?
WOOUUUH! i saw the text!
yeah
for a tcp socket server, what's the correct way to read in data to a buffer? BufferedInputStream?
it waited with the painting until my connection was established
somehow
yeah, ofcourse, because thats the interface updating thread you are doing stuff with..
it's text
wait for the connection in a separate thread if you dont want to wait
erm, yeah..
yeah
anyway, perhaps i should bug-report or something about the setModal thingie
is a number always odd if its right most bit is one?
depends on the number format
int
yes
oh thats sexy
yes for positive numbers. not 100% for negative
num & 1 != 0
of course, you could just use the mod operator
is cleaner code IMO
it's less "cute", though
-n = ~n +1
s/cute/obfuscated
that trick should always be used with a comment.
if at all, as you imply.
whats ur favorite one liners?
"thats what she said"
"oh snap"
neat, but not terribly useful: x ^= y ^= x ^= y
JavaPosse says we're going to see Java replaced with a bunch of domain specific languages like Ruby.
iirc, you need to use parentheses.
since when was ruby a language ? Do they actually name the bastardisations of perl and python these days ?
in java, at least…
yeah, predicting the future in the IT area is a very reliable thing to do.
(aside of trivialities, such as "computers are going to be much faster in the future!"