thanks for your work on the portable Eclipse version 14.3, which I'm
planning to use via USB Flash drives in class for my programming students.
Nevertheless I can't get Eclipse to work properly, try as I might - Eclipse
just offers me no Java build path, for instance, so I cannot edit or create
any Java projects or even classes.
Maybe this results in the fact the StartScript.bat doesn't create a link in
the eclipse directory, so there's no jre accessible for Eclipse.
If I try the workaround for older Eclipse portable versions and copy the
"java" or "java64" directory content into a "jre" folder in the eclipse
directory, I get the same results.
If you'd help me solve this problem, I'd be most grateful!
If you need more information, please let me know so I can update my posting.
Dear Grunty,
thank you for using Eclipse Portable. Did you install the latest "Eclipse Java Development Tools" package? Here is a short guide: https://sourceforge.net/p/eclipse-neon-portable/wiki/Install%20Features/
As long as you can start the portable Eclipse there should be no problem with your jportable version.
If it's still not working please also tell me what operating system you are using.
Kind regards,
Berny
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First and foremost, if you are going to be using mklink it might be prudent to mention that Fat-32 does not support symlinks.
Formatting USB sticks as Fat-32 is still very very common as it is more universal and is far easier to use when making bootable USB's. Even then, chances are high that someone will format it with Fat-32.
Second, your StartScript is not working. If that is connected to %~dp0 not being useable with Fat-32 properly is something I'm unsure off. Regardless it did a poor job.
Here's something that works for me, and hopefully works for others too. You could theoretically install jportable directly into the jre folder, but that defeats the purpose of the portable apps thingajiggy, so my script copies it for you (retaining folder structure).
The real test for my StartScript.bat comes when I am going to attempt to use it on Windows 7 on a entirely different computer in a couple of days, i will report back on how that went. Regardless on Windows 10 with the latest updates on this computer. It worked. (And I did check the eclipse config report it provides under "Help>About Eclipse Plattform>Installation Details>Configuration and could confirm it said
-Install EclipsePortable using the paf installer as usual on the root of your USB stick. Ergo Example:\EclipsePortable
-Install jPortable so CommonFiles are under root of the usb. Ergo Example:\CommonFiles\Java64
-Take a backup of the StartScript.bat that is in \EclipsePortable\App\StartScript\ folder
(Simple way is to simply change the name of StartScript.bat to StartScript.backup.bat)
- Unzip the contents of the zipfile I provided into \EclipsePortable\App\StartScript\
- You are done, it will automatically create a jre folder for you and copy the contents of Java64 into that one when you try to launch EclipsePortable.exe. It should work. Also it contains some checks so it does not copy over and over each time. P.S if you want to remove the timeout delay, rightclick on StartScript.bat and pick edit, then change delay=1 to delay=0 (can be anything really but for clarity, it's located at the top under @echo off). That will disable all those timeouts, allowing eclipse to startup faster.
Next version of the batch file will contain a additional check that checks everytime you run EclipsePortable.exe if the last modified date of javaws.exe has changed in CommonFiles/Java64/bin
If it detects that it has indeed been changed. It will BTFO the jre folder in eclipse and redo the copy process. Effectively "updating" java for EclipsePortable. Until then just remove the "jre" folder in the eclipse folder (\EclipsePortable\App\eclipse) completely and the bat file will redo the copy process.
Hi Bokoblin,
Thank you for your detailed post.
As soon as Eclipse 1.15 is released, I will implement your script.
I may remove the delay by default because it would annoy most users. But you could add an error message with a link to the wiki + a pause command if no jPortable folder exists.
Kind regards,
Berny23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Berny23,
First of all thanks for the great tool. Unfortunately, the new startup script in 4.15 always copies the Java files at startup if you haven't installed into a root directory.
Changing line 12 to 'if exist %CD%\App\eclipse\jre\bin\javaws.exe' takes care of that.
Cheers,
Deb
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Berny,
Thank you very much for the eclipse portable 22, that I have just installed. Unfortunately it gives me the following error: incompatible JVM.
It’s probably because I have installed the Java Runtime environment last found on the internet. But I have jPortable as well.
I have added in eclipse.ini the path to be taken to get javaw.exe via jportable, but it doesn’t help. It still gives me the same error, therefore I cannot use eclipse portable.
I would very much appreciate your help, thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Berny,
thanks for your work on the portable Eclipse version 14.3, which I'm
planning to use via USB Flash drives in class for my programming students.
Nevertheless I can't get Eclipse to work properly, try as I might - Eclipse
just offers me no Java build path, for instance, so I cannot edit or create
any Java projects or even classes.
Maybe this results in the fact the StartScript.bat doesn't create a link in
the eclipse directory, so there's no jre accessible for Eclipse.
If I try the workaround for older Eclipse portable versions and copy the
"java" or "java64" directory content into a "jre" folder in the eclipse
directory, I get the same results.
If you'd help me solve this problem, I'd be most grateful!
If you need more information, please let me know so I can update my posting.
Thank you very much!
Grunty
Dear Grunty,
thank you for using Eclipse Portable. Did you install the latest "Eclipse Java Development Tools" package? Here is a short guide: https://sourceforge.net/p/eclipse-neon-portable/wiki/Install%20Features/
As long as you can start the portable Eclipse there should be no problem with your jportable version.
If it's still not working please also tell me what operating system you are using.
Kind regards,
Berny
First and foremost, if you are going to be using mklink it might be prudent to mention that Fat-32 does not support symlinks.
Formatting USB sticks as Fat-32 is still very very common as it is more universal and is far easier to use when making bootable USB's. Even then, chances are high that someone will format it with Fat-32.
Second, your StartScript is not working. If that is connected to %~dp0 not being useable with Fat-32 properly is something I'm unsure off. Regardless it did a poor job.
Here's something that works for me, and hopefully works for others too. You could theoretically install jportable directly into the jre folder, but that defeats the purpose of the portable apps thingajiggy, so my script copies it for you (retaining folder structure).
The real test for my StartScript.bat comes when I am going to attempt to use it on Windows 7 on a entirely different computer in a couple of days, i will report back on how that went. Regardless on Windows 10 with the latest updates on this computer. It worked. (And I did check the eclipse config report it provides under "Help>About Eclipse Plattform>Installation Details>Configuration and could confirm it said
-vm
H:\EclipsePortable\App\eclipse\jre\bin\server\jvm.dll
Instructions.
-Install EclipsePortable using the paf installer as usual on the root of your USB stick. Ergo Example:\EclipsePortable
-Install jPortable so CommonFiles are under root of the usb. Ergo Example:\CommonFiles\Java64
-Take a backup of the StartScript.bat that is in \EclipsePortable\App\StartScript\ folder
(Simple way is to simply change the name of StartScript.bat to StartScript.backup.bat)
- Unzip the contents of the zipfile I provided into \EclipsePortable\App\StartScript\
- You are done, it will automatically create a jre folder for you and copy the contents of Java64 into that one when you try to launch EclipsePortable.exe. It should work. Also it contains some checks so it does not copy over and over each time. P.S if you want to remove the timeout delay, rightclick on StartScript.bat and pick edit, then change delay=1 to delay=0 (can be anything really but for clarity, it's located at the top under @echo off). That will disable all those timeouts, allowing eclipse to startup faster.
Next version of the batch file will contain a additional check that checks everytime you run EclipsePortable.exe if the last modified date of javaws.exe has changed in CommonFiles/Java64/bin
If it detects that it has indeed been changed. It will BTFO the jre folder in eclipse and redo the copy process. Effectively "updating" java for EclipsePortable. Until then just remove the "jre" folder in the eclipse folder (\EclipsePortable\App\eclipse) completely and the bat file will redo the copy process.
Last edit: Bokoblin 2020-01-20
Hi Bokoblin,
Thank you for your detailed post.
As soon as Eclipse 1.15 is released, I will implement your script.
I may remove the delay by default because it would annoy most users. But you could add an error message with a link to the wiki + a pause command if no jPortable folder exists.
Kind regards,
Berny23
Hi Berny23,
First of all thanks for the great tool. Unfortunately, the new startup script in 4.15 always copies the Java files at startup if you haven't installed into a root directory.
Changing line 12 to 'if exist %CD%\App\eclipse\jre\bin\javaws.exe' takes care of that.
Cheers,
Deb
Hi deb,
thanks for the information. I changed some lines in the script and reuploaded the 4.15 installer.
It should be working now :)
Dear Berny,
Thank you very much for the eclipse portable 22, that I have just installed. Unfortunately it gives me the following error: incompatible JVM.
It’s probably because I have installed the Java Runtime environment last found on the internet. But I have jPortable as well.
I have added in eclipse.ini the path to be taken to get javaw.exe via jportable, but it doesn’t help. It still gives me the same error, therefore I cannot use eclipse portable.
I would very much appreciate your help, thank you!