Commit 70b5050ba1685bebc879c8b734709092db716700
1 parent
e87c5e96
Exists in
master
and in
5 other branches
Ajustes para a interface java em windows
Showing
1 changed file
with
10 additions
and
8 deletions
Show diff stats
src/java/plugin.cc
... | ... | @@ -398,28 +398,30 @@ extern "C" { |
398 | 398 | |
399 | 399 | gchar * exports = NULL; |
400 | 400 | char buffer[1024]; |
401 | + gchar * myDir; | |
401 | 402 | |
402 | 403 | if(GetModuleFileName(NULL,buffer,sizeof(buffer)) < sizeof(buffer)) { |
403 | 404 | |
404 | - gchar * d = g_path_get_dirname(buffer); | |
405 | + gchar * myDir = g_path_get_dirname(buffer); | |
405 | 406 | |
406 | - exports = g_build_filename(d,"jvm-exports",NULL); | |
407 | - | |
408 | - g_free(d); | |
409 | 407 | |
410 | 408 | } else { |
411 | 409 | |
412 | - exports = g_build_filename(".","jvm-exports"); | |
410 | + myDir = g_strdup("."); | |
413 | 411 | |
414 | 412 | } |
415 | 413 | |
416 | - debug("java.class.path=%s;%s",dirname,exports); | |
417 | - | |
414 | + exports = g_build_filename(myDir,"jvm-exports",NULL); | |
418 | 415 | g_mkdir_with_parents(exports,0777); |
419 | 416 | |
420 | - options[vm_args.nOptions++].optionString = g_strdup_printf("-Djava.library.path=%s","."); | |
417 | + lib3270_trace_event(v3270_get_session(widget),"java.class.path=%s;%s",dirname,exports); | |
418 | + lib3270_trace_event(v3270_get_session(widget),"java.library.path=%s",myDIR); | |
419 | + | |
420 | + | |
421 | + options[vm_args.nOptions++].optionString = g_strdup_printf("-Djava.library.path=%s",myDIR); | |
421 | 422 | options[vm_args.nOptions++].optionString = g_strdup_printf("-Djava.class.path=%s;%s",dirname,exports); |
422 | 423 | |
424 | + g_free(myDir); | |
423 | 425 | g_free(exports); |
424 | 426 | |
425 | 427 | #elif defined(DEBUG) | ... | ... |