intellij

Error: Could not find or load main class in intelliJ IDE

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a beginner in Java and am trying to run my code using IntelliJ that I just installed as my IDE with JDK 1.7. The following piece of code keeps does not even compile and keeps giving me the error: Error: Could not find or load main class libTest Code import java.lang.Integer; import java.lang.String; import java.lang.System; import java.util.*; class book { private String name = "trial"; private int bookCode=1; private int issued=0; public void Issue(){ if(issued==0) { issued=1; System.out.println("You have succesfully issued the book");

How import grails project to Intellij 13.1 IDEA?

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to import a grails project to IntelliJ IDEA. (I am very new to IntelliJ, grails, groovy). When I try to build the project, the following error is obtained for each of the modules: Error:Cannot compile Groovy files: no Groovy library is defined for module '' Would you know how I can fix this - how to correctly import the project - since I believe a Grails installation contains a Groovy library. When I import into GGTS (as a Grails project), the project builds ok. 回答1: Prerequisite: you need the Ultimate Edition of IntelliJ IDEA to get

Spring integration bootstrap - intellij in debug works, packaged jar does not

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run same project as packaged jar file and as debug config from intellij. Intellij works fine, but in packaged .jar, it seems integration fails to initialize some channels, leading to Dispatcher has no subscribers for channel 'unknown.channel.name'. This is DEBUG output from working case (you can see that Starting beans in phase 1073741823 is after everything is configured): INFO [2018-02-08 11:54:19,450] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHandler@3fa50a24{/,null,AVAILABLE} INFO

分享一个IntelliJ IDEA 获取激活码的方法2089年的方法

爷,独闯天下 提交于 2019-12-03 09:33:06
本文仅用于学习交流,禁止用于任何商业用途! 此代码需要 JetbrainsCrack工具 进行辅助(下边有下载地址) 会显示自己的github账号的用户名 算是自己专属的! 链接地址: https://zhile.io/custom/license 登录账号 获取即可 . https://www.lanzous.com/i758sha jar包下载地址. 复制jar包到bin目录 . 找到bin目录里的idea64.exe.vmoptions 编辑打开 愿意用什么就用什么. 在最后一行加上jetbrainsCrack.jar 的全路径. -javaagent:全路径. 重新打开idea 选择激活码激活 直接把刚刚网站上的内容粘贴到输入框就就ok. ps:经济允许请支持正版. 官方正版购买地址 : https://www.jetbrains.com/ 方法来自吾爱 996579747 来源: https://www.cnblogs.com/alkin/p/11785577.html

Intellij JPA Console with persistence.xml

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm setting up a xml-free persistence JPA/Hibernate 4+/Spring 3+ using Intellij 13+. When I try to execute a query in the jpa console, I get the following error: javax.persistence.PersistenceException: Unable to build entity manager factory java.lang.RuntimeException: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.dialect.PostgreSQL9Dialectt.PostgreSQL9Dialect] as strategy [org.hibernate.dialect.Dialect] With the default postgres dialect, I get the same error. Any idea what's going

IntelliJ + JUnit 5 (Jupiter)

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My build.gradle has: testCompile 'org.junit.jupiter:junit-jupiter-api:5.0.0' Using the standard example from http://junit.org/junit5/docs/current/user-guide/ import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; class FirstJUnit5Tests { @Test void myFirstTest() { assertEquals(2, 1 + 1); } } When I try to run as a JUnit test in IntelliJ 2017.2.3, I get: objc[32347]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java (0x10f5be4c0) and

IntelliJ Organize Imports

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Does IntelliJ have an Organize Imports feature similar to that in Eclipse? What I have is a Java file with multiple classes missing their imports. Example: package com.test; public class Foo { public Map map; public JTable table; } In Eclipse I could use Organize Imports and it would automatically import both java.util.Map and javax.swing.JTable . In IntelliJ I have to individually go to each class, select it, then press Alt-Enter. There is an Optimize Imports feature but all it seems to do is sort and expand the existing imports. I'm using

Intellij - Cannot start maven service - ExecutionException

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Intellij 13.1.5 on Ubuntu 14.0.4 (amd64), Maven 3.0.5, Java Oracle 1.7.0_72 I noticed some irregularities with maven whilst using Intellij namely dependencies added and removed where not reflected in the module or in the External Libaries listing. Then when I ran Intellij from the shell I saw this exception: [ 14649] WARN - #org.jetbrains.idea.maven - Cannot open index /home/sbotting/.IntelliJIdea13/system/Maven/Indices/Index0 org.jetbrains.idea.maven.indices.MavenIndexException: Cannot open index /home/sbotting/.IntelliJIdea13

How do I disable IntelliJ IDEA's type inspection?

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: IntelliJ IDEA's Scala plugin many times complains about "type mismatch" even though the code in question compiles absolutely fine. I find this quite irritating, and would like to disable this feature. I didn't find any relevant option on searching in the settings. How do I get rid of it? 回答1: Switching off 'Type Aware Highlighting' by clicking this symbol may help a bit. Edit There are also a number of Scala specific inspections which can be enabled and disabled. These can be accessed by clicking on the 'Inspector' icon (just to the left of

Intellij Idea Maven 'cannot reconnect' error

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Maybe you can help me I got a strange apache maven's problem, when opening my project at Intellij Idea 13. When projects was open I have no libraries at External Libraries section. And at all pom.xml files from diff's modules I see error "Cannot reconnect". I tried to Invalidate Cache/Restart Idea, try to use Maven Reimport but problem still take a place. But if I do mvn clean install, and deploy my projects everything works fine. I use Maven 3.2.3. and Java 1.8. Maven settings: Aded idea.log files: 2015-06-03 11:54:24,585 [ 441715] INFO -