[Scilab-Dev] Another reason for message "Scilab cannot create Scilab Java Main-Class"

Torbjørn Pettersen top at tpett.com
Fri Jan 2 09:10:06 CET 2009


Yung-Jang Lee skrev:
>
>
>     Under Windows XP, and with Scilab 5.0.3 I've never experienced
>     that scilab failed to start from the directory C:\Documents and
>     Settings\Torbjørn Pettersen\My Documents\scilab
>
>
> Can you check your SCI and TMP variables
>
> SCI
> getenv('TMP')
>
> to see if Windows's short name make 'ø' hidden.  If this is the case, 
> then change 'Torbjørn' to 'Tørbjorn' may produce the error message.
Yes you are right in that the short name hides the ø letter..
     SCI  =  C:/PROGRA~1/SCILAB~1.3  
and
     getenv('TMP') returns  C:\DOCUME~1\TORBJR~1\LOCALS~1\Temp  


I opened a cmd shell and ran
    md c:\æøå
    set TMP=c:\æøå
and started scilab from this shell:
    "c:\Program Files\scilab-5.0.3\bin\WScilex.exe"

Scilab starts without problem and getenv('TMP') returns c:\æøå as it should.
So does the TMPDIR variable (  c:\æøå\SCI_TMP_3860_ ).

The fun part is that running  chdir(TMPDIR)  works:

-->TMPDIR
 TMPDIR  =
 
 c:\æøå\SCI_TMP_3860_  
 
-->chdir(TMPDIR)
 ans  =
 
  T 
 
-->pwd
 ans  =
 
 c:\æøå\SCI_TMP_3860_  
 
BUT this command does not work:

-->chdir('c:\æøå\SCI_TMP_3860_')
Can't go to directory c:\æøå\SCI_TMP_3860_.
 ans  =
 
  F 
 

-Torbjørn.

>
>  
>
>
>     However, the bug http://bugzilla.scilab.org/show_bug.cgi?id=3089
>     is still present in version 5.0.3, but from the comments in
>     bugzilla it seems to it may be fixed for higher versions of Scilab.
>
>
> This bug should already been fixed in current GIT master 
> http://gitweb.scilab.org/?p=scilab;a=commit;h=08c6212e3b3579343a63d53d2fc073bc84bcb6ec
>
> Yung-Jang Lee
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090102/604d613b/attachment.htm>


More information about the dev mailing list