I am extremely new to java (about one week of experience at the moment). I have made a fair amount of simple programs in an older version of eclipse Juno on a PC. I copied all of the files onto a flash drive and put them into the workspace of eclipse kepler on my mac laptop. Now every single line of code is unrecognized and the JRE system library folder is gone from all of the projects. I am not sure how to fix this and I would love if someone will help my noob self at this. Thanks!
You have to configure the jre from your mac in eclipse. You find it under window preferences and search for jre.
After that, in your eclipse project you can use the new configured jre (project properties - Java Build Path)
Hope this helps.
Related
I need to work with eclipse Oxygen (or at least neon), and I do not have administrator rights on my pc.
I downloaded a 64bits portable version of eclipe oxygen (photon) :
https://sourceforge.net/projects/eclipse-neon-portable/
I'm using OpenJdk8 (JDK1.8) also in 64bits.
Here is my problem:
I start eclipse with the path of the 1.8 JDK, but I don't have Java editor.
Indeed I can't open Java view or create a Java project, even the Syntax highlighting colors for .java..
Does the problem come from the Eclipse editor? From the Jdk? From the Eclipse configuration?
I'm open to any new solution!
Thanks in advance.
EDIT: I'm working with the EMF editor and I need the Java one to edit compile the generated java code.
I am using Eclipse Neon on my MacBook & every time I start Eclipse it prompts me for my workspace again and again even though I set it as my default one.
Same goes for the plug-ins I have installed , I need to install eclipse decompiler every time I load eclipse.
I get an error like : "This wizard helps you to import and reinstall previously installed plug-ins. It is triggered because
either you are launching eclipse for the first time or your Eclipse has been updated."
Can someone please assist me with this issue ?
I had the same problem after updating my Mac to Sierra: Eclipse would not remember the default workspace. After moving Eclipse into the Application folder, the problem disappeared.
The issue seems to come from a Mac OSX Sierra feature called 'path randomization' (see eclipse bug 507328). The actual solution to avoid the path randomization seems to be for eclipse to provide signed .dmg images (bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=461670).
Two workarounds that I can suggest are:
Start from the eclipse oomph installer when installing eclipse (see https://www.eclipse.org/forums/index.php?t=rview&goto=1754574#msg_1754574)
Start the actual eclipse executable file instead of opening the .App container
I'm learning Haskell and I need to install Haskell plugin on Eclipse.
I have first installed Eclipse Kepler and then installed the Haskell plugin from http://eclipsefp.sf.net/updates. The plugin installation went ok but the Haskell perspective is not visible at Window > Open Perspective > Other. It's visible at Help > Installation Details, though.
I've come across similar problem at this post:
Plugins installed on Eclipse not visible
I've applied all suggestions: I've started Eclipse as root, I've changed the installation path from /Applications to ~/, I've given write access to plugins folder, no luck.
I've erased Eclipse Kepler and installed Luna, still no luck.
I've updated the JRE to Java SE 7 [1.7.0_71] and edited the Java JRE section at Eclipse preferences, still no luck.
Any help is appreciated, thanks.
My OS X Lion 10.7.4 64bit
I've solved it. The problem seems to stem from multiple java versions installed on Lion.
I've come across this post salesforce Eclipse plugin and there I noticed that multiple Java versions on one system might cause trouble on plugins and in case of saleforce, that was causing trouble on Eclipse plugin or perspective.
Then I've taken a second look at Haskell's Eclipse plugin page Haskell Eclipse plugin and there I saw the java version 7 was emphasized.
So I reckoned that some java version mismatch might be causing Eclipse not to display the Haskell plugin. Btw, my installing the latest (1.7.0_72) version of java didn't change any possibel version mismatch on my Mac OS X, because though I successfully installed 1.7.0_72 version (using the file jdk-7u72-macosx-x64.dmg which I downloaded from oracle.com), the $ javac -version still returned 1.6.0_29.
Then I've found this post multiple java installations on mac os x and added the following line to eclipse.ini
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home/bin/java
before -vmargs, and that finally solved the problem. Now the Haskell plugin and perspective comes up. That's fine.
So I researched a lot about this problem and haven't found anything useful for me yet.
It is mainly about this bug with:
[Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Which seems to be related to a bug Eclipse know themselves.
I have tried running Eclipse Indigo, Eclipse 4.2.1 and Eclipse 4.3 with the same result. I tried starting the Eclipse on the second thread as suggested by somewhere "-XStartThreadSecond"<--- something like that, but Eclipse dont recognize that anymore it seems. So maybe someone found a solution to this after so long time?
I am running OSX Mountain Lion, JRE 6, above Eclipse's and I also tried making JRE 7 work in my Eclipse, but the JRE 7 VM dont exist in the folder it should be(I Haven't installed anywhere else).
EDIT:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=212617
http://www.eclipse.org/forums/index.php/m/809088/
I had the same problem when I was using JFreeChart, however none of the solutions worked. Every time I tried to run java application that created a JFrame it crashed on a Mac.
However, I had realized that I have had included all libraries that came with JFreeChart in the Project build path. If you have the same problem, check your library under:
Project -> Properties -> Java Build Path -> Libraries
All you need are: jcommon-1.0.17.jar, and jfreechart-1.014.jar
If you are not using JFreeChart, still check your build path if you are using some conflicting libraries.
Cheers!
I had the same problem using JFreeChart with Eclipse on OSX. It seems adding only jcommon-1.0.17.jar and jfreechart-1.014.jar into your JAR reference path instead of the whole list of libraries is the solution.
Thanks
is it possible to use Eclipse 3.7 IDE for developing for the 3.5 platform? Or must I use Eclipse 3.5 IDE?
When I try to switch from Eclipse 3.5 IDE to 3.7 I get errors on projects, which were ok before:
Archive for required library: 'C:/.../.metadata/.plugins/org.eclipse.pde.core/.external_libraries/xyz/os/win32/x86' in project 'projectname' cannot be read or is not a valid ZIP file projectname
What do I have to do to exchange the 3.5 IDE with a current one, but still develop for the 3.5 platform?
I hope my explanation did make sense and was understandable :)
Additional Info:
- I never used the RCP before, now I must use it
- It's no option to upgrade the target platform (3.5)
- I searched the net and stackoverflow, but found no answers for using 3.7 and develop for target platform 3.5 (maybe nobody else has these problems or I used the wrong queries)
Cheers
Kai
Use the menu
Window > Preferences:
Plug-in development > target platform
Here you can add your eclipse 3.5 as a target platform, and then set it active.
But I don't think this will solve the errors you mentioned. I think those errors are because you are using the old workspace folder, and there is something not compatible with eclipse3.7. So maybe you can try to switch to a new workspace, and import your projects there.
I just resolved my problem :-)
In my case, there was a plugin jar, that contained the java sources:
jar
com
META-INF
src
plugin.xml
It seems like eclipse is putting jars inside of plugin jars in the following directory:
[WORKSPACE]\.metadata\.plugins\org.eclipse.pde.core\.external_libraries\...
For my plugin, it tried to put the src folder in this directory - which somehow failed.
After deleting the src folder inside the jar, the errors were gone.
RCP == bag of pain :-)