zoukankan      html  css  js  c++  java
  • IDEA-常见问题

    目录:

      1、Cannot access java.lang.String:

      2、使用Hibernate,注解或者配置文件出现:“cannot resolve table 'xxx'”

      3、解决IntelliJ IDEA,光标不跟随

      4、使用GitHub,更新或者提交的时候提示 could not read from remote repositor

      5、破解

      6、生成javadoc

    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...

      如果已经配置了数据源,可以选择已经配置好的数据源,如果没有配置,就按照提示配置对应的数据源

    3、解决IntelliJ IDEA,光标不跟随

      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.

       详细

     5、破解

      大神地址:http://idea.lanyus.com/

      

      破解补丁激活

      破解补丁为 Rover12421 开发,使用方法如下:

    1. 下载 http://idea.lanyus.com/jar/JetbrainsCrack-2.7-release-str.jar 并将 JetbrainsCrack-2.6.2.jar 放置到 D盘根目录。 百度网盘
    2. 在 IntelliJ IDEA 安装目录中找到 idea.exe.vmoptions 和 idea64.exe.vmoptions ,以文本格式打开并同时在两个文件最后追加 -javaagent:D:/JetbrainsCrack-2.6.2.jar
    3. 启动 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 后,将系统时间修改回来。

    6、生成javadoc

      tools-->generate javadoc...

      参数(command line argument):-encoding utf-8 -charset utf-8

  • 相关阅读:
    面向对象下
    面向对象上
    将博客搬至CSDN
    矩阵的常用术语和操作
    python2.7 Unable to find vcvarsall.bat
    intellij创建maven web项目
    intellij 编译 springmvc+hibernate+spring+maven 找不到hbm.xml映射文件
    spring Thymeleaf 中文乱码
    visualstudiocode 调试electron
    android反编译工具总结
  • 原文地址:https://www.cnblogs.com/adeng/p/7697923.html
Copyright © 2011-2022 走看看