Skip to content

Commit 095a02c

Browse files
committed
Merge pull request zheludkovm#6 from hobi/patch-1
Updated README.md - style of info-text.
2 parents 66a1b30 + 9b7669f commit 095a02c

File tree

1 file changed

+43
-56
lines changed

1 file changed

+43
-56
lines changed

README.md

Lines changed: 43 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,92 @@
1-
LinuxJavaFixes
2-
============
1+
#LinuxJavaFixes
32

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

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

8-
============
9-
A. Swing java apps (intellij idea, oracle sql developer etc)
7+
## Swing java apps (IntelliJ Idea, Oracle SQL Developer etc.)
108

11-
copy to any directory 2 files :
9+
Copy to any directory 2 files:
1210

13-
LinuxJavaFixes-1.0.0-SNAPSHOT.jar
14-
15-
javassist-3.12.1.GA.jar
11+
**LinuxJavaFixes-1.0.0-SNAPSHOT.jar**
1612

13+
**javassist-3.12.1.GA.jar**
1714

1815
add
1916

20-
-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar
17+
`-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar`
2118

2219
to java run string
2320

24-
Examples :
25-
26-
-soapui
27-
28-
add line to soapui.sh
21+
#### Examples:
2922

30-
JAVA_OPTS="$JAVA_OPTS java -javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar
23+
##### SoapUI
3124

32-
-oracle sqldeveloper
25+
Add line to **soapui.sh**.
3326

34-
add line to sqldeveloper/ide/bin/jdk.conf
27+
`JAVA_OPTS="$JAVA_OPTS java -javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar`
3528

36-
AddVMOption -javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar
29+
##### Oracle SQL Developer
3730

38-
-intellij idea
31+
Add line to **sqldeveloper/ide/bin/jdk.conf**.
3932

40-
add line to idea64.vmoptions or idea.vmoptions
33+
`AddVMOption -javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar`
4134

42-
-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar
35+
##### IntelliJ Idea
4336

44-
============
37+
Add line to **idea64.vmoptions* or *idea.vmoptions**
4538

46-
B. Eclipse
39+
`-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar`
4740

48-
copy to any directory 2 files :
41+
## Eclipse
4942

50-
LinuxJavaFixes-1.0.0-SNAPSHOT.jar
43+
Copy to any directory 2 files:
5144

52-
javassist-3.12.1.GA.jar
45+
**LinuxJavaFixes-1.0.0-SNAPSHOT.jar**
5346

54-
add following line to eclipse.ini
47+
**javassist-3.12.1.GA.jar**
5548

56-
-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=swt
49+
Add following line to **eclipse.ini**.
5750

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

59-
============
53+
## Advanced part
6054

61-
Advanced part
62-
63-
============
64-
C. Modify kaybindings for swing apps in case non russian layout
55+
### Modify kaybindings for swing apps in case non russian layout
6556

66-
if you want another mapping you can create it by yourself :
67-
68-
run any app with java vm option -javaagent:[path]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=print
57+
If you want another mapping you can create it by yourself:
6958

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

72-
XKeysymPatchAgent.keysym=[hex code]
62+
`XKeysymPatchAgent.keysym=[hex code]`
7363

74-
then create file using format [hex code]=[latin code of the same button]
64+
- then create file using format `[hex code]=[latin code of the same button]`
7565

76-
for example
66+
#### Example:
7767

68+
```
7869
6ca=Q
7970
8071
6c3=W
72+
```
73+
etc.
8174

82-
etc
83-
84-
and replace hex codes wuth yours
85-
86-
use following option to run app with custom mapping :
87-
88-
-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=[your mapping file]
89-
90-
============
91-
D. Modify keybindings for swt in case non russian layout
75+
- replace hex codes wuth yours
76+
- use following option to run app with custom mapping:
9277

93-
add following line to eclipse.ini
78+
`-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=[your mapping file]`
9479

95-
-javaagent:[path]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=swt:print
80+
### Modify keybindings for swt in case non russian layout
9681

97-
then grab codes and create properties file with mapping
82+
- add following line to eclipse.ini
9883

99-
[your locale key]=[latin key]
84+
`-javaagent:[path]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=swt:print`
10085

101-
then run eclipse wuth following config
86+
- then grab codes and create properties file with mapping
10287

103-
-javaagent:[path]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar=swt:[path to your mapping file]
88+
`[your locale key]=[latin key]`
10489

90+
- then run eclipse wuth following config
10591

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

0 commit comments

Comments
 (0)