LinuxJavaFixes

LinuxJavaFixes

  • 所有者: zheludkovm/LinuxJavaFixes
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

#LinuxJavaFixes

Simple javaagent to fix problems in linux with non latin hotkeys in gui java applications.

Aimed to walkaround bug with java gui apps: "Hotkeys not functional in non-latin keyboard layout in 13.10 - 16.04" https://bugs.launchpad.net/unity/+bug/1226962

Swing java apps (IntelliJ Idea, Oracle SQL Developer etc.)

Copy to any directory 2 files:

LinuxJavaFixes-1.0.0-SNAPSHOT.jar

javassist-3.12.1.GA.jar

add

-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar

to java run string

Examples:

SoapUI

Add line to soapui.sh.

JAVA_OPTS="$JAVA_OPTS java -javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar

Oracle SQL Developer

Add line to sqldeveloper/ide/bin/jdk.conf.

AddVMOption -javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar

IntelliJ Idea

Add line to idea64.vmoptions or idea.vmoptions

-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar

Eclipse

Copy to any directory 2 files:

LinuxJavaFixes-1.0.0-SNAPSHOT.jar

javassist-3.12.1.GA.jar

Add following line to eclipse.ini.

-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=swt

Advanced part

Modify kaybindings for swing apps in case non russian layout

If you want another mapping you can create it by yourself:

  • run any app with java vm option -javaagent:[path]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=print
  • after that utily begin print to console entered symbol codes using format

XKeysymPatchAgent.keysym=[hex code]

  • then create file using format [hex code]=[latin code of the same button]

Example:

6ca=Q

6c3=W

etc.

  • replace hex codes wuth yours
  • use following option to run app with custom mapping:

-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=[your mapping file]

Modify keybindings for swt in case non russian layout

  • add following line to eclipse.ini

-javaagent:[path]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=swt:print

  • then grab codes and create properties file with mapping

[your locale key]=[latin key]

  • then run eclipse wuth following config

-javaagent:[path]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=swt:[path to your mapping file]

概覽

名稱與所有者zheludkovm/LinuxJavaFixes
主編程語言Java
編程語言Java (語言數: 1)
平台
許可證Other
發布數0
創建於2014-02-01 19:13:31
推送於2017-06-08 00:33:09
最后一次提交2016-10-31 00:16:55
星數434
關注者數27
派生數33
提交數38
已啟用問題?
問題數13
打開的問題數4
拉請求數3
打開的拉請求數1
關閉的拉請求數1
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部