Configuring JD-Eclipse Java Decompiler plugin for Eclipse Java EE IDE - java

I installed JD-Eclipse to the exact specifications of the directions here. Now when I navigate to a .class file via File > Open, I receive this error:
The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
Do I have to configure the plugin, or do I need to add the .class file to a project repository or something like that?

FileStoreEditorInput is used when a file is not in the workspace. It looks like jd-eclipse can only open files which are in your Eclipse workspace.

Related

Eclipse: I can't find Java Build Path in Project Properties

As the question states, I can't find the Java build path within the project properties itself
My main issue is that I keep getting "The Class file is not on the classpath" error whenever I try to open a .class file from a school project. To fix this I need to access the Java build path within project properties but it is not showing up for me. I'm not sure how to fix this.
I don't have Mac, but i guess You should try this if you haven't done it yet.
File-Import-Existing_project into the workspace. Browse to the location where the .classpath and .project files locates in your project.
Then check your environment variables (google can help with this) and classpath variables:
Window - Preferences - Java - Build Path - Classpath Variables.
The project seems like is a general project (No java project), so it's normal that 'Java build' option is missed.
Besides, you can't open .class files, because is a Java compiled file by the Java compiler. You must search for .java files.

Source not found when open Java Imported Class on Eclipse Luna

I have some problem to open the class inside my project libraries on Eclipse Luna. For the beginning I have .war file of my web apps, I imported that .war files to Eclipse Luna and I could open index.jps files and other files under Web Content folder. But when I'm tried to open the engine class file I got Source not found. This is the screenshot of the errors.
I'm new in Java code and with Eclipse. What's wrong with that errors and how to resolve that problems ? Please anybody knows could help me. Thanks before.
WAR files don't usually contain the Java source code, just the compiled class files which is what you are seeing.
If you have the Java source elsewhere you can use the 'Attach Source...' button shown in that screenshot to tell Eclipse about it.

Exporting WAR from Maven Source files - Eclipse

I am an absolute Java noob so please be kind. I moved to Java web development from PHP recently.
I have Java source code which contains looks like this:
src directory which has .java files
rsc directory which has hibernate xml files
log4jcnf configuration file for log4j
pom.xml file with libraries listed.
WebContent directory
build.xml & a javadoc.xml
Now I would like to export a war file and deploy it on a remote server.
How do I import the code into eclipse, and download the library files and eventually export a WAR file.
I understand these are very trivial questions, but all the resources online assume that the reader is a java developer.
What I have tried so far:
"Open projects from file system" - I locate the "Import Source" and Finish but nothing happens.
New "Dynamic Web project" - I uncheck "use default location" and select the location where my project files are and I get an error
"A project already exists on the file system at this location: /home/path/to/webservice. Either use "Import Existing Projects into Workspace" to create a project at this location or delete the contents of /home/path/to/webservice from the file system."
It might be good idea to read these short tutorials, in case you are new to Java Web Development as well as to Maven.
Maven for building Java applications - Tutorial
Using Maven within the Eclipse IDE - Tutorial
Introduction to Java Web development - Tutorial
Java web development with Eclipse WTP - Tutorial

How to open existing tomcat web application project in eclipse

I want to open my web application which I made using Terminal/Text Editor on Linux into eclipse on windows.
I tried to open it by doing Import existing project but I don't see my servlet files i.e .java files in it and i also see error mark on my WEB.XML.
ty154 is my project name.
My Directory structure is
Tomcat -> Webapp->ty154
Ty154->Images & ->webinfo
Webinfo->classes
I have my JSP files in the ty154 folder and Images inside Image folder.
I have my .JAVA and .Class file inside Classes folder.
Please help me how to open and configure my project in eclipse.
Thanks in advance !!
Its not possible to import the project that you have created using terminal/text editor in to eclipse.You have to create a Dynamic Web Project under eclipse and copy paste the java files under source directory of the project. The jsp and other html files will go in to WebContents folder of the project. Once this is done the eclipse project can be copied and can be imported in to any other eclipse installations.The best read is:http://goo.gl/hPVapt
As you have written source code in terminal environment so you wouldn't be having an eclipse project file to be imported properly. First you need to create an eclipse project and then you can add source from your code directories. This link describes it pretty well:
http://thusithamabotuwana.wordpress.com/2011/06/15/importing-existing-source-code-into-eclipse/
If you have the war file, then you can import the war file directly in eclipse. Go to File>import then select war
For this you need to have Eclipse IDE for Java EE developers
The "Import Existing Project" entry only works for Eclipse projects.
In your situation with a simple project I would create a new Dynamic Web project and copy in the sources to the source folder - just Ctrl-c the files outside Eclipse, and Ctrl-v them inside Eclipse - and the static files to the publish location. You essentially need to know what has been done to ensure it has been done right.

Not able to see the .class files in eclipse after configuring the Jadeclipse plugin

I had configured the Jadeclipse plugin for viewing .class files, but it is still showing "source can't be found" in the particular JAR file.
Can anybody help me with this?
Have a look at JADClipse not working with Eclipse 3.6 for help. Also ensure that Path to decompiler is correct under Preferences in Java -> JadClipse.

Categories