Help - Search - Members - Calendar
Full Version: Gentoo $PATH problem [solved]
MandrivaUsers.org > Advanced Topics > Other Linux and Unix Distributions
mystified
I'm trying to install the linux drivers for my Belkin UPS and I get the following:
CODE
localhost Bulldog_v2_Linux # sh setup_console.bin
No Java virtual machine could be found from your PATH
environment variable.  You must install a VM prior to
running this program.


I have blackdown-jre installed and I know it works. My path to java-vm is /opt/blackdown-jre-1.4.2.03/bin/ and java_vm is there. I tried adding it to my .bashrc but that didn't work. Any suggestions?
iphitus
try the official java version from sun for maximum compatability rather than blackdown.

James
Soka
Did you relogin after changing the ~/.bashrc file?
You could also try exporting the path variable.

CODE
export PATH="${PATH}:/path/to/java"
Greg2
I agree with iph, I think you should install Sun java for this to work properly.

To source your blackdown do
CODE
PATH=$PATH:/opt/blackdown-jre-1.4.2.03/bin
then you shouldn't need to solve the NUT thread. smile.gif
mystified
Thanks but I already tried that and it didn't work. Which is why I'm trying nut.
tyme
QUOTE (mystified @ May 4 2007, 04:34 PM) *
Thanks but I already tried that and it didn't work.
Tried what? There are at least 2, if not 3 (depending on how you count), suggestions posted here...which ones did you try that didn't work?
mystified
I set the $PATH and it worked fine. But then I got another error which I googled and gooled and could fine no solution to. The thing that came up the most was that it was a corrupted download. So I tried downloading it 2 or 3 times and still had no luck. Which is why I just decided to try nut.
mystified
Ok, a nut developer explained to me that there is a problem because my UPS is so new and the driver won't work.

So, here's where I'm at with the Bulldog software
CODE
localhost Linux # sh setup_console.bin
Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX


And I switched to Sun.

I know this isn't a corrupt download because I copied it all from the install cd. The reason I can't use the install cd is because it has java on it but when I try to run the setup script it says permission denied for the java.

I already called Belkin and they told me they had no linux users so they couldn't help me! wall.gif

Any ideas?
Greg2
QUOTE (mystified @ May 7 2007, 04:37 PM) *
I already called Belkin and they told me they had no linux users so they couldn't help me! wall.gif

Well that's not true, what about Ian? biggrin.gif

Anyway, I've found that Gentoo does many things differently then I'm accustomed to doing them. That said, I can only tell you to check that you have configured your vm and set your CLASSPATH as per config virtual machine...
and give me the link to the setup_console.bin so I can check it and perhaps rewrite it for you.
mystified
Well hopefully I won't have to worry about it. The nut developer came back with a fix. I don't understand all of it yet so I had to ask some more questions but he told me they would provide support until I get it working. Fingers crossed!

Edit: I just saw that last part. I did set up my vm according to the Gentoo doc you linked too. And I really appreciate the offer.
ianw1974
I haven't done mine yet. I'm still meant to get the belkin software installed, but I don't want to do it remotely in case it borks the server. Then I've got to get a plane to the UK to fix it!

But I will do it, probably sometime in July/August.

I've never had to add java to the path, because it's always put links in /usr/bin or whatever when I've installed them. Even on Solaris. If you type:

CODE
java -version


what do you get?
mystified
CODE
mystified@localhost ~ $ java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)
ianw1974
Going by my Lotus Notes 7 install, which is java-based:

CODE
com/zerog/lax/LAX


this is what you're getting from the error in running the bin file. I would be tempted to do this:

CODE
updatedb
slocate com/zerog/lax/LAX


and if no results come back, then this doesn't exist on your system. If it does, then whatever the directory is:

CODE
export CLASSPATH=/wherever/to/com/zerog/lax/LAX


however, you might need to just have the path to the main directory where com/zerog/lax/LAX exists, and not append this to the line like I have. I've not tried this, but this is where I would start. Either that, or the package you've downloaded doesn't have it within it. As normally, it should download and install and run fine. But I haven't looked to find out what the requirements are in the documentation for it.
mystified
One of the first things I did was updatedb and try and locate zerog and I get no results.
ianw1974
I've just been checking what I've downloaded, and I've downloaded something different and not the binary file. Maybe this will work better for you. All it asks to get it installed from this is to run:

CODE
./install


so I think maybe this is a better one to use than the one you're using. Mine is v3.01.18 from what I've got here, and I downloaded the tar file. Of course, make sure this will work with your UPS.
mystified
I googled for that and couldn't find an actual download page for it. I do remember trying one with an ./install but ran into an error message. Don't know if its the same.
ianw1974
If you still have it, try it again, so we can see what error you got. I might even try this on my gentoo system at work. Whilst I've not got the belkin, I can at least see and get it working for you in terms of software.
mystified
Ok, I had responded to this and my post disappeared! I couldn't find the actual download for that version. I found the Belkin page where it says it's available but not a place to download. I think I remember trying one of them that had an install script and got an error message but I could be wrong. But I'm still working with the NUT developer and we're making progress so I really hope I won't need it. And forget about calling Belkin. I did and they said nobody knows anything about linux! wall.gif

Thanks for the offer ian! 2thumbsup.gif
mystified
Well with more hassle and two days of work with a nut developer I am happy to say it is working!
ianw1974
What did you have to do to get it working with the nut developer? I'd be interested in case I come across this trying to get it working for my father!
mystified
Well the problem is that my UPS is so new that none of the UPS monitoring programs for linux have drivers which is why I couldn't get it to work. I was using the belkinunv driver which was supposed to be for belkin. Fortunately this guy new Gentoo very well. He had me download files in a manner via clii that I've never even seen before (I use wget) and it downloaded a folder called trunk. Inside were files that had to be compiled together to make a driver. So he had me get my nut tar.gz from /usr/portage/distfiles and move it to home. Then I had to untar it, add those two files to the drivers folder and retar it. The we had to do a user portage_overlay which you may be familiary with, I was, but I'd never had to do one before. So then I moved the nut tar into the new directory I'd created and emerge it. The UPS recognized the drivers and it started working. Except nutmon which is the monitorying device. I kept getting weird error messages in my syslog that didn't make sense so it would shut itself down. He'd never heard of it before but he told me we'd figure it out or he would go to the rest of the nut development team to find an answer. Eventually through trial and error we found out the problem. Restarted upsmon and now it's just working. This morning he sent me a long email with lists of all kinds of things telling me how to use it. He is so nice and he went so much out of his way. I'd never have gotten it to work without him. Trust me!
ianw1974
Hopefully mine will be straightforward and not have any of these problems. Else I'll need all the step-by-step instructions from you!! smile.gif
mystified
I'd be happy to help out. But I do have the nut developers mailing list and if they're anything like the guy I worked with they should be very helpful.
ianw1974
Keep the guy's name who helped you, and I'll let you know if I need help. I'll try it in a bit today, see what happens.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.