目录:
1、Cannot access java.lang.String:
2、使用Hibernate,注解或者配置文件出现:“cannot resolve table 'xxx'”
4、使用GitHub,更新或者提交的时候提示 could not read from remote repositor
1、Cannot access java.lang.String:
造成这种错误的原因可能是由于无效的缓存导致编译器无法识别jdk,处理方式:
File-->Invalidate Caches/Restart-->Invalidate and Restart
让idea重新建立索引可能会奏效(可能需要几分钟,具体看项目的大小)
2、使用Hibernate,注解或者配置文件出现:“cannot resolve table 'xxx'”
View->Tool Windows->Persistence->在出现的窗口右键项目->Assign Data Sources...
如果已经配置了数据源,可以选择已经配置好的数据源,如果没有配置,就按照提示配置对应的数据源
1. 升级jdk至最新版本(以1.8为例),安装的过程中同时安装jre;路径:C:Program FilesJavajdk1.8.0_162jre
2. 关掉idea,然后去idea安装路径下把jre64文件夹重命名掉,或删掉,最好是重命名掉,出问题后还能恢复过来
3. 把1中安装的jdk1.8中的jre文件夹拷贝过来,然后把文件夹重命名为jre64;
4. 把jdk1.8/lib中的tools.jar拷贝到intelligent idea/jre64/lib下;
5.启动IDEA
4、使用GitHub,更新或者提交的时候提示 could not read from remote repository
原因:
1. 排除git,github的公钥因素 git-github 提示Permission denied (publickey)
2. Go to Preferences > Version Control > Git. Make sure SSH executable is set to “Native.” (If it's already so, switch it to “Built-in,” apply it, and then again switch back to “Native.”).
If this doesn't solve your issue, I would suggest to download a Git client such as GitHub client (free desktop app) and try to sync your project through the app. Then go back to IntelliJ and check if it works.
大神地址:http://idea.lanyus.com/
破解补丁激活
破解补丁为 Rover12421 开发,使用方法如下:
- 下载 http://idea.lanyus.com/jar/JetbrainsCrack-2.7-release-str.jar 并将 JetbrainsCrack-2.6.2.jar 放置到 D盘根目录。 百度网盘
- 在 IntelliJ IDEA 安装目录中找到
idea.exe.vmoptions
和idea64.exe.vmoptions
,以文本格式打开并同时在两个文件最后追加-javaagent:D:/JetbrainsCrack-2.6.2.jar
。 -
启动 IntelliJ IDEA , 输入如下激活码激活(激活码中内容可修改)。
ThisCrackLicenseId-{ "licenseId":"ThisCrackLicenseId", "licenseeName":"Rover12421", "assigneeName":"", "assigneeEmail":"rover12421@163.com", "licenseRestriction":"For Rover12421 Crack, Only Test! Please support genuine!!!", "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"} ], "hash":"2911276/0", "gracePeriodDays":7, "autoProlongated":false}
修改试用时间
安装前将系统时间需改为一个比较远的时间,如2050年,修改后安装 IntelliJ IDEA ,安装后选择试用,全部步骤完毕并关闭 IntelliJ IDEA 后,将系统时间修改回来。
tools-->generate javadoc...
参数(command line argument):-encoding utf-8 -charset utf-8