intellij-idea

JavaFX does not work with IntelliJ (jdk 9)

≯℡__Kan透↙ 提交于 2021-02-08 08:12:50
问题 JavaFX is not working for me using IntelliJ. While it does compile, I get an Exception when trying to launch. I've found similar issues here, none of which seemed to hold an answer to my problem. The Exception I get is the following: Exception in thread "main" java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java

Cannot solve conflicts after git pull

南楼画角 提交于 2021-02-08 08:12:32
问题 A file has been changed both locally and remotely. I would expect to be able to solve the conflicts. However when I execute a "git pull" with IntellilJ, I get the following message: "Git Pull Failed. Your local changes would be overwritten by merge. Commit, stash or revert them to proceed." What I need to do to merge the local changes with the remote changes, then commit and push? 回答1: Do a commit on the stuff you have in your local workspace, then pull. 回答2: When you have changes that aren't

IntelliJ cannot resolve jsDependency when connected to corporate VPN

白昼怎懂夜的黑 提交于 2021-02-08 07:42:01
问题 When I'm connected to my company's VPN, IntelliJ is unable to resolve certain jsDependencies. I have set proxy settings in IntelliJ to point to my corporate proxy server, but this seems to make no difference. If I disconnect from the VPN, then everything builds fine... Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.eclipse.jetty#jetty-util;8.1.16.v20140903 ... [info] Resolving org.eclipse.jetty#jetty-io;8.1.16.v20140903 ... [info] Resolving org.eclipse.jetty

IntelliJ cannot resolve jsDependency when connected to corporate VPN

六眼飞鱼酱① 提交于 2021-02-08 07:41:07
问题 When I'm connected to my company's VPN, IntelliJ is unable to resolve certain jsDependencies. I have set proxy settings in IntelliJ to point to my corporate proxy server, but this seems to make no difference. If I disconnect from the VPN, then everything builds fine... Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.eclipse.jetty#jetty-util;8.1.16.v20140903 ... [info] Resolving org.eclipse.jetty#jetty-io;8.1.16.v20140903 ... [info] Resolving org.eclipse.jetty

Does Android SDK with API 23 (Marshmallow) supports Java 8? [duplicate]

▼魔方 西西 提交于 2021-02-08 07:07:28
问题 This question already has answers here : Is it possible to use Java 8 for Android development? (26 answers) Closed 5 years ago . Does IntelliJ Android Studio last update (From 30/Jan/2016) supports Java 8? I used a lambda expression mButton.setOnClickListener((View v) -> { // do something here }); then Android Studio tells me I have an error and when I resolve the problem (Alt+spacebar) I choose the Change to Java 8 (or something like that) and it works the lambda but the libraries from

Does Android SDK with API 23 (Marshmallow) supports Java 8? [duplicate]

泄露秘密 提交于 2021-02-08 07:01:10
问题 This question already has answers here : Is it possible to use Java 8 for Android development? (26 answers) Closed 5 years ago . Does IntelliJ Android Studio last update (From 30/Jan/2016) supports Java 8? I used a lambda expression mButton.setOnClickListener((View v) -> { // do something here }); then Android Studio tells me I have an error and when I resolve the problem (Alt+spacebar) I choose the Change to Java 8 (or something like that) and it works the lambda but the libraries from

readLine() only reads second input in console

与世无争的帅哥 提交于 2021-02-08 06:30:09
问题 I'm just getting started with Kotlin, so I apologize if it's a dumb problem (which I think it probably is). I'm following this guide, but ran in an issue: the readLine function ignores my first input, and returns only the second line I insert. fun main() { println("What's your name?") val name= readLine() println("Hello $name!") } And this is the output I'm getting (">" marks my input into the console): What's your name? > Paul > John Hello John! I'm using IntelliJ IDEA Community 2020.2, if

How to check if JavaSE Commercial Features are enabled?

泄露秘密 提交于 2021-02-08 03:39:01
问题 In light of the recent apparent crackdown of Oracle on Java users (read here), I'm wary about my continued use of Oracle's JDK - or anything Oracle for that matter. The above article warns: “If you download Java, you get everything – and you need to make sure you are installing only the components you are entitled to and you need to remove the bits you aren’t using,” our anonymous expert warned. I'm only using the OracleJDK for personal use, on my personal laptop. I haven't given the code to

How to check if JavaSE Commercial Features are enabled?

谁说我不能喝 提交于 2021-02-08 03:38:48
问题 In light of the recent apparent crackdown of Oracle on Java users (read here), I'm wary about my continued use of Oracle's JDK - or anything Oracle for that matter. The above article warns: “If you download Java, you get everything – and you need to make sure you are installing only the components you are entitled to and you need to remove the bits you aren’t using,” our anonymous expert warned. I'm only using the OracleJDK for personal use, on my personal laptop. I haven't given the code to

How to check if JavaSE Commercial Features are enabled?

情到浓时终转凉″ 提交于 2021-02-08 03:38:35
问题 In light of the recent apparent crackdown of Oracle on Java users (read here), I'm wary about my continued use of Oracle's JDK - or anything Oracle for that matter. The above article warns: “If you download Java, you get everything – and you need to make sure you are installing only the components you are entitled to and you need to remove the bits you aren’t using,” our anonymous expert warned. I'm only using the OracleJDK for personal use, on my personal laptop. I haven't given the code to