View Single Post
  #1   (View Single Post)  
Old 29th July 2008
incripshin incripshin is offline
New User
Join Date: Jul 2008
Posts: 5
Default Problems running jdk-1.7

I just installed jdk-1.7, but it doesn't quite work. I have /usr/local/jdk-1.7.0/bin in my PATH. When I run java or javac, I get this:

$ javac
Error: could not find
Error: Could not find Java SE Runtime Environment.
If I give the full path to the binary, it runs fine. is located in /usr/local/jdk-1.7.0/jre/lib/i386/ I tried adding it to the arguments sent to ldconfig, but all that happens is this:

$ sudo ldconfig /usr/X11R6/lib /usr/local/lib /usr/local/jdk-1.7.0/jre/lib/i386
$ ldconfig -r | grep jdk
        search directories: /usr/lib:/usr/X11R6/lib:/usr/local/lib:/usr/local/jdk-1.7.0/jre/lib/i386
Anybody have better luck than me?

Last edited by incripshin; 29th July 2008 at 04:46 AM. Reason: /* way better title */
Reply With Quote