• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

Eclipse won't invoke

 
Ranch Hand
Posts: 1007
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi experts,

I am running into yet another problem...

The thing is Eclipse keeps telling me that it is using jdk15 from .p2 folder but I need to use 1.8 jdk
So, everything is set up in Windows 10 system env
And I repeated that again using



And also this error :

java was started but returned exit code=-80

This is what I have edited in Eclipse.ini


-startup
plugins/org.eclipse.equinox.launcher_1.6.0.v20200915-1508.jar
--launcher.library
C:\Users\xxx\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.0.v20200915-1442
-product
org.eclipse.epp.package.jee.product
-showsplash
C:\Users\xxx\.p2\pool\plugins\org.eclipse.epp.package.common_4.18.0.20201210-1200
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
#C:/Users/xxx/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin
C:\Program Files\Java\jdk-8u291-windows-x64

-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/



So, basically, I have exhausted all sorts of way to make Eclipse "alive" but it just would not be invoked....

Hope someone can help me...and I think the job has flied away for good....

 
Marshal
Posts: 77908
373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure, because I don't know enough about your system, but I think the PATH is wrong; you should have %JAVA_HOME%\bin at the beginning of the PATH, not its end.

[edit] Add percent signs.
 
Campbell Ritchie
Marshal
Posts: 77908
373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Surely you can set an option on your project profile to use a particular JVM/JDK.
 
Marshal
Posts: 4222
556
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't recall ever needing to modify the eclipse.ini file, and I don't think the settings for JAVA_HOME or PATH matter if you are compiling and executing your application from within the Eclipse environment.

Take a look at the Java Build Path and Java Compiler configurations for the project.

Select the runtime execution environment:


Override the compiler version if needed (not normally required)

 
tangara goh
Ranch Hand
Posts: 1007
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The thing is I can't even make Eclipse start.

Now, I downloaded a new copy of JAVE EE Eclipse and the message is they required me to have javaw.exe in your current PATH.

But,I trawled the internet there is not javaw.exe available.

I have also tried copying the jre and jdk to the same folder as Eclipse.

Really, I am lost and hope to get some advice here.

Tks.
 
tangara goh
Ranch Hand
Posts: 1007
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

Latest update, silly me, I didn't double click on the jdk.exe file for it to execute all the files inside and thus the JDK did not get executed at all.

I got a new laptop and my last job I was using the company's and so I forgot everything.

The worse thing is the project I have built for the interview is gone cos I deleted the entire Eclipse and not sure why the workspace is also gone...

Is there a way to recover things ?
 
Campbell Ritchie
Marshal
Posts: 77908
373
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I merged your stuff with the following thread. I hope that is okay by you.
 
tangara goh
Ranch Hand
Posts: 1007
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

So I managed to discover the deleted workspace, thank God.

Now, I hope to get help to re-install Maven since it has been 10 years that I have not been installing maven...time flies and my skills is still so so

I have been installing maven or m2me for the past few hours to no avail.

Please find attached.  So far, I have attempted using New Software installed and via the marketplace but it will always give me some missing components...but isn't all the components should be there and we just download?

I have also tried this link

https://github.com/eclipse-m2e/m2e-core/blob/master/README.md#-installation

but it will also give me some missing components not available.

and I tried this solution as well

https://stackoverflow.com/questions/18934503/maven-for-eclipse-m2e-installation-error

but putting the latest release behind

Same issue

I hope someone can point me to a useful reference tutorial that can help me install the maven plug in.

Tks alot again



eclipse-refuse-m2e-installation.jpg
[Thumbnail for eclipse-refuse-m2e-installation.jpg]
 
Saloon Keeper
Posts: 26886
192
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two JVM contexts of interest in Eclipse (or for that matter in most Java IDEs).

One is the JVM that Eclipse itself runs under. It's defined in the Eclipse.ini file.

The other context is the per-project JVM selection. Eclipse allows you to install multiple JDKs into its development environment and either use a default JDK selection or override that default on a single-project basis.

The other (project) context requires you to define the location(s) of the JDK(s) you want installed via the Eclipse settings GUI and associate a symbolic name that projects that use it will reference. As always, the path you specify MUST be the root directory of the JDK and not one of its subdirectories such as the JDK's bin directory.

Under no circumstances does Eclipse ever use JAVA_HOME internally. JAVA_HOME is a convention and not built into the Java implementation. The Eclipse.ini file serves that purpose for Eclipse itself. The project JDKs don't need a JAVA_HOME either, since it's whatever JDK was attached to the project definition.
 
tangara goh
Ranch Hand
Posts: 1007
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK. Tim, I get your point.

Now, the thing is I still can't get Eclipse to set up Maven.  

I received the following code when I installed Maven for Integration(Lunar and newer) from the market place.

Can you let me know what is the below error trying to tell me and how to make Eclipse accept the Maven plug in ?

 
Tim Holloway
Saloon Keeper
Posts: 26886
192
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse ran out of planets and now operates in continuous upgrade mode - which is just as well, since manual upgrades used to really mess me up.

But I think that "Luna and newer" was an optimistic effort. It was released in 2019.

Try the M2E plugin instead. Not the Luna one, just generic M2E.
 
tangara goh
Ranch Hand
Posts: 1007
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi experts,

Silly me...I think it must be late at night when I downloaded that copy of Eclipse which must be very old.
I reinstalled one and revived the Eclipse with maven.

Only thing is I am getting this error from Eclipse that I do not know what is happening....



[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.dxc:AuthentiateUserdemo >---------------------
[INFO] Building AuthentiateUserdemo 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ AuthentiateUserdemo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ AuthentiateUserdemo ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ AuthentiateUserdemo ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ AuthentiateUserdemo ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ AuthentiateUserdemo ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ AuthentiateUserdemo ---
[INFO] Building jar: C:\Users\xxx\AuthentiateUserdemo\AuthentiateUserdemo\target\AuthentiateUserdemo-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.4.5:repackage (repackage) @ AuthentiateUserdemo ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.712 s
[INFO] Finished at: 2021-05-23T11:25:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.5:repackage (repackage) on project AuthentiateUserdemo: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.4.5:repackage failed: Unable to find main class -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException



Sorry guys I have been searching for relevant problem and solution to no avail.

The closest issue same as mine seem to be below but it is not helpful

https://www.technicalkeeda.com/spring-boot-tutorials/error-failed-to-execute-goal-orgspringframeworkbootspring-boot-maven-plugin202releaserepackage-default-on-project-springboot-execution-default-of-goal-orgspringframeworkbootspring-boot-maven-plugin202releaserepackage-failed-unable-to-find-main-class


I remember I was asked to rename the maven packages something like that but I did not know why I was asked to rename the package....

Hope someone can let me know how to make things work.

Tks.
 
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic