Linux下IDEA解决中文输入法定位无法定位输入位置问题
title: Linux下IDEA中文输入法定位问题 sidebar: open: false
docker 中 pull ubuntu 镜像 执行下面脚本
#!/bin/bash
echo "致谢 https://blog.csdn.net/qq_41859728/article/details/109187748 立花泷bili"
# 工作目录
BASE_DIR=/data
install_dep(){
cd $BASE_DIR
echo '安装环境,时间较长,泡杯茶慢慢等。。。。'
apt -y install ksh bison flex gperf build-essential libasound2-dev libgl1-mesa-dev libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev libjpeg-dev ibpng-dev libx11-dev libxml2-dev libxslt1-dev libxt-dev \
libxxf86vm-dev pkg-config x11proto-core-dev x11proto-xf86vidmode-dev libavcodec-dev mercurial \
libgtk2.0-dev libgtk-3-dev libxtst-dev libudev-dev libavformat-dev ant cmake ruby openjdk-11-jdk \
mercurial git wget autoconf make build-essential libx11-dev libxext-dev libxrender-dev libxtst-dev \
libxt-dev libxrandr-dev libcups2-dev libfontconfig1-dev libasound2-dev
}
setJavaHome(){
echo '设置JavaHome JDK_Home'
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export JDK_HOME=$JAVA_HOME
}
makeJfxSources(){
echo '构建openjdk11'
hg clone http://hg.openjdk.java.net/openjfx/11-dev/rt
cd rt
echo '添加执行权限'
chmod a+x gradlew
echo '开始构建openjdk11'
./gradlew -PCOMPILE_WEBKIT=true
cd ..
}
makeJBSources(){
echo '克隆JetBrainsRuntime'
git clone https://github.com/JetBrains/JetBrainsRuntime.git
cd JetBrainsRuntime
git checkout cfc3e87f2ac27a0b8c78c729c113aa52535feff6
echo '下载补丁文件'
wget https://raw.githubusercontent.com/prehonor/myJetBrainsRuntime/master/idea.patch
echo '应用补丁文件'
git apply idea.patch
}
building(){
echo '构建开始。。。。。。。。。。。。。。。。。。。。。。。'
sh ./configure --disable-warnings-as-errors --with-import-modules=$BASE_DIR/rt/build/modular-sdk
make images
echo '构建成功,开始打包'
cd $BASE_DIR/JetBrainsRuntime/build/linux-x86_64-normal-server-release/images
mv jdk jbr
tar -zcvf jbr.tar.gz jbr/
echo '打包完成。。。。'
}
main(){
install_dep
setJavaHome
makeJfxSources
makeJBSources
building
}
main
docker cp 将jbr复制到本地解压
idea 安装 choose runtime
插件
ctrl+shift+a 输入 choose runtime 回车
选择生成的jbr解压路径
重启IDEA