Not able to launch workspace with Eclipse - java

I am new to mac(OS X). I have installed Java and other mandatory setting as environment path" etc. are done. But I am not able to launch workspace using Eclipse.
Steps done:
Downloaded Eclipse (tried with latest and the slightly older one : neon)
Unzipped the launcher
Clicked on the launcher and done the necessary steps
till the step , it ask to set the workspace, everything works fine. But after choosing or keeping the default workspace, following error appears.
The log file created is empty.

You need to use Eclipse Oxygen.1a (4.7.1a) because you probably are using Java 9 (the recent Eclipse Installer is based on Oxygen.1a, which explains why the installer works in contrast to your Eclipse IDE).
If this does not work, try to start Eclipse with the option -clean or open a new workspace (-data ...).

Related

How to reinstall NetBeans? all the available components( packs and runtimes) are already installed, How to proceed?

Problem with NetBeans re-installation( the first one worked fine): All of the available components are already installed. click cancel to exit the installer. No way to proceed!
Previously I downloaded and installed the window version of NetBeans IDE 8.1 with "All- a full download option (215 MB)" , which contains all the runtimes and technologies available for the NetBeans IDE. https://netbeans.org/downloads/. a weak ago i restored my computer to an earlier point in time. after restore my recently installed applications are deleted including NetBeans, my favorite IDE to run java.
When I try to install it now, I got a problem! it says all the available components( packs and runtimes) are already installed. And I have no way to go forward. The "Next" button is disabled.All of the available components are already installed. click cancel to exit the installer. No Next button. please see the picture
NetBeans IDE 8.1 Installer welcome snapschot
Go to "C:\Program Files" and look for "NetBeans" folder, then delete that folder and try reinstall it, it should work fine this time.
Also,this can help link
On debian you might try go
/usr/local/netbeans-8.2/uninstall.sh
Try deleting the glassfish server and the Apache server from the program files too, if the above don't work

Eclipse Mars with m2e can not change java compile path

While trying to do a maven compile goal on a jar project in eclipse it failed stating that there was no java compiler found. It showed that it was using the path to jre1.8.0_45. My configured java build path in eclipse is using jdk1.7.0_80 and is configured for the correct corresponding environment.
I tried to rename the jre directory while eclipse was open but it showed that something had a lock on it, and sure enough it was eclipse that was launching with jre1.8. If I renamed the jre1.8 directory while eclipse was closed, then it would not launch again complaining that it cant find the java directory.
I guess what I'm getting at here is, is this a bug with Mars? Or am I missing something because everything in Eclipse is pointed to 1.7.
Thanks,
Nate
You should point Eclipse to JDK installation.
Window -> Preferences -> Java\Installed JREs
click Add -> Select Standard VM, Next ->
and then in text box "JRE home" you should put path to JDK home,
it's quite misleading..
BTW you should specify java version in maven-compiler-plugin. M2E plugin will then recognize this settings and configure compiler appropriatelly
http://www.gamefromscratch.com/post/2011/11/15/Telling-Eclipse-to-use-the-JDK-instead-of-JRE.aspx
It's the launch configuration of any m2e build that should point to a full JDK, cf. http://help.eclipse.org/mars/topic/org.eclipse.jdt.doc.user/tasks/task-choose_config_jre.htm?cp=1_3_5_2 (except you will be using a Maven Build configuration, rather than a Java Application).
For most other situations using a JRE should be perfectly fine.

Eclipse Android Project Java Buid Issue

Just installed Eclipse Luna on a new computer with Ubuntu 14.10.
Copied my workspace over.
My projects will not build. The Console continues to show "Java Problem."
For example one of the 500ish errors with Java Problem:
Animator cannot be resolved to a type DefaultClusterRenderer.java /library/src/com/google/maps/android/clustering/view line 882 Java Problem
And it says the same "Java Problem" for about 500 more lines.
I have:
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
as my java path and I also have a copy of the JRE folder with contents within the eclipse folder.
What am I leaving out? My projects were building fine on my old computer.
When importing a workspace into a new computer or version of Eclipse, make sure that your target build versions are the same as in your previous workspace. This project required the Google Play Services Library and a Google Maps Library. Both of which had been marked with a target build of a deprecated version of Android.
Right clicking properties on your project and then selecting Android will allow you to change the build target as needed.

Can't get Eclipse to run with Java FX

Alright so basically, I'm trying to run Eclipse with JavaFX, but then it gives me this error:
You are not running your eclipse instance with Java7 or Java8. The JavaFX tooling is disabled because of this.Make Java7/8 the default system java or adjust your eclipse.ini to pass -vm pointing to your Java7/8 install.
In case you want to turn off this check open your preferences and go to General > Startup and Shutdown and uncheck 'JavaFX Tooling Java Check'
Now I know it isn't pointing to the right SDK, but I have no idea how to change it, since I'm kind of new to this this stuff. I've already downloaded JDK 7.40 as well. I'm also using Ubuntu on a virtual machine, if that even matters anyway. Can anyone help me, I'd appreciate it.
Pre-requirements:
Install Java™ 8.
Install Kepler SR2 (4.3.2) .
The Kepler is still not supporting Java8. What to do?
Open Eclipse
Help > Install New Software…
Enter the following URL into the ‘Work with’ field:
http://download.eclipse.org/eclipse/updates/4.3-P-builds/
Press ‘Enter’
Select category ‘Eclipse Java 8 Support (for Kepler SR2)’
Click ‘Next’
Click ‘Next’
Accept Licence Agreement
Click ‘Finish’
Now jre8 is correctly located.
Now configure JavaFx
Open Eclipse
Help > Install New Software…
Enter the following URL into the ‘Work with’ field:
http://download.eclipse.org/efxclipse/updates-released/0.9.0/site
Press ‘Enter’
Select category ‘Eclipse Java 8 Support (for Kepler SR2)’
Click ‘Next’
Click ‘Next’
Accept Licence Agreement
Click ‘Finish’
It looks like the default java on your system is not java7. What do you get when opening a shell and execute java -version? Solution is to:
A) make java7 the default java
B) start eclipse with -vm
Apparently, you have installed 32bit Eclipse and 64bit JRE/JDK on a 64bit OS. Please use 64bit Eclipse and the problem will be solved. Please make sure JAVA_HOME And JRE_HOME is present in environment variables.
I had the same issue. I tried re-installing Eclipse, but it wouldn't work. I had to completely remove the project and delete all the project files. After that, I re-started eclipse and created the project again. However, this time I made sure the project path included the Java FX library as shown in the screen shot.
Java Build Path
I did this while I was creating the project and then I was able to create the project without any issues. Give this a try.

Eclipse 3.7, Ant, Java 1.7

I went through and uninstalled all Java from my computer. Then I installed JavaSE JDK1.7. I then modified Eclipse configuration so it would start and opened it up. I have an Ant script to build my project and I want to build my project against 1.7, but whenever I run the script, it says
'Launching PROJECT build.xml' has encountered a problem.
Specified VM install not found: type Standard VM, name jdk1.6.0_21
The installed JRE in Eclipse is 1.7 and nothing else. I cannot for the life of me find how to change what Ant is looking for.
This is because you still have the old JDK configured as JRE in the External Tools Configuration" in eclipse - open it via the arrow menu next to this button in the toolbar: , then change it to the Java 7 JDK.
In Eclipse, click the ant file -- Run As -- External Tools Configuration and click on the JRE tab.
Select "Run in the same JRE as the workspace"
Delete the "C:\Users\%USERNAME%\workspace.metadata.plugins\org.eclipse.debug.core.launches\%PROJECT_NAME% build.xml.launch file"
That solved problem for me.

Categories

Resources