----- Message transféré ----
De : mejda chouaieb <[EMAIL PROTECTED]>
À : Urs Hunkeler <[EMAIL PROTECTED]>
Cc : [EMAIL PROTECTED]
Envoyé le : Mardi, 21 Août 2007, 10h57mn 30s
Objet : Re : Re : Re : [Tinyos-help] Exception in thread "main" !!!!


Hi,

When I type « uname » :
CYGWIN_NT-5.1
if I execute:
regtool -q get '\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development
Kit\1.5.0_11\JavaHome' 
I get :
1
You told me I should get the correct path to my JDK installation.But this is 
not the case!!
How can I check my registry settings (How can I modify the JavaHome registry 
key to point to the correct path?).

Thank you

----- Message d'origine ----
De : Urs Hunkeler <[EMAIL PROTECTED]>
À : mejda chouaieb <[EMAIL PROTECTED]>
Cc : [EMAIL PROTECTED]
Envoyé le : Mardi, 21 Août 2007, 8h36mn 07s
Objet : Re: Re : Re : [Tinyos-help] Exception in thread "main" !!!!


Hi,

I take it the value of the registry key
\HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion
is 1.5.0_11 ?

If so, let's do this step by step. It looks like tos-locate-jre is not
able to find the JDK. Maybe look at the source of the script
tos-locate-jre, it's not too difficult to understand.

First, this script tries to determine your operating system with a call
to uname (search for uname to find the line in the script where it does
this). If you just type "uname" in a cygwin terminal, what is the exact
output? According to the script, it should start with "CYGWIN".

If it does not start with CYGWIN (or if the case of the letters is
different), we need to find a fix. For instance you could modify the
script by prepending a case statement with your platform name before the
CYGWIN case statement.

If it does indeed start with cygwin, then the next few lines are
important. What do you get, if you execute:
regtool -q get '\HKLM\SOFTWARE\JavaSoft\Java Development
Kit\CurrentVersion' ?

You should get "1.5.0_11". If not, check your registry settings again.

What do you get, if you execute:
regtool -q get '\HKLM\SOFTWARE\JavaSoft\Java Development
Kit\1.5.0_11\JavaHome' ?

You should get the correct path to your JDK installation. If this is not
the case, check your registry settings (you'd probably have to modify
the JavaHome registry key to point to the correct path).

If you get a path, make sure it is in DOS format (not unix format), ie.
something like "c:\java\jdk1.5.0_11". Make sure that this is really
where the JDK is located.

If it still doesn't work, make sure you write the output of all
individual steps to the mailing list so we can help you further.

Cheers,
Urs


mejda chouaieb schrieb:
> Hi,
> if I execute "tos-locate-jre --jni"
> 1/bin/java: not found
> Java not found, not installing JNI code
> 
> 
> the current version of my the JDK :
> \HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.5.0_11
> 
> and I added "\HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.5.0_11\JavaHome" 
> in my regedit, but I still have the same problem!!
> 
> PS: I'm just dealing with TinyOS, so every thing is new for me, Thanks for 
> understanding.
> 
> ----- Message d'origine ----
> De : Urs Hunkeler <[EMAIL PROTECTED]>
> À : mejda chouaieb <[EMAIL PROTECTED]>; [email protected]
> Envoyé le : Lundi, 20 Août 2007, 16h20mn 33s
> Objet : Re: Re : [Tinyos-help] Exception in thread "main" !!!!
> 
> 
> Hi,
> 
> tos-install-jni uses tos-locate-jre to find the location of the JDK
> installation. What do you get if you execute "tos-locate-jre --jni"?
> 
> tos-locate-jre uses values from the windows registry. You should find
> the current version of the JDK under this key:
> \HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion
> 
> The path to the JDK installation should then be in this registry key
> (replace '$jversion' with the value you found in the previous key.
> \HKLM\SOFTWARE\JavaSoft\Java Development Kit\'$jversion'\JavaHome
> 
> If you can't find the above registry keys, you'll have to create them.
> 
> Cheers,
> Urs
> 
> PS to the TinyOS community at large: Maybe the tos-locate-jre tools
> needs to be updated to cope with new/different JDK versions on Windows?
> 
> mejda chouaieb schrieb:
>> Hi,
>> When I type  "tos-install-jni" :
>> 1/bin/java : not found
>> Java not found, not installing JNI code


      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail


      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

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

Reply via email to