Fresh install - problems with m2m2-start.bat
-
Actually, that may not be it. Can you check your Java path. Currently it's pointing to "C:\Program Files\Java\jre6...". I believe it should point to something like "C:\Program Files\Java\jdk1.6.0_xx...". You may need to add a JAVA_HOME env var to set this. It should be set to "C:\Program Files\Java\jdk1.6.0_xx" where "xx" is the micro version of Java you have installed.
-
Thanks for you quick help,
I entered the JAVA_HOME env var through the Control Panel -> System etc...
Then I ran the startup script again, it made a difference, but now I have a different problem it seems. See screenshot.
Attachment: download link
-
Weird, i just downloaded the core now, ran the bat file and it worked fine. At line 35 in the bat file there is the line "rem echo %M2M2_CP%". Can you remove the "rem" part so that it writes the classpath it is starting with?
-
-
What version of Windows are you using?
-
Windows 7
-
Hmm. Can you try the following commands in a command prompt? Check if the results you get are different from mine.
C:\Users\Matthew>setlocal C:\Users\Matthew>for The syntax of the command is incorrect. C:\Users\Matthew>
-
-
Ha! Now it is a problem with spaces in your path. We'll look into a fix for this, but can you try removing the spaces?
-
Hi Matthew,
I think you nailed it. It started up now.
So in short:
- Make sure you set an env var for JAVA_HOME
- Make sure Mango is installed in a directory without spaces in its path.
Maybe best to put that in the readme file or so, for future users?
Thanks heaps for your help!
How come I don't have to install Apache Tomcat for Mango Automation?
Koen
-
Well, we'll look into fixing the script so that spaces aren't an issue, but it seems like 1. may be necessary, yes.
Rather than having MA run within Tomcat, we switched things around so that the web server (Jetty) runs within MA.