Yes you can transfer eclipse programs from ubuntu to windows and the reverse too.For transferring files from windows to ubuntu you need to export you project from Windows and then import the project to Ubuntu.
Exporting File->Export->General->Archival file and tick the project or files(All files related your project must be ticked) which you want to exportand select where you want to save the files and you also need to name the file.Now you
Maybe the .classpath file in your project directory was not copied as it would be a hidden file under Windows. In Linux anything with it's name starting with . is automatically considered hidden. Do you get those errors even if you create a new Java project in Eclipse and then copy the src folder to the project?The .classpath file tells Eclipse from where to load user-classes besides existing classpath(s). So you may get unresolved class problem without it.
The other answers answer you question, but based on your snapshots, I would bet that your project is configured to use a java runtime/SDK at a hard coded locattion. Try and have a look at your project properties, in the Java Build Path/Libraries/JRE System Library, or in Java Code Compiler. If you see windows-like path, it's not good...
Select Java Build Path on the left, then open the Libraries tab, and develop the JRE System Library item. If you see things like /usr/lib/jvm... you're good. If you see things like c:... that's your problem: the project tells eclipse to look for the java software development kit in a location that is windows-specific.
After first trying to start Eclipse without any parameters to specify the Java VM, I got an error message saying it couldn't find a Java VM called javaw.exe inside the Eclipse folder, so I found where Java was installed and specified that location as the parameter in the shortcut's target. Now I get a different error, Java was started but returned exit code=13.
This can happen when a system has more than one JVM installed, as is often the case on Windows 64-bit (for example, the JRE download page uses the bit-ness of the browser to determine what bit-ness download to offer you, and many people use(d) 32-bit browsers even though they run 64-bit Windows).
The best way to fix this, assuming you do in fact have 64-bit JRE or JDK on your system, is to specify in eclipse.ini exactly which JVM you want it to use. The instructions are detailed in the Eclipse wiki page, but basically you have to specify the -vm option in the ini file - make sure to read the wiki page carefully as the format is very specific.
Specifying the JVM path in eclipse.ini is strongly recommended because doing so isolates Eclipse from any potential changes to your system PATH that some program installers might make (I'm talking to you, Oracle!).
If you are on a 64-bit machine, then you can install the 64-bit JDK and uninstall the 32-bit one. For instance on Windows 10, just go to Settings and under Apps, you will find Java. Click on it and you will find all the different versions. Now you can select which one to uninstall.
So the solution is quite straightforward: You need to synchronise them by updating either one. This shall happen when downloading Oracle Fusion middleware and Eclipse expects a 32-bit environment while your JRE is 64-bit and your JAVA home is pointing to a 64-bit JDK.
Changing environment variables, etc. did not help. So I tried to remove the Java Update 8, but that too did not help. Downloading and installing the 64-bit version of Java 8 SDK fixed my problem. I hope this helps.
Please check whether you have set two JAVA paths in the Environment Variable section. If you already installed two versions of the JDK, it might be, then double check you have put PATH for Java like below.
Installing Eclipse is relatively easy, but does involve a few steps and software from at least two different sources. Eclipse is a Java-based application and, as such, requires a Java Runtime Environment or Java Development Kit (JRE or JDK) in order to run.
Regardless of your operating system, you will need to install some Java virtual machine (JVM). You may either install a Java Runtime Environment (JRE), or a Java Development Kit (JDK), depending on what you want to do with Eclipse. If you intend to use Eclipse for Java development, then you should install a JDK. If you aren't planning to use Eclipse for Java development and want to save some disk space, install a JRE.
A Java 17 or newer JRE/JDK is required, LTS release are preferred to run all Eclipse 2023-06 packages based on Eclipse 4.28, with certain packages choosing to provide one by default. The Installer now also includes a JRE--consider using the Installer. Please see 5 Steps to Install Eclipse.
A Java 17 or newer JRE/JDK is required, LTS release are preferred to run all Eclipse 2023-03 packages based on Eclipse 4.27, with certain packages choosing to provide one by default. The Installer now also includes a JRE--consider using the Installer. Please see 5 Steps to Install Eclipse.
A Java 17 or newer JRE/JDK is required, LTS release are preferred to run all Eclipse 2022-12 packages based on Eclipse 4.26, with certain packages choosing to provide one by default. The Installer now also includes a JRE--consider using the Installer. Please see 5 Steps to Install Eclipse.
A Java 17 or newer JRE/JDK is required, LTS release are preferred to run all Eclipse 2022-09 packages based on Eclipse 4.25, with certain packages choosing to provide one by default. The Installer now also includes a JRE--consider using the Installer. Please see 5 Steps to Install Eclipse.
A Java 11 or newer JRE/JDK is required, LTS release are preferred to run all Eclipse 2022-06 packages based on Eclipse 4.24, with certain packages choosing to provide one by default. The Installer now also includes a JRE--consider using the Installer. Please see 5 Steps to Install Eclipse.
A Java 11 or newer JRE/JDK is required, LTS release are preferred to run all Eclipse 2022-03 packages based on Eclipse 4.23, with certain packages choosing to provide one by default. The Installer now also includes a JRE--consider using the Installer. Please see 5 Steps to Install Eclipse.
There are several package choices. Note that you can install the features from any package into any other package. If you are, for example, planning to do mostly Java development and some C/C++ development, you should download the Eclipse IDE for Java Developers and then add the C/C++ development tools via the "Help > Install New Software..." menu option.
The download will be delivered as a compressed (i.e. a ".zip", or ".tar.gz") file. Decompress this file into the directory of your choice (e.g. "c:\eclipse" on Windows) and ensure you have full Read and Execute permissions. You can optionally create a shortcut of the executable file ("eclipse.exe" on Windows, or "eclipse" on Linux).
Note that there is a known problem with the built-in decompression utility on all current versions of Windows. We recommend that you use a more robust decompression utility such as the open source 7zip when decompressing an Eclipse download. Some people report success when initially decompressing Eclipse into a root directory (e.g. c:\) and then moving it to a more appropriate home (e.g. c:\Program Files\Eclipse)
It is strongly recommended to configure Eclipse with the specific JVM that you want. See the instructions at Eclipse.iniThis is a very important step to be sure that Eclipse is using the JVM you intend and can't be influenced by any other software that might alter your system.The JVM used to launch Eclipse has no affect on whether it can compile Java sources for other Java language versions.
Use the Help > Install new software... menu option to add Kepler features to your Eclipse installation (you can, for example, use this option to add C/C++ development support). Additionally, you can tap into a vast collection of extensions provided by the Eclipse community and ecosystem via the Eclipse Marketplace Client (Help > Eclipse Marketplace). Note that not all Eclipse packages contain the Eclipse Marketplace Client.
If you've "installed" Eclipse but are having trouble getting it to run, the most likely cause is that you have not correctly specified the JVM for it to run under. You may need to edit the eclipse.ini file.
Another common mistake on Microsoft Windows is a mismatch between the "bittedness" of Eclipse and the JVM/JDK. This is the most frequent cause of an Error 13. 64-bit Eclipse requires a 64-bit JVM, and 32-bit Eclipse requires 32-bit JVM--you can not mix-and-match between 32-bit and 64-bit, so make sure the version of Eclipse you installed matches the JVM/JDK that you're using to run it (and make sure you're using eclipse.ini to specify the exact JVM used to run Eclipse, described above).
As a simple test, open a Command Prompt window, move to the directory that is pointed to by the -vm argument in your eclipse.ini, and run the intended java.exe with the -d32 switch to test if it supports 32-bit, or -d64 to test for 64-bit support. It's often simplest to download a version of Eclipse that will work with whatever Java you already have installed.
On more recent versions of the Mac, if you don't have a full JDK of an appropriately high version installed, the OS produces this bogus message. Installing any JRE will not eliminate this problem. A full JDK needs to be installed on the Mac.
Eclipse downloads are not password protected. This is a known problem with the built-in decompression utility on all current versions of Windows. We recommend that you either download the installer or use a more robust decompression utility such as the open source 7zip when decompressing an Eclipse download. Some people report success when initially decompressing Eclipse into a root directory (e.g. c:\) and then moving it to a more appropriate home (e.g. c:\Program Files\Eclipse)
d3342ee215