How to integrate Eclipse Portable with Java Portable? - java

I recently downloaded Eclipse Portable to do some Java Programming anywhere. I also downloaded Java Portable.
How can I integrate Java Portable with Eclipse Portable?
I know that on the "installed" version of these two, I need to set up the CLASSPATH, PATH and JAVA_HOME variables in order to use the Java Compiler(javac.exe)
How can I set this up on a thumb drive? How can I tell Eclipse to use my portable Java?
Please help me, and if possible please be specific and detailed procedure-wise. I am planning to deploy these applications on Windows XP/7 machines.
Any efforts to answer my question will be greatly appreciated!

The following instructions use the folder /apps as an example, but any folder should work.
Download and install Eclipse Portable to any folder. (64 bit or 32 bit)
Download and install the Portable Java Runtime Environment
For 64 bit users: Install Java Portable (64 bit) to /../CommonFiles/Java64
For 32 bit users: Install Java Portable (32 bit) to /../CommonFiles/Java
Open your Eclipse settings file ../EclipsePortable/App/Eclipse/eclipse.ini
Set the -vm as your portable Java installation. (Must be placed before -vmargs)
For 32 bit
-vm
E:/Apps/CommonFiles/Java/bin/javaw.exe
For 64 bit
-vm
E:/Apps/CommonFiles/Java64/bin/javaw.exe

Actually you should install it from within the program itself. I followed this post by berny23 and it worked perfectly (nothing else worked).
You just need the normal java runtime environment and not the
jdk:https://portableapps.com/apps/utilities/java_portable After
putting the files into the jre folder do this:
- Run Eclipse Portable
- Go to "Help" -> "Install new software"
- Select your eclipse version by clicking the small arrow next to "Add"
- search for "java" in the search bar
- Tick "Eclipse Java Development Tools" and hit finished.
- after installation click on "restart eclipse"

You need to set java compiler in eclipse from below path.
Eclipse -> Windows(one of the menu on top) -> Preferences -> Java -> Compiler

Related

I have set all JDK / JRE environment variables correctlly but fails to install Eclipse. [duplicate]

I am trying to use Eclipse on a friends computer but we keep getting this when we run Eclipse
We have the environmental variable set as well.
Edit
it was working before he installed the black berry plug in.
The variable JAVA_HOME is not required by Eclipse. If your Java installation does not put the Java executables in the PATH, you should add those manually.
A faster way to have your Eclipse up and running consists in modifying the eclipse.ini and using the -vm option.
http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example
I had the same problem. For me, I needed the JDK. So I had to install the JDK. It should match the build platform that is, 64bit vs. 32bit windows. After that, I removed, the -vm line from the eclipse.ini file (the suggested fix). It was giving me the "Can't create virtual machine" error. The current release of JDK is version, 7 whereas the Android Developers Toolkit version of eclipse is currently based on JDK 6. But it seems to work. Eclipse came up and is functional. Haven't actually written a program yet.
Go to eclipse folder (where eclipse is installed) and open eclipse.ini file in your editor and add the following code after openFile tag.
-vm C:\Program Files\JDK6\bin\javaw.exe
That's all.
I had a similar problem, since our Java and JDK is consistently updated by our service desk, including uninstalling old JDKs. They take care of the PATH for us, but then the JRE that Eclipse was used to "seeing" was gone. So, the thing that has worked best for me is to modify the shortcut's "target" from:
"C:\Program Files\Eclipse\Eclipse IDE for Java EE Developers\eclipse.exe"
to
"C:\Program Files\Eclipse\Eclipse IDE for Java EE Developers\eclipse.exe" -vm "C:\Program Files\Java\<jdkver>\jre\bin\javaw.exe"
That will point Eclipse toward to the JRE in the JDK you want it to use, and then you can update that shortcut when your JDK updates.
This is on Windows 64bit, obviously.
It can also happen on mismatch of JAVA and Eclipse bit version.
for eg:
If in your System java is 32 bit and you are trying to install Eclipse of 64 bit then the same situation might occur.
Because Eclipse will look Java in Program Files while at the same time Java may be present in Program Files (x86).
So in this case eclipse will not get java and throw the same error.
While installing eclipse, Jre missing :
I solved my error as follows:-
This error may comes if you have 2 program files folder in your system.
"Program files" &
"Program files x86".
Please install JDK&JRE in the "Program files" folder.
Hope your jre missing error get solved.
this works for me:
open eclipse.ini file in your editor and add the line: -vm C:\Program Files\JDK11\bin\javaw.exe
update system PATH with correct JDK path.

"Java for Windows missing" dialogue while installing Eclipse

I tried installing Eclipse Neon.3 (4.6.3) for 64 bit. The installer keeps redirecting me to a page that tells me to install a Java JRE/IDE (http://download.eclipse.org/oomph/jre/?vm=1_1_7_0_64_0&pn=Eclipse%20Installer&pu=http://wiki.eclipse.org/Eclipse_Installer&pi=http://download.eclipse.org/oomph/jre/128x128.png), even though I've installed the JRE(1.8.0, for 64 bit) and set the paths correctly.The Environment variables dialog box
Is it something wrong with the path? Or do I have to download the IDE too?
P.S. I'm sort of a noobie here, so I can't directly insert the image, sorry.
Any help?
Your link says:
or a Java Development Kit (JDK) if you plan to do Java development:
So i would install a JDK instead of a JRE.
Also the value of PATH environment variable should start with:
%JAVA_HOME%\bin; ...
Try installing the "64 bit" rather than the "86 bit", worked for me

Eclipse keeps crashing

Eclipse keeps crashing for some reason and I'm not sure why. I looked at other answers and tried to increase the heap size, but that didn't work.
These are the errors that I'm getting.
I'm on windows 8.1, java 64 bit
Just a guess: You are using the Java installed in Windows\system32, but the Java you want to use is a 64bit one. So try the following steps (recommended anyway):
Go to the directory where your workspace and / or Eclipse is installed.
Create there a Shortcut, that references the file eclipse.exe in the Eclipse installation.
Open that shortcut then, and add the following parameters:
-vm <path>: Absolute path to the Java runtime that should be used. Ends in (on windows) javaw.exe.
-data <path>: References the workspace (absolute or relative) that you were using.
Start then Eclipse by using this shortcut, and see if that helps.
As a rule, you should use all the time Java 32bit with Eclipse 32bit and Java 64bit with Eclipse 64bit.
See the Help Eclipse for all runtime options.

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse

Tried googling but couldn't found the solution.
Using Windows 7 Ultimate 64 bits.
I have java(64 bits) installed here : C:\Program Files (x86)\Java\jre7
Downloaded Android SDK from here Get the Android SDK
I downloaded the 64 bits considering my windows is 64 bits. Was 32 bits required?
Now whenever i run eclipse.exe I get the following error:
A Java Runtime Environment or JDK must be available in order to run Eclipsec. No java virtual machine was found after searching the following location:
C:\Users..\Downloads\adt-bundle-windows=x86_64-3013131030\adt-bundle-windows-x86_64-20131030\eclipse\jre\bin\java.exe
Sorry can't post a screenshot because don't have any reputation as of now here.
So what should I do?
Do I need to install 32 bit Java or download 32 bit SDK ?
PS: Before running Eclipse I have run "SDK Manager" and it installed some necessary tools. Maybe if this helps.
Just Set your environment variable. Goto to Computer properties -> Advance System Setting -> Environment variables -> System Variables -> path and after a semi colon paste the path of your JRE like this C:\Program Files\Java\jre7\bin click on ok.
Open CMD and type java if this command works properly means your path has been set now. just open you eclipse and it will work this time. You can do this through command line too just type set PATH=C:\Program Files\Java\jre1.6.0_03\bin and press enter.
If still it is not working just paste this set PATH=C:\Program Files\Java\jre1.6.0_03\bin in your eclipse.ini file :)
You have a 32-bit Java. "Program Files (x86)" is for 32-bit programs on a 64-bit system. Either install a 64-bit Java and use the download you have, or get the 32-bit download.
You need to use any of the following configurations:
x64 System, x64 JDK, x64 ADT Bundle
x64 System, x86 JDK, x86 ADT Bundle
x86 System, x86 JDK, and ADT Bundle

Java exit code 13 on Eclipse RCP application (Indigo)

I seem to have a 32bit vs. 64bit problem here. It should be simple to solve, but I'm hoping you can help me by pointing out the problem. I really want to avoid re-installing OSs, Eclipse, several plugins, JDKs and JREs over and over again to find a working solution. Many thanks in advance!
I build on a 64bit Thinkpad, in 64bit Windows 7.
I have built an Eclipse RCP application in Indigo (3.7.1.), 32-bit version.
The only "Javas" I have on this machine is a 1.6.29 32bit JRE, and a 1.6.29 32bit JDK. I've installed these (perhaps in false assumption) to be able to build for 32bit systems, and not screw things up by building on a 64bit machine.
Seems I was wrong: when I export the application (as Eclipse product) I get the dreaded Java exit code=13:
I am sure this is somehow to do with the combination of 32bit software on a 64bit system (if you can prove me wrong, even better!).
Does one of you know how I can set this up properly and still be able to build for win32?
Again, many thanks!
UPDATE
I have installed 64-bit Eclipse 3.7.1, and JRE 1.6_30 + JDK 1.6_30, both 64-bit versions. However, the error remains! I think this might either be a bug, or I'm doing something else wrong.
First of all, here is the error message:
For this build, I didn't use the Delta Pack but instead added the RCP SDK Software Site to the target definition, choosing the option "include all environments" (or similar).
Also in the target definition, I set the target environment to win32 (OS and WS) and x86_64 (arch). Furthermore, I set the Environment to use the default JRE.
In the product configuration, I set the Execution Environment to JavaSE 1.6, and set the JRE to be packaged.
Also, here's my eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
Any ideas?
I would recommend you to install everything as 64bit or 32bit system. That's a common problem with eclipse and I haven't found a better solution.
The Eclipse website tells me that
"Exit code 13 is returned from Main when it wants the launcher to display an error message. Generally, the error message will just be "an error has occurred, check your log file". Look for a log file in your configuration directory."
Some of these errors have been caused by not having the correct java version installed (Cannot run Eclipse; JVM terminated. Exit code=13), while others seem to have been caused by a "#" character in their eclipse directory (http://www.eclipsezone.com/eclipse/forums/t105198.html).
Maybe one of these reasons causes the crash.
Seems this had nothing to do with 32-bit vs. 64-bit and everything with my lack of experience. The product configuration simply wasn't set up correctly. I've bypassed this by creating a new one which uses the automatically created plugin run config from when you start the application via the "Launch an Eclipse application" link in Eclipse itself.
For those who come across a similar problem, here is how it can be done.
Launch the application via "Launch an Eclipse application"
Go to Run > Run Configurations... and memorize the name of the run configuration
Create a new Product Configuration, and choose "Use a launch configuration:" in the wizard. From the dropdown list, choose the run configuration you have memorized in step 2.
Give the new product configuration an ID, Version and Name, and add further info (e.g., in the Product Definition section) as needed.
Synchronize and Launch from within Eclipse to see if everything works fine.
Export and be happy.
Install all in 64bit.
Then to run (emulate) your Eclipse in 32bit
Just: insert an argument in:
Run Configurations... -> Arguments (tab) -> Program arguments : Type -d32
Old question but it seems worth answering. I just had this problem with an RCP based on features. It turned out that I was exporting the RCP with the feature projects closed. When I opened them and exported the product again, everything worked fine.
try moving the project to the root of the drive
c:\test\eclipse\
solved:D
1. check the operating system is it 32 bit or 64 bit.. but i think its not problem on my computer because i am using 32 bit jdk and 32 bit eclipse on my windows 7 64 bit.
2. if u still have problem ... try to move eclipse to C:/ its work for my friends.. with problem returned error 13

Categories

Resources