Closed hohwille closed 2 months ago
I prefixed line 389 with an echo
and got this output:
start eclipse /B /d/projects/devonfw/software/eclipse/eclipsec -clean -data /d/projects/devonfw/workspaces/main -keyring ~/.eclipse/.keyring -configuration /d/projects/devonfw/plugins/eclipse/configuration/ -vm /bin/javaw -showlocation main -vmargs
So JAVA_HOME
is not set and therefore ECLIPSE_JAVA_HOME
is empty.
$ devon
devonfw-ide environment variables have been set for /d/projects/devonfw in workspace main
$ echo $JAVA_HOME
So JAVA_HOME
is empty but the line cited above is present in my local scripts/devon.properties
.
In IDEasy, I could call ide -d env
to see if it gets overridden and where but here I need to dig deep.
Nothing wrong in...
conf/devon.properties
settings/devon.properties
~/devon.properties
workspaces/*/devon.properties
OMG, I was blind but now I can see it in my settings/devon.properties
:
DEVON_IDE_TOOLS=(mvn npm)
DEVON_CREATE_START_SCRIPTS=(eclipse vscode)
SETTINGS_PATH=${DEVON_IDE_HOME}/settings
export=NPM_CONFIG_USERCONFIG=${DEVON_IDE_HOME}/conf/npm/.npmrc
# Java
export=JAVA_HOME=${DEVON_IDE_HOME}/software/java
# Maven
#export M2_REPO=~/.m2/repository
export=M2_REPO=${DEVON_IDE_HOME}/conf/.m2/repository
export=MAVEN_HOME=${DEVON_IDE_HOME}/software/mvn
export=MAVEN_OPTS=-Duser.home=${DEVON_IDE_HOME}/conf
export=COBIGEN_HOME=${DEVON_IDE_HOME}/conf/.cobigen
export=JENKINS_HOME=${DEVON_IDE_HOME}/conf/.jenkins
DOCKER_EDITION=rancher
After export
there always is a =
instead of a `. So this is not a bug of devonfw-ide but the question is where does this come from. If it was not in
scripts/devon.propertiesI would question if IDEasy broke this during alpha testing but it does not know or care about the
scripts` folder at all.
So I assume that I did something wrong locally (some shell scripting went wild). As I cannot reproduce this, I will close this as invalid. Whenever the error comes back, we can analyze the root cause and reopen.
However, as a learning in IDEasy we should better verify things and should log warning/error(s) if a required variable is empty.
Expected behavior
As a devonfw-ide user, I want to start Eclipse so that I can start coding there.
Actual behavior
Steps to reproduce (bug) / Use Case of feature request (enhancement)
devon eclipse
As you can see
java
is properly installed but when launchingeclipse
viadevon
I get the error from the screenshot above:Related/Dependent Issues
?
Comments/Hints:
I am confused by the
C:/Program Files/Git/usr/bin/javaw
in the error:C:/Program Files/Git/usr/bin/
exists but does not containjavaw
orjavaw.exe
what is expected.So IMHO the
/usr/bin
entry is what becomesC:/Program Files/Git/usr/bin/
. However, the correct location to Java bin folder is on the PATH before that.Affected version: