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

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

Related

Multiple persistent errors IntelliJ

I run IntelliJ IDEA version 2019.2.3 on a Windows 10. We use the same version at school. It works there, but not on my home laptop. I've set the environment and CMD shows the correct path of Java. The JDK 1.8 is also properly installed. Please , what could the problem be ?
I want to thank everyone for taking the time to give a helping hand !
The answers I received via Support at Jet Brains crashed the app or made it unusable. The FAQ links they provide is a collection of vague workarounds. And, especially for someone that is a total beginner and has no guidance in editing non-destructively, it won't work.
I would also like to post the only solution that worked on the Cyrillic issue with IntelliJ Idea, since I know other people have had it as well and I hope it will be useful for others in the future. This came from my teacher at Link Academy Bucharest, Mr. Bogdan Posa.
The actual thing that needs to be modified is the existent file called idea.properties, found in the BIN folder within the Idea installation folder. This only worked after I had re-installed Idea in a different place than "C:/Users/Cyrillic username/" which Idea was picking by default to install itself. So it will be something like C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.2.3/bin. The idea.properties file can also be opened with Notepad to avoid crashing Idea (happened many times). Within the text editor, find and edit the value of idea.config.path, removing the comment and writing the new location/path of the Idea installation folder. Windows might not allow you to save the edited idea.properties file in that original location and it might ask if you want to save it in the Documents folder instead. Just say yes, save it there and then copy/paste it back to the Bin folder, it will accept it. After this, you will have to open Idea with "right-click open as Administrator". Apparently, as long as there still is a path containing Cyrillics in a username, Idea will not run your project so if you can't avoid it, just play along and Run as Admin when opening Idea. That's how it NOW WORKS for me, after several re-installing and changing properties, environments and every damn thing. I was close to hugging ECLIPSE.... :) Hope this helps, Cyrillic users !
No, not at all. This is a kind of wird exception.
You can change the config location of intelliJ.,
This can be done in:
IntelliJ Menu: Help | Edit Custom Properties…
Then it will create a file under: IDE_HOME\bin\idea.properties
Example of the configs:
idea.config.path=c:/work/idea/config
idea.system.path=c:/work/idea/system
idea.plugins.path=c:/work/idea/plugins
More info:
https://intellij-support.jetbrains.com/hc/en-us/articles/207240985-Changing-IDE-default-directories-used-for-config-plugins-and-caches-storage

I've been coding with notepad++ and now I'm getting into Eclipse IDE and I'm having trouble with my older projects

So,
I have been coding Java last semester (college) and we've always done it in Notepad++ , compile and execute by CMD (very simple programs though) and now I want to start codding in Eclipse, since I heard that it saves you a lot of time in syntax and gives you a heads up on typos and errors (Also I'm tired of compiling and executing by console). But the thing is that I usually have my code into two folders (model and interface) and use the
package modelo;
package interfaz;
And now I execute eclipse and open these files, but it doesn't seem to work, I mean the code shows up and I can edit, but it wont show help or even let me execute the code. I know it must be a very noobie question but I can't seem to make it work.
Update:
This is what i get when i import my "project"
This is the error
The project is not configured as Java project:
Create a Java project via File > Other...: Java > Java Project
Copy the content of the src folder into the src folder of the new project
In the new project, open the class that contains the main method and click the Run button
maybe eclipse didn't figure out which main you want to run.
try right click on Menu.java -> run as -> 1 Java Application
You need to create a project in Eclipse first, then add packages and classes in that project, make sure that the JDK in classpath is configured correctly

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.

I wnt to run JavaHelp both from IDE and jar file

I have an application (DrawFBP) which has a Help facility. built using JavaHelp. I actually had it working for several years on the Eclipse IDE, but I had never tested it running in the jar file. The Help facility uses a number of html files, and some other stuff, and one informant said I can get them included on the jar file by putting them in a resources folder (src/main/resources) . This seems to have worked! After lots of restructuring, I got my Help facility working on the jar file, but it stopped working on the IDE. The IDE version is crashing on a FileNotFoundException referencing a file with extra levels of qualification - where do they come from? I am probably making several dumb errors - but help would be much appreciated! The project can be found on GitHub - https://github.com/jpaulm/drawfbp . The code and resources are there, but Git wants me to add all my code back in again - not sure why... TIA
Somehow got it working - the trick seems to be to include the resources in a folder called 'resources' under src/main. I will accept this answer - unless someone comes up with a better one!

Lost resources after importing project in Eclipse

I've been writing my java in a text-editor, compiling and running my code with a batch-file. I'd put all my resources (.png-files) in the bin-folder for my classes to read.
this is the structure of the map.
MyProject
bin
src
batch-file
After 8 months of coding in Notepad, I finally decided to give an IDE a chance and went with Eclipse. I created a project called MyProject, having understood that was the way to import existing source code. Next thing I know, my .png files doesn't exist anywhere on my computer (I can't find them with Windows search function) I am very upset and angry and regret having deployed Eclipse at all. Can someone PLEASE give me good news and tell me how to get those lost resources back?
No good news my friend...if you decided to do that big jump you should read something about how eclipse (or another ide) organizes projects....specifically the result of incremental compiler (classes) are written (by defaults) in a directory called... bin!.. probably that's the reason why you're not finding your files...you lost them
.

Categories