Koozali.org: home of the SME Server

Probs with installing Java

gmbowen

Probs with installing Java
« on: March 29, 2004, 03:31:18 AM »
Okay, I'm stymied. Now first, I'll admit to being both a linux and a server newbie, but I'm quite computer literate otherwise and can play with code in wee bits etc....so, why can't I get java working on SME6? {{and, to counteract my newbieness, I've had a computer science graduate helping me with this and he's stymied too}}

I installed both J2RE & J2SDK as instructions here said to.

But, cannot "run" either java or javac at the command line (either at root, or in the /usr/java/bin directories where I can find the files).  

I've spent hours searching this site, and the web, to figure out what I've done wrong. If it was a path problem then I should still be able to run java from the directory with the binaries. Is there something more than typing java<ret> or javac<ret>?? I've set permissions to 755 too (altho I wasn't sure that was necessary).

I want to use it to run drawboard (at drawboard.sourceforge.net) at a non-commercial site designed for kids working on school projects. Any help would be appreciated.

mike bowen
lakehead university

Offline smeghead

  • *
  • 563
  • +0/-0
Probs with installing Java
« Reply #1 on: March 29, 2004, 05:20:56 AM »
.. at the risk of stating the obvious (to those familiar with linux :-)) when you try to fire up java from /usr/java/bin directory make sure the command you use is ./<command> if the binary is in the current directory; the search Linux/Unix undertakes for a program is very different from DOS/Windows.

HTH
..................

gmbowen

Probs with installing Java
« Reply #2 on: March 29, 2004, 09:00:10 PM »
Oh for crying out loud. You are, of course, bang on.....worked like a charm did that piece of advice. If you had ANY idea how many DOZENS of hours I've spent on this (loading and reloading JRE, reading websites etc).....and us profs have loads of spare time at this time of year don't we? LOL. Thanks very much. Why I didn't know this is easy to figure out....why my computers science grad (who has been a whiz at programming php and javascripts for me) didn't is a different matter. Hmmmm. Oh well.

You'd be amazed at how little this is talked about in forums etc.....one of those learning curve things I guess (and not one I'll forget). Thanks smeghead....your comments elsewhere in this forum have been helpful to me too, but this one is priceless.

I thought, for the record, that not being able to run it was one of the "quirks" of SME (like .htaccess not working for instance) for security reasons or something. {{sheepish grin}}

mike b
lakehead univ