[Tinyos-help] Cannot find java and javac - java tools not compiled
Michael Schippling
schip at santafe.edu
Sun Dec 10 11:14:45 PST 2006
Excellent reverse engineering!!
I'm sure there is a good reason for using such a convoluted technique
and perhaps someday someone will figure out what it is...
down the garden PATH again
MS
Mr. Jonathan A. Gomez wrote:
> 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
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
More information about the Tinyos-help
mailing list