【IntelliJ IDEA学习之一】IntelliJ IDEA安装激活、VM参数
版本:IntelliJIDEA2018.1.4
特点:比eclipse更耗内存
1、下载
官网下载专业版。
2、安装
一直下一步即可。
3、配置文件修改
(1)VM参数
进入安装目录,进入bin目录下,找到如下文件:dea.exe.vmoptions、idea64.exe.vmoptions
我电脑系统是64位,所以修改idea64.exe.vmoptions:
-server -Xms512m -Xmx1012m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow #优化配置 #字节码校验策略 -Xverify:none #关闭 CLASS 的垃圾回收功能,就是虚拟机加载的类,即便是不使用,没有实例也不会回收 -Xnoclassgc #可以让 IDEA 最小化到任务栏时依然保持以占有的内存,当你重新回到 IDEA,能够被快速显示,而不是由灰白的界面逐渐显现整个界面,加快回复到原界面的速度 -Dsun.awt.keepWorkingSetOnMinimize=true -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=85 #并发回收的时候进行内存压缩 -XX:+UseCMSCompactAtFullCollection #5 次 full GC 之后进行内存压缩 -XX:CMSFullGCsBeforeCompaction=5 #设置字符集编码 -Dfile.encoding=UTF-8 #激活用的配置 -javaagent:D:\JetBrains\IntelliJIDEA2018.1.4\JetbrainsCrack-2.8-release-enc.jar
(2)idea.properties
#安装主目录 user.home=D:/JetBrains/IntelliJIDEA2018.1.4 #配置目录,平常的idea设置、操作习惯等配置都会记录在此,如果重新安装idea或者换电脑直接将此目录替换即可,不用再设置一遍 很实用 默认这些配置都是注释掉的:默认配置目录:C:\Users\Administrator\.IntelliJIdea2018.1\config idea.config.path=${user.home}/.IntelliJIdea2018.1/config #系统目录 默认这些配置都是注释掉的:默认配置目录:C:\Users\Administrator\.IntelliJIdea2018.1\system idea.system.path=${user.home}/.IntelliJIdea2018.1/system #自定义的插件目录 idea.plugins.path=${idea.config.path}/plugins #自定义日志目录 idea.log.path=${idea.system.path}/log
4、IDEA激活
使用全系JetBrains家族产品
(1)下载JetbrainsCrack-2.8-release-enc.jar,放到任意目录,比如我这里是:D:\JetBrains\IntelliJIDEA2018.1.4\JetbrainsCrack-2.8-release-enc.jar
(2)进入安装目录,进入bin目录下,修改idea.exe.vmoptions、idea64.exe.vmoptions,最后一行添加如下代码
-javaagent:D:\JetBrains\IntelliJIDEA2018.1.4\JetbrainsCrack-2.8-release-enc.jar
(3)点击对应启动程序,进入激活界面,复制下面代码至activation code
{"licenseId":"1337", "licenseeName":"Rover12421", "assigneeName":"Rover12421", "assigneeEmail":"your@email.com", "licenseRestriction":"Unlimited license till the end of the century.", "checkConcurrentUse":false, "products":[ {"code":"II","paidUpTo":"2099-12-31"}, {"code":"DM","paidUpTo":"2099-12-31"}, {"code":"AC","paidUpTo":"2099-12-31"}, {"code":"RS0","paidUpTo":"2099-12-31"}, {"code":"WS","paidUpTo":"2099-12-31"}, {"code":"DPN","paidUpTo":"2099-12-31"}, {"code":"RC","paidUpTo":"2099-12-31"}, {"code":"PS","paidUpTo":"2099-12-31"}, {"code":"DC","paidUpTo":"2099-12-31"}, {"code":"RM","paidUpTo":"2099-12-31"}, {"code":"CL","paidUpTo":"2099-12-31"}, {"code":"PC","paidUpTo":"2099-12-31"}, {"code":"DB","paidUpTo":"2099-12-31"}, {"code":"GO","paidUpTo":"2099-12-31"}, {"code":"RD","paidUpTo":"2099-12-31"} ], "hash":"2911276/0", "gracePeriodDays":7, "autoProlongated":false}
参考:
2018版本参考https://blog.csdn.net/qq_37350706/article/details/81334489
2019版本参考:https://zhile.io/2018/08/25/jetbrains-license-server-crack.html
5、eclipse和idea的一些区别
很多人都是从eclipse转到idea,不能用eclipse的使用思路去使用idea,但是可以参考对比学习。
学习技术不是用来写HelloWorld和Demo的,而是要用来解决线上系统的真实问题的.