Ja-netfilter常见问题
热佬激活包下载地址
- go to jetbra.in/s , 点击前排任意一个网址进入热佬网站
- download jetbra.zip
- unzip and read readme.txt
激活操作
add -javaagent:/path/to/ja-netfilter.jar=jetbrains to your vmoptions file (manual or auto 手动或自动)
注:
/path/to/ja-netfilter.jar 替换成你自己的路径, 示例:
E:\jetbra-220701\ja-netfilter.jar
结尾别忘了加=jetbrains
如果你不知道vmoptions文件在哪或者IDE使用了哪个vmoptions文件, 请查看下面文档
auto方式请见如何自动配置vmoptions文件 | 一键脚本
从版本2022.2开始, 需要额外配置下面两行参数以使用JBR17 (JetBrains Runtime 17) 见 官方说明 ;
From version 2022.2 ,add these 2 lines to your vmoptions file to use JBR17, see details Here ;
(for manual, without any whitespace chars)
--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
log out of the jb account in the 'Licenses' window
use key on page jetbra.in/s
如何自动配置vmoptions文件 | 一键脚本
Auto configure vmoptions:
- macOS or Linux: execute "scripts/install.sh"
- Windows: double click to execute "scripts\install-current-user.vbs" (For current user) "scripts\install-all-users.vbs" (For all users)
一键脚本的原理是什么?
设置环境变量 IDE
_VM_OPTIONS 指向 ja-netfilter包里的vmoptions文件 ,同时这个文件会自动配置-javaagent , 这里IDE
为IDE的名称,比如 IDEA/CLION/PYCHARM 等
IDE启动之后优先使用IDE
_VM_OPTIONS 指向的vmoptions文件
注: 一键脚本会对多个IDE设置相应的vmoptions环境变量,如果你只想为特定IDE设置,修改脚本中的 aJBProducts 变量