Solved Intellij Switch Source Error

Discussion in 'Plugin Development' started by LandonTheGeek, Nov 17, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    LandonTheGeek

    Hello,

    I have recently switched from Eclipse over to Intellij, and I imported my project. Now, Intellij is having quite an issue with a string that Eclipse can understand, but Intellij doesn't. '+='

    Here it is:
    [​IMG]

    Is there a valid fix to this?
    Thanks

    Edit:

    I am also getting a can't start Git.exe error, I don't even want Git atm.

    [​IMG]
     
  2. Offline

    The_Doctor_123

    HelpfulBeast
    Does it work if you create a different one somewhere else?
     
  3. Offline

    ZeusAllMighty11

    Are you compiling against java 6 or 7? I think by default, IntelliJ uses Java 5.
     
    jorisk322 likes this.
  4. Offline

    jorisk322

    For the git-thing. Have you tried clicking 'fix it'? :p
     
  5. Offline

    LandonTheGeek

    The_Doctor_123
    Yes, but it says it can't find the . Remember, I put the broadcast message method in the same method that int i is in.
     
  6. Offline

    xTrollxDudex

    HelpfulBeast
    There's no += for strings... And turn off your git until you learn how to use it :p if you have installed git, go to the cmd folder and click on the git.exe
     
  7. Offline

    LandonTheGeek

  8. Offline

    PogoStick29

    I'm 99% sure you can use += on Strings. It's called String Concatenation.

    PS: Learn git here :D
     
    HelpfulBeast likes this.
  9. Offline

    The_Doctor_123

    xTrollxDudex
    Yes there is. Tried it.
    Code:java
    1. String str = "Hi";
    2. str += " there";
    3. // Works!
     
    ZeusAllMighty11 likes this.
  10. Offline

    jorisk322

    If you don't have git installed, you might need to do that. I'm not sure since I alreay had git before I installed IntelliJ.
     
  11. Offline

    LandonTheGeek

    jorisk322
    Is there a way I can remove it then?
    PogoStick29
    Hmmm... I am just not sure why the IDE doesn't recognize it, but Eclipse does..
     
  12. Offline

    PogoStick29

    I use IntelliJ a lot and have never had this problem. Are you sure the project is set up correctly? If you host a join.me session, I can have a look.
    Also, there isn't a chance you imported the wrong String class, is there :confused:
     
  13. Offline

    jorisk322

    wdlpddlpdpagkaglga. Wut? Importing the String class?
     
    HelpfulBeast likes this.
  14. Offline

    PogoStick29

    Maybe he made his own String class. Just trying to help. No need to freak out.
     
    HelpfulBeast likes this.
  15. Offline

    LandonTheGeek

    Hey guys, we have got the string error sorted out, I just didn't use the JDK correctly. :p Big thanks to PogoStick29. If you don't know him, great guy. Great tutorials.

    Thanks guys, solved.
     
    jorisk322 and PogoStick29 like this.
  16. Offline

    jorisk322

    Too late, I called 911. They're coming to get you.
    No idea, sorry.
     
    HelpfulBeast likes this.
Thread Status:
Not open for further replies.

Share This Page