I have some thoughts, and some suggestions. But I haven't satisfied myself with my research yet.
> Jon Gomez sent an analysis of the find-java issue recently. > ... [It] is supposed to find the java install, but uses some > new-fangled nefarious route instead of just following the PATH. I looked over the script some more. It looks like the detection method is system-dependent, and the method differs in Linux. My previous advise only applies to Cygwin, I think. In Linux, the script does search the path using the 'which' command. If that fails, it uses the 'rpm' command to query various possible packages for the location. I omit these. You should look at the script for yourself to decide on these. Then it looks for a place to put library files for JNI in hard-coded relative paths. I checked, and I don't think this is a problem for you. But you might want to look at the script. In passing, I note that Daniel Goertzen wrote a patch to the script for gentoo in 2.x. But I don't think this will be useful either. He does note, though, the location in 2.x as being in tools/tinyos/misc. (It changed). You can find it in the CVS for reference purposes. I think a previous email may explain what is going wrong. David Gay writes: > rpm scripts run in an environment where most user customisation is > ignored (for good reason, if you think about it). Chances are good > that javac is not in the path when the rpm scripts are run. Sounds like a problem. I don't know much about RPMs myself-- I am studying them right now. Assuming that the problem has to do with the RPM mechanics (perhaps too big an assumption), you still have options of things you might do to try to fix the problem. Pending further research, I am rather unsure of them. 1) You might try using one of the RPM versions of java mentioned in the script. 2) You might try running the script by hand, modifying it, or just doing its work manually. (rpm2cpio or rpm2targz or such tools might help here to unpack the rpm without installing it). Doing it by hand is probably easier than you think. Looking at tos-install-jni, I think you just really need to copy the appropriate files into the java library path. I have previously described how to query this path, although you might be able to guess it. See [4]. ---------- Threads / References: [1] "Re: [Tinyos-help] Cannot find java and javac - java tools not compiled" [2] "[Tinyos-help] tinyos-2 gentoo linux java detection bug (w/patch)" [3] "Re: [Tinyos-help] Cannot find java and javac - java tools not compiled" [4] "[Tinyos-help] Re: Getting Data from Tmote Sky's Sensors" Good luck, Jon. _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
