This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 244727 - Windows: "Home directory does not exist", probably problem with backslash
Summary: Windows: "Home directory does not exist", probably problem with backslash
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-26 08:02 UTC by Peter Nabbefeld
Modified: 2017-10-26 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2014-05-26 08:02:46 UTC
Output when starting Wildfly from NetBeans:

Calling "C:\Program Files\wildfly-8.1.0.CR2\bin\standalone.conf.bat"
"JAVA_OPTS already set in environment; overriding default settings with values: -Xms128m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true"
Setting JAVA property to "C:\Program Files\Java\jdk1.7.0_51\bin\java"
===============================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: "C:\Program Files\wildfly-8.1.0.CR2\"

  JAVA: "C:\Program Files\Java\jdk1.7.0_51\bin\java"

  JAVA_OPTS: "-client -Dprogram.name=standalone.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true"

===============================================================================

08:32:49,166 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
Press any key . . . java.lang.IllegalStateException: JBAS015849: Home directory does not exist: C:\Program Files\wildfly-8.1.0.CR2"        -c standalone-full.xml -c standalone-full.xml
	at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:345)
	at org.jboss.as.server.Main.determineEnvironment(Main.java:262)
	at org.jboss.as.server.Main.main(Main.java:92)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.jboss.modules.Module.run(Module.java:312)
	at org.jboss.modules.Main.main(Main.java:460)


---------------------------------------------- END of OUTPUT --------------

Start with cmd shell / doubleclick works without any problems.

Kind regards
Peter
Comment 1 Peter Nabbefeld 2014-05-26 08:06:22 UTC
This line from the above output:

Press any key . . . java.lang.IllegalStateException: JBAS015849: Home directory does not exist: C:\Program Files\wildfly-8.1.0.CR2"        -c standalone-full.xml -c standalone-full.xml


It seems, there's a problem with backslashess (as the last one seems to escape the double quote, resulting in this home directory:
C:\Program Files\wildfly-8.1.0.CR2"        -c standalone-full.xml -c standalone-full.xml

The correct (existing)  home directory would be:
C:\Program Files\wildfly-8.1.0.CR2

(i.e. without the doublequote and the parameters).
Comment 2 Petr Hejl 2015-09-23 15:10:41 UTC
Is this reproducible in NB dev build with stable WildFly 8 or 9? I can't reproduce it. Does your server instance start properly in command line?
Comment 3 Flaubert 2017-10-26 13:26:30 UTC
Hi every Body,

This problem also lost me a lot of time but I ended up finding it.

You just have to configure the environment variables without putting the last antislask (\) at the end. Bingo! finally.