asterics / AsTeRICS

The Assistive Technology Rapid Integration & Construction Set
http://www.asterics.eu
Other
55 stars 27 forks source link

ARE: Are.exe differs to start.bat #36

Closed deinhofer closed 8 years ago

deinhofer commented 10 years ago

Starting the PongGame plugin using the Are.exe executable on windows leads to a crash of the ARE. When using the start.bat instead, the ARE does not crash.

cristobaldobranco commented 10 years ago

Does the Are.exe do the same call to start the OSGi framework: %JAVA_BIN% -Dorg.osgi.framework.bootdelegation=* -DAnsi=true -Djava.util.logging.config.file=logging.properties -jar org.eclipse.osgi_3.6.0.v20100517.jar -configuration profile -console

The bootdelegation property is necessary in order to allow LibGDX in the PongGame plugin to see all the packages it needs

benjaminaigner commented 10 years ago

It is hard to determine, there is no sourcecode for this .exe file...

On 05/21/2014 04:14 PM, cristobaldobranco wrote:

Does the Are.exe do the same call to start the OSGi framework: %JAVA_BIN% -Dorg.osgi.framework.bootdelegation=* -DAnsi=true -Djava.util.logging.config.file=logging.properties -jar org.eclipse.osgi_3.6.0.v20100517.jar -configuration profile -console

The bootdelegation property is necessary in order to allow LibGDX in the PongGame plugin to see all the packages it needs

— Reply to this email directly or view it on GitHub https://github.com/asterics/AsTeRICS/issues/36#issuecomment-43759384.

cristobaldobranco commented 10 years ago

You might be able to look it up in the OSGi log and check if there are exceptions related to not being able to load class sun.misc.Unsafe. If this is the case the property is not set.

On Wed, May 21, 2014 at 4:18 PM, benjaminaigner notifications@github.comwrote:

It is hard to determine, there is no sourcecode for this .exe file...

On 05/21/2014 04:14 PM, cristobaldobranco wrote:

Does the Are.exe do the same call to start the OSGi framework: %JAVA_BIN% -Dorg.osgi.framework.bootdelegation=* -DAnsi=true -Djava.util.logging.config.file=logging.properties -jar org.eclipse.osgi_3.6.0.v20100517.jar -configuration profile -console

The bootdelegation property is necessary in order to allow LibGDX in the PongGame plugin to see all the packages it needs

— Reply to this email directly or view it on GitHub https://github.com/asterics/AsTeRICS/issues/36#issuecomment-43759384.

— Reply to this email directly or view it on GitHubhttps://github.com/asterics/AsTeRICS/issues/36#issuecomment-43759915 .

eldufdo commented 10 years ago

the exe file was generated with the bat2exe script from http://www.f2ko.de/programs.php?lang=de&pid=b2e. Maybe there are alternatives to this that work.

deinhofer commented 10 years ago

Yes there is an error message that "sun.misc.Unsafe" classes can't be loaded. But how is this possible? Maybe making a release does not always regenerate a new ARE.exe ? Maybe the currently checked in ARE.exe refers to a start.bat without -Dorg.osgi.framework.bootdelegation=*

deinhofer commented 10 years ago

The Are.exe corresponded to the file start_noconsole.bat which did not include the special parameters that are needed for the PongGame. Fixed it by merging the .bat files: added the splash-screen and usage of javaw to start.bat deleted start_noconsole.bat

deinhofer commented 9 years ago

As we again had problems because of a not up2date Are.exe, I would like to suggest that the compile tool mentioned above is integrated into the build process.

When calling

ant

The Are.exe should also be recompiled from start.bat

Furthermore, start_debug.bat should be integrated into start.bat and reduced to just calling start.bat with some special flags to avoid code redundancy and related bugs and maintenance problems.

deinhofer commented 8 years ago

Fixed with the new ARE.exe program, that calls start.bat as an external process consuming stdout and stderror.

This approach should ensure that all is up2date, even if somebody changes start.bat