[Jsmooth-cvs] jsmooth/skeletons/commonjava SunJVMLauncher.cpp,1.10,1.11
Status: Beta
Brought to you by:
reyes
From: <re...@us...> - 2004-03-04 21:24:41
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/commonjava In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13247/skeletons/commonjava Modified Files: SunJVMLauncher.cpp Log Message: Fixes bug #910091 (SingleProcess flag of Windowed wrapper not working). was due to the class name being set with "." as separator instead of "/"! Index: SunJVMLauncher.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/SunJVMLauncher.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** SunJVMLauncher.cpp 4 Mar 2004 18:38:56 -0000 1.10 --- SunJVMLauncher.cpp 4 Mar 2004 21:03:11 -0000 1.11 *************** *** 228,234 **** JavaVMInitArgs vm_args; JavaVMOption options[1 + jpropstrv.size()]; ! std::string cpoption = "-Djava.class.path="; cpoption += jarpath; cpoption += ";" + resource.getNormalizedClassPath(); DEBUG("Classpath: " + cpoption); --- 228,235 ---- JavaVMInitArgs vm_args; JavaVMOption options[1 + jpropstrv.size()]; ! std::string cpoption = "-Djava.class.path=\""; cpoption += jarpath; cpoption += ";" + resource.getNormalizedClassPath(); + cpoption += "\""; DEBUG("Classpath: " + cpoption); *************** *** 268,272 **** return false; } ! cls = (env)->FindClass(classname.c_str()); if (cls == 0) --- 269,275 ---- return false; } ! ! classname = StringUtils::replace(classname,".", "/"); ! DEBUG("Look for " + classname); cls = (env)->FindClass(classname.c_str()); if (cls == 0) *************** *** 433,437 **** return false; } ! cls = (env)->FindClass(classname.c_str()); if (cls == 0) --- 436,441 ---- return false; } ! ! classname = StringUtils::replace(classname,".", "/"); cls = (env)->FindClass(classname.c_str()); if (cls == 0) *************** *** 444,448 **** } else ! DEBUG("CLASS FOUND"); char strbuf[255]; --- 448,452 ---- } else ! DEBUG("CLASS "+ classname +" FOUND"); char strbuf[255]; |