I got an unsupported versions error when I tried to run my java program on my jre142 I found that if I compile

pr3d4t0r, you around?

http://pastebin.ca/657887

ojacobson, Thanks. Maybe I just need to review my knowledge about calculus

oooooh, haven't found that one yet

j2se\src\share\native\java\lang\fdlibm\src

any of you guys from california?

Now my goal changed to get the source located. It can be quite useful in the future

right, thanks

select all the libs in the list, click "attach source", choose your src.zip. Poof. done.

yeah, that's nasty.. and probably quite efficient

i would hope so

It's attached. But the functions can't be found. Maybe I should download the jre source instead?

I usually just attach src.zip to rt.jar, but actually if I tell eclipse about a fully installed jdk, it attaches the source automatically

*shrug* i did them all once and it worked, so i just kept doing it

that is scary

welcome to grad-level math

Fanook, link?

"return (x-x)/(x-x);" - oh joy

aditsu, So you mean I should change the jre to the one in jdk?

http://pastebin.ca/657887

you can tell it the path to the jdk, then it will find the jre and the source too

Fanook, looks like a headache

aditsu, Yeah! great! It's found
So actually I don't need the full source

if you want to find the actual asin implementation (in C), then you do need the full source

Can it find the C code?

no, it's a native method in the jvm

I tried to attach jdk-6u2-fcs-src-b05-jrl-22_jun_2007.jar, but it doesn't work as source. Why?

because it's an installer, not a library

Uhhh….So I need to install it? double click?
It's so slow installing
Good! done.
No native code for asin found though. It's nice to get the whole source. Thanks.

it's there. buried, but there

Is there a way to let eclipse api hosting find it?
with F3?

What's up?

no, it's a native method in the jvm

pr3d4t0r, PM?

Sure.

Fanook, you mean it can't be shown in eclipse?

you can view it in eclipse, but eclipse won't be able to find it. any linkages are broken when it hits the native method

I hope it can be linked one day ;-)

also, the directory structure for the vm source is very convoluted, geared towards building it, not for searching it

I guess they need to build part of a C compiler in eclipse in order to make that work.
and link semantics of Java to C…

they have one, the CDT, but it's a plugin for c/c++ development

I heard there is a DrJava plugin for Eclipse

what a silly concept

It's something interactive, for education purposes. I wonder if there is something more powerful

yo

Don't you think it's nice to be interactive when you write programs

that's what unit tests are for

Skinny dude!

no, that smells too much like bluej
~bluej

Fanook, bluej is not an IDE. It is a tool for learning object oriented programming that happens to use java hosting as its langauge

you have a copy of matlab?

No.
I have a scientific calculator, good Math kung f00, and little need for doing lots of math… maybe only once a month or so.
Very few things can't be done with my old and trustworthy Casio 7000G, 1989.

kung foo? o_O

heh
I have a TI-89, it's the end all, be all of calculators

That one does what mine did 15 years earlier. Not bad.

i have one of those, quite nice

assuming you don't punch the problems in wrong, it thinks for you

dan2–

dan2 has a karma level of 7, pr3d4t0r

although, it is not nearly as good as maxima

I haven't ever installed a plugin yet. How can I do it?

that's a question for #eclipse

what was that for?

http://en.wikipedia.org/wiki/Casio_fx-7000G

woohoo, 500 bytes of memory
is that the best you can do

don't push him, dan2

Don't you use eclipse? I guess most people write java in it

yes, i use eclipse, but there's a whole chatroom for eclipse questions.

The programming language is pretty nice and interesting. The calculator uses algebraic notation.

mine does both algebraic and rpn notation
ram and flash in the megabytes
integrated spreadsheets

rpn–
You're missing the point

does it run Oblivion?

I haven't loaded it on therte
there

The point of the calculator is to aid you in problem-solving, not to have it think for you.

yes, and when thinking for you, it reduces the probability of an error in calculation
~pr3d4t0r –

I guess the factoid 'bomb pr3d4t0r' might be appropriate:

~pr3d4t0r–

pr3d4t0r has a karma level of 345, dan2

If you're thinking straight, you'll catch the errors.

we're both engineers right?

Especially if you're an engineer. If you get a motor that has power output instead of input, for example, you realize that you fux0r'd up a - sign somewhere.

you can't try to solve a problem the same way you thought that got you into it

~tell dan2 about STFU.

dan2, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=warning

although, mastering h.264… was big kaching for my rates

Please remember something before you say something stupid: you weren't even born when I was already solving math and programming problems and making good money at it.

Failing that… what does any of this have to do with java?
Take it to pm

sure, and I have no interest of staying in the technology business
I want to start my own ice cream shop
so with all the math knowledge prowess of yours, you should know the limit (technology prices) from 0 to infinity = 0
everything tech depreciates … rapidly

is anyone here using Spring + Tiles 2?

ti calculators do rpn?
I thought ti refused to do rpn…
and why would you use matlab when you have stuff like … maxima…
maxima free, matlab no

hehe. http://worsethanfailure.com/Articles/The-Cool-Cam.aspx

yeah, I read that this morning

they should rename it websitethatfailed

maxima doesn't have simulink

I don't know, do you need it? :p

unfortunately, yes

hi all
~axis

I guess the factoid 'axis presentation' might be appropriate:
http://eugeneciurana.com/musings/JavaInAction.html — check this out.

~struts

progreSSive, struts is is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic MVC design
paradigm. see: http://jakarta.apache.org/struts.

~mvc

progreSSive, mvc is http://ootips.org/mvc-pattern.html. Examples include the SmallTalk libraries and Swing for GUI development and Spring and a multitude others for web applications.

thanks )

tell progreSSive about good job.

http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=knuttz_ueba_19

that link is not loading

Try again, please.

ok, works now. heh, he-he

I'm troubleshooting a DOS that apparently was caused by ricky_clarkson and lunk.

who are they?

pop singers

what, they sing so bad that pr3d4t0r's site hangs?

What are common ways to check if a connection is valid? isValid isn't implemented in the mysql-driver.
Would "select 1;" be too slow?

select first?

'select 1;' ? The from clause is compulsory…

select first from table

Not in MySQL I guess. But anyway, so executing a select before handing out each connection won't slow things down too much?

if it didn't throw an exception, it should be valid

Right.

If getting a connection fails, anyways an exception is thrown…
So why 'test' it?

Because I pool connections.

But even pooled connections are created at some point in time…if any connection is invalid an exception would be thrown at the time of creating the connection pool. Are you using Tomcat's connection pooling.

The connections are valid when created, but if a connection is left unused for a while, it throws an exception next time you try to use it.
isClosed does not detect this

If using oracle, 'select 0 from dual;' is the least expensive statement you can write.

Okay.

eclipse(my) noobish question ? having weblogic do some std io and an simple console client doing some std io as well, eclipse seems to just erase whatever the appserver outputted and put in the clients output … is there a way to duall
wield these swords ?
way to duall wield these swords ?

Erlang sounds german, there's a bad precedent

The console windows are preserved.
So how about 'Haskell'?

JLearn as i said.. noobish heh
indeed they are .. god.. too many buttons here .. good thing this aint a space ship…

Did you get what you wanted?

yea thx

Just fiddling around with it ain't that hard.

hi.. is it normal to make a sessionbean class to implement runnable ?
I want to create a kind of machine performance logger application, using EJB

wtf
youll have to elaborate on that one

any suggestion, please

dude

no its not recommended to make a session bean class runnable since each client will be accessing his own copy of it.

hmm.. my bad..

threading in general is a nono in the container

I see

but what the hell is a "machine performance logger application, using EJB"

Suggestions on what?
Each client will have its own copy. Isn't that enough?
When using a framework its almost always recommended if you don't go on spawning your own threads.

you want clients to hook up to the server, and the server will tell the client how fast the client is ?
JLearn you're a weblogic man too ? 10 ? heh

hmm.. actually I want to create an application which log machine parameters every second

wich parms ?
example

e.g. a genset voltage value (using snmp)

perhaps I better not use framework in this case?

now thats a bit unusual.

so the clients send in these values to the server hosting wich centralizes data in a database ?

correct

thats sounds like a semi valid approach then
but forget the threading .. the container does all the thinking for you

so I just tell the session bean to do the logging every second ? (or perhaps 0.1 second)

but if youre container-noobish .. and this is not a training excersise .. you may wanna spare yourself from the pain of getting to "know" a container …
no the sessionbean is serverside .. it recieves ..

using what kind of API do you plan on using to pull 'genset voltage value' from the client's machine?

you want your client apps to send sample the values and invoke the session bean ..
runtime.exec or jni .. problary the first
is better
blowing the vm up with JNI hosting can be quite … easy

JLearn, snmp4j (snmp4j.org)

hibernate.org is down .. great
anyone with myeclipse 5.5 wanna lend me their hibernate3.jar and cglib ?

perhaps I create a runnable client, which call the session bean, or directly to entitybean to save to database

its antipattern-practise but itll work
but why not have the clients write directly to the database ? how many clients will there be ?

it's only up to 5 clients actually…
so, no need for container ?

id say a big bo
no
too
KISS keep it simple and stupid

kind of not making sense to keep it stupid

Don't think so, looks like an overkill…

so.. I'll put those container away for now

stupid to "smart ppl" .. you know but working .. for every time you got a coupling .. its an oppertunity for your app to break .. so take the shortest distance between A and B … in most cases

/gg

is there a kind of guidance when to consider using application server ?

I had that typoed out

just mentioning that original is "Keep It Simple, Stupid" and not "and stupid" but I guess I just missed the joke

nanotalk yea .. when doing enterprise stuff for some large company who wants to shell out the bucks
jmut .. my mistake lol
omg .. im not going to dwell on that one … makes me look stupid.. i guess

thanks guyz, and sorry for the stupid question

hah .. hibernate in the house … whos house ? runs house! (semi quote Dogma, jason bourne getting out of bus after killing spree)
uhah .. hibernate in the house … whos house ? runs house! (semi quote Dogma, jason bourne getting out of bus after killing spree)/u

hi! I want to write a little 2d-game in java. I already worked with Java2d but i dislike it. Now im thinking of using SDL in java. Do you think this is a good idea? or would you recommend me the GTGE(Golden T Game Engine). Are there any other good options?

echoechoecho…

wow .. im sure very few will have a really good perspective on that here ..
mc__ whos your target group ?
commercial or educational ?

fun

Look into JOGL and Java 3D

a 2d game

2d is a subset of 3d

yeah i know
but those 3d stuff is more complicated

What don't you like about Java2D?

its verbose,and very low-lewel
SDL which is plain old c is more high-level.

AFAIK every 3d has a inbuilt API for 2d. You don't need to get your hands dirty with 3d if you don't want to.

can you call portlet servers like gridsphere as J2EE ?

mc__, I've been looking into making some small stuff with Java2D and Scala. You could build on top of Java2D to make it higher level and less fussy, and use Scala to avoid Java's verbosity.

yeah building on topf java2d(but without using Scala) was my first try
but i ended up with about 6000 lines that did no really belong to my application,a bad implementation of a simple 2d engine,i just thought there got to be something better out there already
and 6000 lines are A LOT for a newbie like me

6000 lines is way too much for anything, are you sure you didn't try to build the ultimate 2D engine on top of it instead of just a minimal framework to do what you need?

i tried to build a solid framework

Is tomcat not considered as a J2EE server ?

the code had quite a lot of duplication in it…it was bad

Tomcat is not an app server.

but does tomcat comply with J2EE standards ?

can I still use java debugging/profiling tools with Scala?

Well, it's an app server of sorts. It's just not a fullblown j2ee app server.

Yes, its a complaint J2EE web container.

mc__, I don't know really. It compiles to plain .class, there are plugins for some IDEs, so maybe.

Profiling will work as per normal with Scala. I think Scala has some specific debugging support - don't know if it works with the normal debuggers, almost certainly won't work out of the box with those included with most IDEs.
My tentative experience is that when you're working really closely with a Java API, Scala doesn't reduce the verbosity as much as you'd like.
Also, the plugins for some IDEs are shit.

just wondered if gridsphere (a portlet container) complies with J2EE standard

Perhaps.

The only plugin I've seen that was appreciably better than just syntax highlighting was IDEA's, and I gave up without getting it to work.

Sorry, no idea.

I use Emacs for the little Scala stuff I do, so I don't ask for too much in that department.

(They also appear to have stopped development on it)

ok thanks JLearn

Regarding verbosity of the Java class library, I'd build a thin layer on top of Java2D.

Mm, yes. That's probably the way to go. But it can't be *that* thin if you want it to do what you want and reduce verbosity at the same time.

how can i find the default min and max perm size on my machine; i.e. exactly what figure it is using right now; i'm getting java.lang.OutOfMemoryError: PermGen space with eclipse so trying to find out what to set JAVA_OPTS to

Anyway, I'm not arguing against the use of Scala (Although I did recommend we not use it on the current work project. ), just pointing out it's not a magical solution which will make everything better.

True enough

I think it standardises to a maximum of 64MB.
And you end up having to abandon a lot of the tools which make writing Java tolerable.

I thought it was a percentage or a constant depending upon the size of the percentage.

Hm. Well, you sound better informed than me, so I'll take your word for it.

I got that info from cheeser and another dude on here a week or so back.

It's probably true then.

anyone of you tried GTGE?

might be a tad bit unrelated, but does anyone know where i can find a debian package of maven 2.0.5

Yeah I was just hoping that there would be a log file somewhere but probably not.

no, but I know where you can find 2.0.6
"deb http://people.debian.org/~mkoch/maven2/ ./"

wlfshmn, yea so do i .. but it is bugging with some ejb stuff..

the maven version is, or a plugin is? I've had to downgrade plugins before, but never maven proper

wlfshmn, apparently the maven version…

bummer

yea..
oh well i guess ill just install it the non-debian way..

I just wish that guy would upgrade to 2.0.7

yea i should try 2.0.7 perhaps.. to see if it has resolved the bug..
2.0.7 seems to have resolved that bug

good good.. still means we have to wait for a new version of that deb form mkosh though

yea that is true..

I poked him about it via that blog jsut now, and we'll see if he has time ,)

sounds perfect

the debian ITP for maven2 has been open for over 2 years unfortunatley ,)

I got an unsupported versions error when I tried to run my java program on my jre1.4.2 I found that if I compile with javac -source 1.4 it works fine. What I don't get is this: If it compiles with and without the -source 1.4 why is it only working when I define the source as 1.4?

last statement is frmo march, saying "we are working on it" more or less ,)
If you compile without without explicitly -target:ing 1.4, on a JDK newer than 1.4, the result will not run on 1.4

oh well at least it pretty simple to maintain it manually…

yes, I know. But that is "target" not "source"

yeah, but it's nicer to have the toolchain managed by debian

yea ofc…

are you specifying the target parameter at all? I suspect it implies -target
s/it/-source/

no, I'm not using the target. It's not needed to make it work

compile on 1.5, using -source 1.4 implies target 1.4, ie, the result works on 1.4 and 1.5. compile on 1.5, not specifying -source or -target implies -source 1.5 which implies -target 1.5, which will work only on 1.5

Ok, I see. But, if I compile with -target 1.4 (not specifying source) it still does not work on my 1.4
but it compiles fine

hmm,. that is more confusingI must admit..

Are you sure of what you said before?

no, I assumed that -source implies -target

i need to connect to a database on my server, but i am getting a ClassNotFound exception for the database driver class. if i run a program through the console, it runs fine. what might be the problem?

dotn do database connections in jsp ;-)
but if you insist make sure your app server has access to the driver..

what variable do you have to set so that the server knows where the driver is

no. don't do database connection in jsp.
that's just bad practise. sort that out. then secondly, are you using datasource or drivermanager?

g[r]eek: ok, i ws just trying to have a live demo of working with a daTAbase actually. and i had a jsp file for working a database, so i wanted to see how it works. i think datasource

do you know how to program servlets?

g[r]eek: no
g[r]eek: i get a classnotfound exception. org.postgresql.Driver? is that wrong?

"i think datasource" - can you make sure

Hello.

yeah your datasource descriptor is probably not configured

g[r]eek: well, here u go: /usr/lib/jvm/java-1.5.0-sun
oops just a min

Does anybody know how I can setup netbeans 5.5 to use java 1.6 source level
I have Java6 installed, and want to use Deque, but Netbeans keep underlining the lines in red.

#netbeans

g[r]eek: javax.servlet.jsp.jstl.sql.dataSource

How do I go about to use Struts in Eclipse? I'm currently not able to create any web projects… (googled without luck)

g[r]eek: ok

~tell bendahmon about struts

bendahmon, struts is is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic MVC design
paradigm. see: http://jakarta.apache.org/struts.

firstly, it's javax.sql.DataSource;

g[r]eek: alright.

heh, fellows. what's the opposite of preliminary?

secondly, just because you can connect to your psql database from command line (which means it's installed correctly) isn't enough. you still need to configure your java code to know how to connect to it. since you're using DataSource, you'll need a descriptor

g[r]eek: and?

g[r]eek: plus i think i have the class name for a Drivermanager: it is org.postgresql.Driver

you should use DataSource anyway.
is this a webapp? will there be multiple users? then use datasource
~tell paritosh about DataSource

paritosh, DataSource is an alternative to the DriverManager facility. A DataSource object is the preferred means of getting a connection. For a useful guide, see: http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/getstart/datasource.html - For the latest API documentation, type ~javadoc datasource

g[r]eek: thanks

read that first link. it explains quite a bit. if you get stuck along the way, come back here.
and what?

g[r]eek: Well, that didn't tell me anything new (as far as I can see)

ask a vague question expect a vague answer. "I'm currently not able to create any web projects" doesn't say much. also, try ask in #eclipse.

g[r]eek 3

what catagory of things are put in SwingUtilities.invokeLater, are they GUI related or task related?
what determines if a thread started from the main thread ends
is it after the course of run() is done?

invokeLater: gui stuff
themime, not time

~Threads and Swing is A useful article on threads and swing is available here: http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html

I already have a factoid with that name, g[r]eek

~threads and swing

g[r]eek, threads and swing is http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html or http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html

ah ok
read those

when run is done the thread is done. You can also use join() from another thread if you want to wait for that to happen

actually, before i waste time with this, what i'm doing is making a server/client deal, i have the server create a thread for each connection; im not worried about the overhead cause i don't expect more than 3-4 people at a time. that works, but the thing im trying to do now is get the client
to receive basic messages from the server. if i want the client to be able to do other things while its also waiting for input, do i need to wait f

input in another thread?

considered using a Timer?
mixed with invokeLater?

i just read about SwingWorker, is that related to it?
ah, and Timer

another meaning? not *which* thread?

SwingWorker is not necessary, you can make your own thread or executor
but you can use it if you want
I don't really see how a timer would help here

well, i tried to make my own thread, its not even reaching the while loop i have set to recieve input

are you starting the thread?

yes

does it reach the first line of its run method?

yes

well, debug it then

erm, well
bah, its so ugly right now. i have a MVC pattern set up, and i have the controller (which has-a networkcontroller which has-a networkconnector), the networkcontroller has the loop in it, it was in a run()
and the controller i made a thread and .start()'d
hmm, im ganna rework it, ill be back in 5 minutes
ive been playing with it a while, the position its in right now would appear really silly, sooo…ill be back

~javadoc printwriter

I don't know of any documentation for printwriter

(ignore)
~io

g[r]eek, io is http://java.sun.com/tutorial/essential/io

I'm starting to really go off generics.

hmm?

g[r]eek: Just looking at the new Jung2 API which has been fully generified.
g[r]eek: It's mindbogglingly ugly.
Some of that isn't so much generics as trying to fake functional idioms in Java, but still. :-/

jung2. interesting name.
a move by the name of Blow comes to mind
*movie

~jung

DRMacIver, jung is the Java Universal Network/Graph framework, a very powerful library for manipulating and visualising graphs in Java. See http://jung.sourceforge.net/

jung2 is the version they're updating to take advantage of Java 5 features.

Has anyone done any kind of Ajax system in Java that makes everything synchronous ?
In class one I want to do getSomething() which then calls getSomething() in class two, which calls getSomething() in class four, which then does an asynchronous Http Request which is being performed in a seperate thread.

~networking

themime, networking is http://java.sun.com/tutorial/networking

How do I get the result all the way back down the heirarchy
without locking the system up in a while loop or something
I know how to do a Http Request. I just need to think about the asynchronous side of it
This is in j2me

actually, that was for me
i need to check something for myself =P that was easier than googling

Can't detect initial thread stack location ——- how can i get rid of this warning (i run javac linux via the freebsd linux emulation layer)

ah ok heh

seen this btw? http://forum.java.sun.com/thread.jspa?threadID=542672&messageID=2634141

Hm. That's a really intriguing warning message.

i get it both when compiling and running, and it's only hello world

Sorry, no idea what it means. It's just intriguing.

why not run the FreeBSD version?

building the freebsd version depended on javac from the linux-emulation

hmm, there still are no binaries?

It means you're running the Linux java, and that linprocfs is not
mounted.
that's apparently a fix

oh i see, thanks

hi all
does anyone here ever have used Sun's SyndFeed for RSS??
?

Is there a place where I can get information regardeing jre version usage. How many people uses 1.4.2 and how many migrated to 1.5

oh, turns out, my whole problem was cause the server needed to flush()

"don't forget to flush()"

i think it was a mess, and i just cleaned a few things up here and there and its came in sync (no java pun intended)
it came*

what about 1.6 Mc_Fly

:-)

I'm getting this error java.lang.RuntimeException: Could not resolve beanClass method from proxy call. What could possibly determine it?

http://pastebin.com/m550ce1d

I'm getting this error java.lang.RuntimeException: Could not resolve beanClass method from proxy call.

and you think by asking the same question twice you get more answers?

I just can't figure out if most people are sill stuck with 1.4.2

i'm currently having to use 1.3.1

most people will already use java5
besides those few forced to use something old because of some special old code etc.
you know, java5 came out quite some while ago already

Most people are on Java 1.5.
A few on 1.4.2.

 PHP 5 Web Hosting | PHP 5 Hosting

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Leave a Comment

You must be logged in to post a comment.


Blog Tags:

Similar posts: