IntelliJ IDEA error: not able to create a new project - java

I am having trouble creating a new Java program. I am using IntelliJ IDEA 15.0.1, and when I right click and select new, it only allows me to make a "File", which does not allow me to code.
Please help! Thanks!

I ended up making a mistake. What you have to do, is go to file at the top left corner, and click Open. Make sure you go to the Java file, not the src file/anything else. It should work from then.

Related

How do I insert a template to write code on with intellij idea

From this screen
I cannot figure out how to get a basic template or scratchpad or whatever it's so that I can start writing code in java. Any help would be appreciated.
update
Ok, I did that and got this
Then it brought me back to the same window
It looks like you created an "empty project".
Try to create a new project File -> New -> Project and select Java as the project type.
then, you should see a src folder which is blue. Right click from here to create your first java class.

Can't open file in java-eclipse neon

I am just starting off in Java and trying to follow buckythenewboston on you tube. I have java and eclipse neon both downloaded correctly. However, when I create a new project like he showed in the video, I click finish and nothing shows up, in the video it showed on the side there should be a like java symbol with the name of the project I created. Well nothing happens it is blank on my screen. I tried opening a file from the work space in my C drive and that doesn't work either as nothing shows up so I can create a class. I know there is a couple of forum questions with similar title but that is different I think as they can at least get code in where I can't. Any explanation as what is going on would be helpful. I also tried to go to file-import-existing project... but the existing project part isn't an option.
Thanks in advance.
go into your workspace directory and delete .metadata folder, then restart eclipse
Close all perspectives and open a new one, the one you like.

Intellij IDEA "Decompiled.class file, bytecodeversion:52.0 (Java 8

I'm new to Java, I started to use it a year ago.
I was using IntelliJ IDEA Community Edition, but I decided to install the full version of it, and then something went wrong. It always stays in kind of "Decompiled" mode and does not allow to edit file or work with it. I reverted back to the Community Edition, but the problem did not disappear.
Can you please help me how to get to normal mode to work? Any help is appreciated.
It looks like you're opening the class files within the left hand navigation window. Find the source code instead (the .java files) and open those instead - then everything should be normal.
(Look at home05\Solution.java for example, instead of home05\Solution.class...)
Please look at the "src" folder and not the "out" folder. The out folder in intellij shows the decompile version of the code.
In Intellij you need src, not out.
Example is here

How to rename/refactor a whole libgdx/java project in eclipse

Ive made a game with the libgdx framework in eclipse and I want to copy this project in the same workspace so I can make changes to this whilst viewing the original code.
I have tried refactoring before but it all messed up somehow and I ended up having to start a new project and copying over every class ( took a while )
Is there a way to rename the projects in a better way or how do you rename them properly as I obviously did something wrong.
In package explorer
Right click on project
Click Refactor > Rename or press Alt+Shift+R
Give new name

libGDX not setting up the "__libgdx_setup_tmp" file

Screenshot of what is appearing:
So after creating a new project, this is what I'm met with. When I import the project to eclipse, it's still a rar file, rather than an actual project that I can expand.
Here's a picture of what I just described:
How do I go about fixing this? I read that I need to go into the directory and make it so that "write" is enabled, so it can create it, but that option was already checked. So I'm confused on what my next step should be.

Categories