Updated Java and Eclipse Neon.2 is not working properly - java

I updated my jre to jre1.8.0_121, and when opening my eclipse Neon.2, my Dynamic Web Projects are filled with errors. The Java classes have errors on every line, and the .xhtml files are no longer opening with normal text editing.
Under Windows>Preference>Java>Installed JREs I updated it to read the right location. Both my java and Eclipse are 64 bit.
Does anyone know why this is happening?

Related

unable to open my eclipse due to java error

I was using my eclipse in very well and fine condition before few days. after that, I tried to work on Netbeans IDE, but I configured the Java JRE separately and tried to work with maven with Netbeans. but since the day I added the JRE path value and started using Netbeans I'm completely unable to open my Eclipse.
Java was started but returned exit code = 1
this error is prompt after trying to open it.
Help...enter image description here
Inside eclipse folder open the file eclipse.ini in notepad or notepad++ you can find required java version mentioned like
-Dosgi.requiredJavaVersion=1
and add the following as last line. Before this, you have to close Eclipse (you can add your preferred jdk version).
-vm
Path-to-java11\bin\javaw.exe
Note there is linebreak between -vm and path After making changes, you can start eclipse. For more details, refer this link. https://wiki.eclipse.org/Eclipse.ini

Gluon SceneBuilder won't open the FXML files while IntellijIDEA is open

I have installed both SceneBuilder 11.0.0 and 8.5.0 (not at the same time) and I encountered the problem with both versions. The first time I used the 11 version, it worked fine 1 or 2 times when I opened fxml files from intellij, then, after trying to open the files and nothing happening I closed the IDE and SceneBuilder opened up right away.
I am using Java 8 for the project, thus I downloaded the 8.5 version. I have also tried opening SceneBuilder, then Intellij and then the fxml files, but again, it worked just one time, now it won't open any files.
Also, I can't even open the app by itself while intellij is running. I have updated intellij recently so the version is not outdated, what should I do?

The import Javafx cannot be resolved Eclipse JDK-11.0.1

Using eclipse on windows I've begun to get error messages on Java files containing Javafx imports. Although this was never an issue before. I've tried changing the build path and ensuring I have the latest version of Java (JDK-11.0.1). Javafx is also downloaded from the Eclipse marketplace and was previously working. It appears in the preferences window also. Any help would be much appreciated I have an exam in the morning, meaning this was an awful time for the software to stop working.

Trying to run decompiler in Eclipse Luna

I am trying to debug a jar file I don't have source for, in Eclipse Luna
I have tried various decompilers, and can't get things to run.
The most recent seems to be JDEclipse-Realign at http://mchr3k.github.io/jdeclipse-realign/
It installs without any trouble. I have set set the default file association for "class without source" to be "Class File Editor" like this
I added the jar file to be debugged as an external jar to my project. And when I expand that and right click on a .class file I get what is shown on the web page for JDEclipse-Realign, with Decompiled Source as the default.
And I am getting the blue and white icons for JDEclipse-Realign when I select a class file.
But no decompiled source :( And clicking the blue icon for Attach Decompiled Source does nothing.
I feel like I must be missing one basic thing, but can't figure it out. No errors, just no source.
Or should I be using a different decompiler?
Are any known to work in Luna?
Faced the same problem on Luna and did the following:-
Open Eclipse Luna
Go to HELP -> Eclipse Marketplace
In the find box, type "jad". [stands for Java Decompiler]
You will get a single result titles something as "JadClipse for Eclipse ".
Click on Install and restart eclipse when prompted. Your issue will be fixed.

Eclipse (SWT composite): How to run and where is build?

I am new to Eclipse and Java programming having mainly worked with Microsoft Visual Studio.
I installed Eclipse (Kepler 4.3) with no issues along with WindowsBuilder and SWT.
I created a new project adding in references to SWT, both WindowsBuilder JARS, and resty. Into the project, I created a new package and selected a SWT composite. I gave appropriate names.
The GUI designer came up with no issues. I added in a couple of controls. The idea is to create a hello world application, display that application, and build it. Eclipse has automatically build checked.
Okay, the IDE in designer view shows the GUI of my Hello World application and the source view the source, so no problems there.
I press Run, and the first time I had to select a run configuration, which I selected EclipseStarter. There was not many options. I click on run and nothing happens.
If I go to the project's bin package folder, I see a file with a ".class" extension.
Why does pressing Run|Run (Ctrl+F11) do nothingness? There is a brief hour glass showing, but then nothing after that.
How do I launch the application from within Eclipse?
Is the generated ".class" file the correct runtime? I double click on that and Windows does not know what to do with it?
The end platform will be CentOS, but Java as I understand things, should be platform independent, so my Hello World application should run on my Windows 7 Pro box just as nicely. (I did not try CentOS yet) as I want to see it work on my desktop and know what file to copy over.
I think you selected the wrong option EclipseStarter.
Try running it as a Standalone Java Application.
It is a Standalone Java Application that you're building, right?
(I mean, the analogue of a Windows Forms App in .NET)
1. I guess because you selected the wrong type.
2. Ctrl+F11 is for Running it, F11 only is for Debugging it.
3. The class file has to be run by a JVM, Windows cannot run it directly,
it is not anything like a native executable or like a .NET assembly
(which Windows 7 knows how to run). But as you're using Eclipse you
already have a JVM.
The solution is multi-fold.
I had to delete Eclipse and install the 32-bit version of everything. That simplified life, as 64-bit caused issues running.
Create a new package
From the toolbar, select "Create new visual classes" drop down. Select "SWT" --> "Application windows".
Create the application window
Press the play button, 8th icon having selected the package first.
That enabled to run my Hello World on Windows. The output is a .java.
I still have a problem running from the command line, but that is a different issue.
Summary: My main issue was creating a SWT application window first and that I should have 32-bit for everything.

Categories