On Friday 08 December 2006 15:34, Michael Schippling wrote:
> That's....odd. I wonder if rpm is trying to use some (stupid)
> java control panel app to find the programs. In any case it
> should be possible to go back and manually make the tools
> directory after the smoke clears.

Looking at the package, there is a script called locate-jre ( 
tools/scripts/locate-jre ).  Perhaps this is used to locate the JDK?

As far as I can tell, if it detects cygwin (using uname), then it uses 
the registry to find java:

Here's the excerpt of the script:

case `uname` in
  CYGWIN*)
        # Hopefully this will always work on cygwin with Sun's Java
        jversion=`regtool -q get '\HKLM\SOFTWARE\JavaSoft\Java 
Development Kit\CurrentVersion'`
        if [ $? != 0 ]; then
            exit 1
        fi
        jhome=`regtool -q get '\HKLM\SOFTWARE\JavaSoft\Java Development 
Kit\'$jversion'\JavaHome'`
        if [ $? != 0 ]; then
            exit 1
        fi
        jhome=`cygpath -u "$jhome"`
        ;;

-- tinyos-1.1.10Jan2005cvs-1.noarch.rpm (inside: 
opt/tinyos-1.x/tools/scripts/locate-jre)

I'm thinking it might be expecting WINDOWS-style Java to be installed, 
based on the registry use and the reference to JavaSoft.  You could 
theoretically fill in the registry values or (see below) perhaps 
extract the files without using rpm and fiddle with the scripts.

If you'd like to extract the files, to look at them, you might be able 
to get away with using rpm2targz to convert it to a tar archive (don't 
know if it runs on cygwin).  See 
http://www.slackware.com/config/packages.php



I neither use CYGWIN nor RPMs, so I may be wrong.
-- Jon.

P.S.: Grep gives: 
tinyos-1.x/tools/java/jni/Makefile:JAVAC_DIR=$(shell ../../scripts/locate-jre 
--javac)

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to