No Script Console on Mac OS X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Unassigned | ||
Bug Description
Mac OS X 10.5.6
XQuartz 2.3.2 (xorg-server 1.4.2-apple31)
Inkscape 0.46+devel r21262, built Apr 30 2009
Inkscape 0.46+devel r20809, built Mar 3 2009
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
Menu item 'View > Scripts...' does not open the script console nor display any error message.
Menu item 'View > Messages...' shows the following error messages:
JavaBinderyImpl err:
No Java VM found. Is JAVA_HOME defined? Need to find 'libjvm.so'
JavaBinderyImpl err:
Could not find 'JNI_CreateJavaVM' in shared library
From a quick search through the sources (caveat - I'm not a programer), it seems that the script console is not yet ported to the Mac OS X platform:
<http://
285 #ifdef __WIN32__
<...>
324 /**
325 * Common places to find jvm.dll under JAVA_HOME
326 */
<...>
499 #else /* !__WIN32__ */
<...>
565 /**
566 * Look for a Java VM (libjvm.so) in several Unix places
567 */
-> no case for Java VM library <libjvm.dylib> / J2SE from Apple.
Wouldn't it be better to either disable the menu item 'Scripts...' on OS X or else provide some kind of feedback to the user (like 'not implemented')?
Inkscape 0.46-2 on OS X 10.5.8: 'View > Scripts…' opens the script console, with following message:
# This is where you could type a script.
# However, no scripting languages have been compiled
# into Inkscape, so this window has no functionality.
# When compiling Inkscape, run "configure" with
# "--with-python" and/or "--with-perl".
Inkscape 0.47pre3-2 on OS X 10.5.8: 'View > Scripts…' fails silently.
console messages: bin:44548) : WARNING **: JavaBinderyImpl err: bin:44548) : WARNING **: No Java VM found. Is JAVA_HOME defined? Need to find 'libjvm.so' bin:44548) : WARNING **: bin:44548) : WARNING **: JavaBinderyImpl err: bin:44548) : WARNING **: Could not find 'JNI_CreateJavaVM' in shared library bin:44548) : WARNING **:
** (inkscape-
** (inkscape-
** (inkscape-
** (inkscape-
** (inkscape-
** (inkscape-
repeating the proposal to disable the menu item 'View > Scripts…' until this issue is solved (for all platforms). See bug #346721 "Segfault after opening JVM scripts dialog" for related issues on linux.