You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Alina Kazi <al...@gmail.com> on 2021/05/26 11:14:06 UTC
Compilation Error with Maven on 2 Different Machines
Hello Everyone,
We have a royaleComponents library in our Apache Royale jewel project.
We are able to compile it with the mvn clean install command on one machine
and not on the other.
It gives a heap error. Although I have setup the environment variables
already as :
https://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Both machine Logs are available here :
https://github.com/apache/royale-asjs/issues/1113
SDK's are the same on Both Machine, Environment Variables are
almost identical.
Regards,
Alina Kazi
Re: Compilation Error with Maven on 2 Different Machines
Posted by Alina Kazi <al...@gmail.com>.
Hi Alex,
Thanks for answering.
The same source I configured on some other path on the machine(where it
wasn't working) and it worked just by changing the location of the source.
These environment Variables were already set and added to path as well
JAVA_HOME=D:\JavaSE_1.8.291_64\Java\jdk1.8.0_291
JAVA_OPTIONS=-Xms1024m -Xmx2048m
JAVA_OPTS=-Xms12288M -Xmx12288M -XX:NewSize=3072M -XX:MaxNewSize=3072M
-XX:ParallelGCThreads=8
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 -Xms512m -Xmx2048m
JRE_HOME=D:\JavaSE_1.8.291_64\Java\jre1.8.0_291
What was the actual problem? I couldn't trace it.
But it's working well on both machines now without any problem. I continued
working on the project.
Thanks
Alina Kazi
On Wed, May 26, 2021 at 8:44 PM Alex Harui <ah...@adobe.com> wrote:
> The logs don’t show JAVA_TOOL_OPTIONS or the Xmx settings. Pretty sure
> Royale requires at least 1g, maybe event 2g, and more than 512m
>
>
>
> HTH,
>
> -Alex
>
>
>
> *From: *Alina Kazi <al...@gmail.com>
> *Reply-To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Date: *Wednesday, May 26, 2021 at 4:14 AM
> *To: *"users@royale.apache.org" <us...@royale.apache.org>, "
> dev@royale.apache.org" <de...@royale.apache.org>
> *Subject: *Compilation Error with Maven on 2 Different Machines
>
>
>
> Hello Everyone,
>
>
>
> We have a royaleComponents library in our Apache Royale jewel project.
>
> We are able to compile it with the mvn clean install command on one
> machine and not on the other.
>
> It gives a heap error. Although I have setup the environment variables
> already as :
> https://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FOutOfMemoryError&data=04%7C01%7Caharui%40adobe.com%7C814586ddbb6347535e1e08d920376d66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637576244692214318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Bbp8%2FFCFJIn710DML4Ig6dx4SOsaTZAfvcgsIwRs88A%3D&reserved=0>
>
>
>
> Both machine Logs are available here :
> https://github.com/apache/royale-asjs/issues/1113
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues%2F1113&data=04%7C01%7Caharui%40adobe.com%7C814586ddbb6347535e1e08d920376d66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637576244692214318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=r%2FrY8krQa%2FZkvXaNnF%2ButmIvJkm7zfysSX8MV%2F1knKE%3D&reserved=0>
>
>
>
> SDK's are the same on Both Machine, Environment Variables are
> almost identical.
>
>
>
> Regards,
>
> Alina Kazi
>
>
>
>
>
>
>
Re: Compilation Error with Maven on 2 Different Machines
Posted by Alina Kazi <al...@gmail.com>.
Hi Alex,
Thanks for answering.
The same source I configured on some other path on the machine(where it
wasn't working) and it worked just by changing the location of the source.
These environment Variables were already set and added to path as well
JAVA_HOME=D:\JavaSE_1.8.291_64\Java\jdk1.8.0_291
JAVA_OPTIONS=-Xms1024m -Xmx2048m
JAVA_OPTS=-Xms12288M -Xmx12288M -XX:NewSize=3072M -XX:MaxNewSize=3072M
-XX:ParallelGCThreads=8
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 -Xms512m -Xmx2048m
JRE_HOME=D:\JavaSE_1.8.291_64\Java\jre1.8.0_291
What was the actual problem? I couldn't trace it.
But it's working well on both machines now without any problem. I continued
working on the project.
Thanks
Alina Kazi
On Wed, May 26, 2021 at 8:44 PM Alex Harui <ah...@adobe.com> wrote:
> The logs don’t show JAVA_TOOL_OPTIONS or the Xmx settings. Pretty sure
> Royale requires at least 1g, maybe event 2g, and more than 512m
>
>
>
> HTH,
>
> -Alex
>
>
>
> *From: *Alina Kazi <al...@gmail.com>
> *Reply-To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Date: *Wednesday, May 26, 2021 at 4:14 AM
> *To: *"users@royale.apache.org" <us...@royale.apache.org>, "
> dev@royale.apache.org" <de...@royale.apache.org>
> *Subject: *Compilation Error with Maven on 2 Different Machines
>
>
>
> Hello Everyone,
>
>
>
> We have a royaleComponents library in our Apache Royale jewel project.
>
> We are able to compile it with the mvn clean install command on one
> machine and not on the other.
>
> It gives a heap error. Although I have setup the environment variables
> already as :
> https://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FOutOfMemoryError&data=04%7C01%7Caharui%40adobe.com%7C814586ddbb6347535e1e08d920376d66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637576244692214318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Bbp8%2FFCFJIn710DML4Ig6dx4SOsaTZAfvcgsIwRs88A%3D&reserved=0>
>
>
>
> Both machine Logs are available here :
> https://github.com/apache/royale-asjs/issues/1113
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues%2F1113&data=04%7C01%7Caharui%40adobe.com%7C814586ddbb6347535e1e08d920376d66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637576244692214318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=r%2FrY8krQa%2FZkvXaNnF%2ButmIvJkm7zfysSX8MV%2F1knKE%3D&reserved=0>
>
>
>
> SDK's are the same on Both Machine, Environment Variables are
> almost identical.
>
>
>
> Regards,
>
> Alina Kazi
>
>
>
>
>
>
>
Re: Compilation Error with Maven on 2 Different Machines
Posted by Alex Harui <ah...@adobe.com.INVALID>.
The logs don’t show JAVA_TOOL_OPTIONS or the Xmx settings. Pretty sure Royale requires at least 1g, maybe event 2g, and more than 512m
HTH,
-Alex
From: Alina Kazi <al...@gmail.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Wednesday, May 26, 2021 at 4:14 AM
To: "users@royale.apache.org" <us...@royale.apache.org>, "dev@royale.apache.org" <de...@royale.apache.org>
Subject: Compilation Error with Maven on 2 Different Machines
Hello Everyone,
We have a royaleComponents library in our Apache Royale jewel project.
We are able to compile it with the mvn clean install command on one machine and not on the other.
It gives a heap error. Although I have setup the environment variables already as : https://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FOutOfMemoryError&data=04%7C01%7Caharui%40adobe.com%7C814586ddbb6347535e1e08d920376d66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637576244692214318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Bbp8%2FFCFJIn710DML4Ig6dx4SOsaTZAfvcgsIwRs88A%3D&reserved=0>
Both machine Logs are available here : https://github.com/apache/royale-asjs/issues/1113<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues%2F1113&data=04%7C01%7Caharui%40adobe.com%7C814586ddbb6347535e1e08d920376d66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637576244692214318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=r%2FrY8krQa%2FZkvXaNnF%2ButmIvJkm7zfysSX8MV%2F1knKE%3D&reserved=0>
SDK's are the same on Both Machine, Environment Variables are almost identical.
Regards,
Alina Kazi
Re: Compilation Error with Maven on 2 Different Machines
Posted by Alex Harui <ah...@adobe.com>.
The logs don’t show JAVA_TOOL_OPTIONS or the Xmx settings. Pretty sure Royale requires at least 1g, maybe event 2g, and more than 512m
HTH,
-Alex
From: Alina Kazi <al...@gmail.com>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Wednesday, May 26, 2021 at 4:14 AM
To: "users@royale.apache.org" <us...@royale.apache.org>, "dev@royale.apache.org" <de...@royale.apache.org>
Subject: Compilation Error with Maven on 2 Different Machines
Hello Everyone,
We have a royaleComponents library in our Apache Royale jewel project.
We are able to compile it with the mvn clean install command on one machine and not on the other.
It gives a heap error. Although I have setup the environment variables already as : https://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FOutOfMemoryError&data=04%7C01%7Caharui%40adobe.com%7C814586ddbb6347535e1e08d920376d66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637576244692214318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Bbp8%2FFCFJIn710DML4Ig6dx4SOsaTZAfvcgsIwRs88A%3D&reserved=0>
Both machine Logs are available here : https://github.com/apache/royale-asjs/issues/1113<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues%2F1113&data=04%7C01%7Caharui%40adobe.com%7C814586ddbb6347535e1e08d920376d66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637576244692214318%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=r%2FrY8krQa%2FZkvXaNnF%2ButmIvJkm7zfysSX8MV%2F1knKE%3D&reserved=0>
SDK's are the same on Both Machine, Environment Variables are almost identical.
Regards,
Alina Kazi