Menu

#66 MacOSX BigSur / soundClipStop signature: (Lwaba/fx/SoundClip;)Z) Incompatible argument to function

Development version
open
nobody
None
5
2021-02-21
2021-02-21
No

I try to run out of the box, on MacOS BigSur, latest Java form Sun.

USE THE NEWER RXTX CODE (BETA)
ISSUE: Can not read './lib/rxtx-2.2pre2-bins:./lib/rxtx-2.2pre2-bins/Mac_OS_X/mac-10.5:./lib/Waba_only.jar:./dist/BT747_rxtx.jar:.:'
Trying port /dev/cu.SLAB_USBtoUART
Trying port /dev/tty.HOLUX_M-241-SPPSlave-1
Trying port /dev/tty.HOLUX_M-241-SPPSlave-0
Trying port /dev/tty.iBT-GPS-SPPSlave-1
Trying port /dev/cu.serial-0001
Trying port /dev/tty.iBT-GPS-SPPslave-1
Trying port /dev/tty.BlumaxBT-GPS-SPPSlave-1
Current path : /Users/xpech/Downloads/BT747_2.2.1_en_full
Key emulations:
F1-F4 : HARD1 to HARD4
F5 : COMMAND
F6 : MENU
F7 : CALC
F8 : FIND
F9 : LAUNCH (HOME)
F10: KEYBOARD_ABC
F11: KEYBOARD_123
F12: ACTION (Center button press)
Fatal Error when running applet: there is an error in the constructor of the class BT747 and it could not be instantiated. Stack trace:
java.lang.VerifyError: (class: waba/fx/NativeMethods4JDK, method: soundClipStop signature: (Lwaba/fx/SoundClip;)Z) Incompatible argument to function
    at waba.fx.Font.<init>(Font.java:146)
    at waba.fx.Font.getFont(Font.java:166)
    at waba.ui.MainWindow.<clinit>(MainWindow.java:62)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:377)
    at waba.applet.Applet.init(Applet.java:141)
    at waba.applet.Applet.main(Applet.java:420)

Discussion

  • Mario De Weerd

    Mario De Weerd - 2021-02-21

    It seems that you are lauching the "Waba" version of BT747 which did also work on PC, but has a smaller interface and was oriented towards mobile devices like "Palm".

    You should launch the desktop version.

    You can try bt747_macosX_j2se.command or adapt it from:

    #!/bin/bash
    # The above line was removed once, but it was suggested to put it back in.
    # Failing to find why it was removed, I did so, please tell me if you know
    # why it should be there.
    ###################################################
    # SAMPLE SCRIPT FOR MacOS"  [BETA J2SE version]
    #  Based on info in https://sourceforge.net/forum/message.php?msg_id=4571837
    ###################################################
    
    ROOT_DIR=`dirname "$0"`
    if [ -z "$ROOT_DIR" ] ; then ROOT_DIR="." ; fi
    
    #Change to appropriate directory (suppose that we are already in it
    # (or that ROOT_DIR is ok) -> commented)
    #cd /Applications/gps ; ROOT_DIR=$PWD*
    
    
    # Determine the OS VERSION and convert it to an integer
    # so that we can test it in shell (major_minor = major*100 + minor)
    os_version=$(sw_vers  -productVersion)
    minor=$(echo $os_version | sed -e 's/^[^.]*\.//' -e 's/\..*//')
    major_minor=$(( ${os_version/.*/} * 100 + ${minor} ))
    if (( $major_minor >= 1007 )) ; then
     RXTX_PATH="${ROOT_DIR}/lib/rxtx-2.2pre2-bins"
     RXTX_BIN_PATH="${RXTX_PATH}/Mac_OS_X/mac-iharder"
    elif (( $major_minor >= 1006 )) ; then
     RXTX_PATH="${ROOT_DIR}/lib/rxtx-2.2pre2-bins"
     RXTX_BIN_PATH="${RXTX_PATH}/Mac_OS_X/mac-10.5"
    else
     # USE THE OLDER RXTX CODE
     RXTX_PATH="${ROOT_DIR}/lib/rxtx-2.1-7-bins-r2"
     RXTX_BIN_PATH="${RXTX_PATH}/Mac_OS_X"
    fi
    
    CLASSPATH="${RXTX_PATH}:${RXTX_BIN_PATH}:${ROOT_DIR}/dist/BT747_j2se.jar:${ROOT_DIR}/lib/swing-layout-1.0.3.jar:${ROOT_DIR}/lib/jchart-3.1.0.jar:${ROOT_DIR}/lib/jcalendar-1.3.2.jar:${ROOT_DIR}/lib/jopt-simple-3.1.jar:.:$CLASSPATH"
    export CLASSPATH
    
    MEM_OPTION=-Xmx192m
    
    which java >/dev/null 2>&1 && JAVA=java
    which javaw >/dev/null 2>&1 && JAVA=javaw
    
    # you may want to force the path to the settings file in the next call:
    # -Dbt747_settings="${USER}/bt747_settings.pdb"
    $JAVA ${MEM_OPTION}  -Djava.library.path="${RXTX_BIN_PATH}" bt747.j2se_view.BT747Main
    #$JAVA  ${MEM_OPTION} -Djava.library.path="${RXTX_BIN_PATH}" bt747.j2se_view.BT747Main $*
    

    Which is the contents of https://sourceforge.net/p/bt747/code/HEAD/tree/branches/BT747_mdeweerd/bt747_macosX_j2se.command .

     
  • Xavier Péchoultres

    Ok sorry for my mistake. I've tested the binaries version, the applet lauch but i was unable to connect my GPS logger. you will open anothe ticket for that.

     

Log in to post a comment.

MongoDB Logo MongoDB