[Scilab-Dev] setlanguage
Yung-Jang Lee
yjlee123 at gmail.com
Tue Aug 5 13:22:52 CEST 2008
Hi,
I use the VC++ debug to trace the code (SVN source). It's function
'createMainScilabObject' that generate error.
Variable 'ScilabObject' return 0x0000000. Other variables (cls,mid) are
valid, and ScilabMode=2 .
Hope this can help.
-----------------------------------------------------------------------------------------------
BOOL createMainScilabObject(void)
{
BOOL bOK = FALSE;
JNIEnv * currentENV = getScilabJNIEnv();
if (currentENV)
{
jclass cls=NULL;
cls = (*currentENV)->FindClass(currentENV,
"org/scilab/modules/jvm/Scilab");
bOK=catchIfJavaException(_("Could not access to the Main Scilab
Class:\n"));
if (cls)
{
jmethodID mid=NULL;
mid =
(*currentENV)->GetMethodID(currentENV,cls,"<init>","(I)V");
bOK=catchIfJavaException(_("Could not access to the constructor
of the Main Scilab Class:\n"));
if (mid)
{
jint ScilabMode = getScilabMode();
ScilabObject =
(*currentENV)->NewObject(currentENV,cls,mid,ScilabMode); //<----ScilabObject
return 0x00000
/* Catch the exception and display an human-reading error
message
*/
bOK=catchIfJavaException(_("Could not create a Scilab main
class. Error:\n"));
}
}
}
return bOK;
}
-----------------------------------------------------------------------------------------------------------------
YungLee
2008/8/5 Yung-Jang Lee <yjlee123 at gmail.com>
> Hi,
>
> I restart my machine (WindowsXP) , edit the file as you tell me and launch
> Scilab.
>
> The error message is the same.
>
> And then I copy thirdpady and java/JRE from Beta4 binary to SE-trunk-26414
> binary, and launch Scilab.
>
> The error message still the same.
>
>
>
>
> YungLee
>
> 2008/8/5 Allan CORNET <allan.cornet at scilab.org>
>
>> Hi,
>>
>>
>>
>> Can you try this with your svn version or nightly build:
>>
>>
>>
>> Please verify that you don't have a scilab process and
>>
>>
>>
>> Edit file : <SCI>/modules/jvm/etc/jvm_options.xml
>>
>>
>>
>> Line 23 : replaces <jvm_option string_option="-Djava.compiler=JIT"/> by
>>
>> <jvm_option string_option="-Djava.compiler=NONE"/>
>>
>>
>>
>> Save file
>>
>>
>>
>> Launch a new scilab.
>>
>>
>>
>> Always same error ?
>>
>>
>>
>> Thanks for your help
>>
>>
>>
>> Allan CORNET
>>
>>
>>
>>
>>
>> *De :* Yung-Jang Lee [mailto:yjlee123 at gmail.com]
>> *Envoyé :* mardi 5 août 2008 11:32
>>
>> *À :* dev at lists.scilab.org
>> *Objet :* Re: [Scilab-Dev] setlanguage
>>
>>
>>
>> Hi,
>>
>> I have download nightly build and install to two machines , but the error
>> messages are exact the same as the one I build from source.
>>
>> I also check to run ScilabBeta4 and it still running in my machine.
>>
>> It looks like there are some errors in the new Windows prerequirement.
>>
>> YungLee
>>
>> 2008/8/5 Allan CORNET <allan.cornet at scilab.org>
>>
>> Hi,
>>
>>
>>
>> Can you try with a nightly build :
>> http://www.scilab.org/download/index_download.php?page=nightly_builds
>>
>>
>>
>> May be, you can do a full clean of the VS solution and build.
>>
>>
>>
>> I checked on Win2k, XP, & vista and I cannot reproduce your problem.
>>
>>
>>
>> Thanks you
>>
>>
>>
>> Allan CORNET
>>
>>
>>
>>
>>
>> *De :* Yung-Jang Lee [mailto:yjlee123 at gmail.com]
>> *Envoyé :* mardi 5 août 2008 08:24
>> *À :* dev at lists.scilab.org
>> *Objet :* Re: [Scilab-Dev] setlanguage
>>
>>
>>
>> Hi,
>>
>> I update the prerequirement on Windows, copy contains under Windows
>> directory to scilab root and rebuild Scilab 5. But an error occurs during
>> Scilab startup :
>>
>> "Scilab cannot create Scilab Java Main-Class(we have not been able to find
>> the main Scilab class. Check if the Scilab and thirdparty packages are
>> avaiable.)
>>
>> Any suggestion to resolve it ?
>>
>> Thank you in advnace.
>>
>> YungLee
>>
>> 2008/8/4 Allan CORNET <allan.cornet at scilab.org>
>>
>> Hi,
>>
>>
>>
>> I added possibility to set your default language in scilab.
>>
>>
>>
>> Example :
>>
>> setlanguage('fr_FR')
>>
>> you switch to French, you need to restart scilab if you want to update
>> menus.
>>
>>
>>
>> At the next restart of scilab , language by default will be 'fr_FR'
>>
>>
>>
>> If you want to use system default : setlanguage("")
>>
>>
>>
>> I am very interested , if you can check with others languages as 'ru_RU'
>> and 'zh_TW'
>>
>>
>>
>> On Windows, I advise to update your prerequirement (svn://
>> svn.scilab.org/scilab/trunk/Dev-Tools/SE/Prerequirements/Windows)
>>
>>
>>
>> Thanks you
>>
>>
>>
>> Best Regards
>>
>>
>>
>> Allan CORNET
>>
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080805/122a6175/attachment.htm>
More information about the dev
mailing list