intellij

IntelliJ - java: Cannot find JDK '1.8'

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Update: Not sure why this is marked as a duplicate. I had already linked to the other post stating that none of the suggestions / answers work for me. In addition, their question seems to be related to an issue using Windows VMs via Mac, which is irrelevant for me. I am using IntelliJ IDEA 14.0.3. I have selected the 'Java Hello World' sample. When I try and run the program I receive the error: "Error: java: Cannot find JDK '1.8' for module 'Deliverable4'. I have tried every single suggestion from this post intellij - java: Cannot find JDK

Error: Module not specified. IntelliJ IDEA Ultimate

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was trying to execute a simple program in IntelliJ IDEA as a static web project. I'm newbie and I'm learning web development with Node.js. I took help from the official website of IntelliJ IDEA, but the error was same. Though, I configured the settings and Project structure also. Error: "C:\Program Files\Java\jdk1.8.0_91\bin\java" -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 2016.1.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2016.1.2\lib\idea_rt.jar" com

What does this symbol mean in IntelliJ? (red circle on bottom-left corner of file name, with 'J' in it)

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Under the target folder in IntelliJ for a Java project I created, I have a few java source files in the package. Beside each file the 'J' icon has a red circle with a line through it. What does that mean? How do I fix it? 回答1: You need to specify the source dir File > Project Structure > Modules click the directory and click the Sources button It's weird because usually it's done automatically. Maybe it's better if you recreate the project again. 回答2: If it is a maven project right click on the pom.xml Add As Maven Project Thanks

Intellij IDEA: Breakpoint not being hit, and is shown greyed out

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Running JDK 1.7 on Mac OS X and suddenly breakpoints on my project are not working, and they are appearing greyed out. They were working earlier today, so not sure what I have done to cause this. I am using Intellij 13.1.3. Why would breakpoints stop working like this? 回答1: Oh Gee - I just saw the "Mute Breakpoint" button in the debugger window. My mistake: picture below for the next person who might be as inattentive as me: 文章来源: Intellij IDEA: Breakpoint not being hit, and is shown greyed out

IntelliJ IDEA JDK configuration on Mac OS

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using IntelliJ IDEA 10. Every time when I create a new project, it is asking me to choose JDK for this project. Anyone know how I can configure it and make it easy to use? 回答1: If you are on Mac OS X or Ubuntu, the problem is caused by the symlinks to the JDK. File | Invalidate Caches should help. If it doesn't, specify the JDK path to the direct JDK Home folder, not a symlink. Invalidate Caches menu item is available under IntelliJ IDEA File menu. Direct JDK path after the recent Apple Java update is: /System/Library/Java

使用Ant构建SSH项目(Intellij IDEA版)

ⅰ亾dé卋堺 提交于 2019-12-03 08:25:29
学习Ant用的,Intellij IDEA中集成了Ant工具,挺方便的。我这个就是使用Idea集成的Ant构建一个简单的SSH项目的示例吧,欢迎指正和评论,里面有几个问题点,我也会给大家看一看。 一.项目目录 其中build和dist文件夹就是用ant生成的,作用在build.xml文件中有注释。 在Idea中的使用: 二.生成文件build.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE project [<!ENTITY properties SYSTEM "./properties.xml">]> <project name="MySSHTest" basedir="." default="war-prepare"> &properties; <!-- 版本构建时间 --> <tstamp> <format property="version.date" pattern="yyyy-MM-dd HH:mm:ss"/> </tstamp> <!-- 编译项目 --> <target name="compile" description="compile javaFile"> <echo level="info">Compiling...</echo> <mkdir dir="${build.dir}/classes"/

IntelliJ Idea 14: cannot resolve symbol spark

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I made a dependency of Spark which worked in my first project. But when I try to make a new project with Spark, my SBT does not import the external jars of org.apache.spark. Therefore IntelliJ Idea gives the error that it "cannot resolve symbol". I already tried to make a new project from scratch and use auto-import but none works. When I try to compile I get the messages that "object apache is not a member of package org". My build.sbt looks like this: name := "hello" version := "1.0" scalaVersion := "2.11.7" libraryDependencies += "org

IntelliJ and the android java docs

匿名 (未验证) 提交于 2019-12-03 07:36:14
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Has anyone had any luck getting IntelliJ to recognize and display the android java docs? 回答1: It works out of the box since Android SDK configuration in IDEA automatically adds JavaDoc directory into Documentation Paths . Make sure you've downloaded the SDK completely including the documentation using the SDK Manager. On my system they are located under SDK_ROOT/docs/reference and this directory is automatically configured in IDEA Android SDK. 回答2: Make sure that the directory containing the documentation is in Documentation Paths . For this

Add a properties file to IntelliJ&#039;s classpath

匿名 (未验证) 提交于 2019-12-03 07:36:14
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm running a simple Java program from the IntelliJ IDE using the Run->Run menu. It works fine. Now I want to add log4j logging. I added a resources folder under my project root. I added a log4j.properties file in that folder. I changed the code to log something. What is the right way to tell IntelliJ to include the resources folder in the classpath so the properties file is seen? With IntelliJ 8 I could guess like a drunk monkey and eventually get it to work. I have 9 now and I am wholly unsuccessful. I've been trying for an hour. How about

Run programme from IntelliJ with command line file input

匿名 (未验证) 提交于 2019-12-03 03:09:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am running OSX 10.11 with IntelliJ 14.1.15. I have a programme which takes a txt file as an argument. I can run it from the terminal through java SearchCmd test.txt and then it allows me to enter a search term and searches that list. How do I do this from within IntelliJ, so that I can click the run button and it reads the file and I am able to enter a search term in the IntelliJ console. The main class 'SearchCmd' contains the main method, as such: public class SearchCmd { public static void main (String[] args) throws IOException {