-
1. Re: JBoss Forge install fails / Module main not found in locale module loader
aykay Jun 29, 2012 4:30 AM (in response to aykay)Hey there, I just found out it's related to Cygwin. I tried cmd (Windows command shell) and it works.
This is a pity since, as everyone knows cmd is crap, I'd love to use Cygwin. If someone has a clue on why Cygwin denies proper Forge setup, I'd really appreciate some hints.
-
2. Re: JBoss Forge install fails / Module main not found in locale module loader
lincolnthree Jun 29, 2012 1:18 PM (in response to aykay)Hm,
I don't know actually. Cygwin probably uses some underlying different libraries than cmd. I'm wondering if the new jconsole library that we're playing with would have the same restrictions. It could also have to do with the bash/dos script implementation in cygwin.
~Lincoln
-
3. Re: JBoss Forge install fails / Module main not found in locale module loader
aykay Jun 29, 2012 3:41 PM (in response to lincolnthree)Could be.
Another guess of mine was that the two given root folders
C:\Users\ak\Development\JBossForge\forge-distribution-1.0.5.Final\modules:C:\Users\ak\Development\Cygwin\cygwin\home\ak\.forge\plugins
may be unrecognizable to Cygwin. If you check PATH, Cygwin prefixes all entries derived from Window's Path with
/cygdrive/c/
/cygdrive/c/Program Files (x86)/[...]:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/c/Program Files (x86)/Git/cmd:/cygdrive/c/Users/ak/Development/JBossForge/forge-distribution-1.0.5.Final
But "env | grep forge" tells me it's the case with PATH only. FORGE_HOME is set as on Windows enviroment vars:
- FORGE_HOME=C:\Users\ak\Development\JBossForge\forge-distribution-1.0.5.Final
And forge does absolutely start! (Just crashing on that missing module.) So that prefix
/cygdrive/c/ might not be a candidate.
While writing I just noticed that the term defining the two root folders
[...]Final\modules:C:\Users\ak\Dev[...]
does not look healthy. Colon as path separator and drive indicator should cause trouble here. Is there a way to tell Forge to replace that drive indicator with Cygwin's
/cygdrive/c/
? -
4. Re: JBoss Forge install fails / Module main not found in locale module loader
lincolnthree Jun 29, 2012 3:53 PM (in response to aykay)Interesting... yeah that looks suspicious. I'm guessing that might be the issue. Feel like joining the dev-list to discuss further? We should also create a JIRA to track this issue:
http://lists.jboss.org/pipermail/forge-dev/
https://issues.jboss.org/browse/FORGE
Thanks!
Lincoln
-
5. Re: JBoss Forge install fails / Module main not found in locale module loader
aykay Jun 30, 2012 8:04 AM (in response to lincolnthree)One issue is clearly that Cygwin cannot read something like C:\....
It has to be replaced by /cygdrive/c/....
And I guess this problem cascades to Forge.
As an outsider I really don't know how this could be solved. Maybe a special Cygwin-version (or Cygwin-patch) could do that is generally re-prefixing folder terms?
I am stuck with Windows. So are quite a bunch of developers, I think.
Using CMD is a pain Cygwin could ease. So I'm willing to make my contribution in this thread. This would make Forge more attractive to Win-users.
Apart from Cygwin another option would be a "shell inclusion" into Eclipse. Is there already a plan for doing that?
PS: As a newbie to Forge joining the dev-list would be oversized, but I keep it in mind.
-
6. Re: JBoss Forge install fails / Module main not found in locale module loader
nurnberg Jul 4, 2012 7:52 AM (in response to aykay)This can be solved, if you replace the colons with semicolons in the following segment of the forge_exec_cmd near the bottom of the forge start script:
-modulepath \"${FORGE_HOME}/modules;${HOME}/.forge/plugins;$PLUGIN_DIR\"
-
7. Re: JBoss Forge install fails / Module main not found in locale module loader
lincolnthree Jul 4, 2012 9:49 AM (in response to nurnberg)Thanks for this helpful answer! I've created a JIRA to track this change: https://issues.jboss.org/browse/FORGE-602
-
8. Re: JBoss Forge install fails / Module main not found in locale module loader
aykay Jul 4, 2012 2:16 PM (in response to lincolnthree)Excellent, excellent. Works like a charm! Thank you, Torben.