Ignore:
Timestamp:
Jan 4, 2016, 10:34:36 AM (9 years ago)
Author:
djay
Message:

Fix in java support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal_java.c

    r747 r748  
    121121  if(javaXMap!=NULL)
    122122    cursorx=javaXMap->content;
    123   options[0].optionString = zStrdup(oclasspath);
     123  options[0].optionString = oclasspath;
    124124  options[0].extraInfo=NULL;
    125125#ifdef WIN32
     
    131131  for(i=0;i<nbc0;i++){
    132132    char *tmp=parseJVMXXOption(cursorxx);
    133     options[start+i].optionString = tmp;
     133    options[start+i].optionString = zStrdup(tmp);
    134134    options[start+i].extraInfo=NULL;
    135135    free(tmp);
     
    138138  for(;i<nbc1+nbc0;i++){
    139139    char *tmp=parseJVMXOption(cursorx);
    140     options[start+i].optionString = tmp;
     140    options[start+i].optionString = zStrdup(tmp);
    141141    options[start+i].extraInfo=NULL;
    142142    free(tmp);
     
    256256  (*jvm)->DestroyJavaVM(jvm);
    257257#endif
     258  for(i=0;i<nbc1+nbc0;i++){
     259    free(options[start+i].optionString);
     260  }
    258261  return res;
    259262}
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png