Jar from Alice project in Netbeans not working

253 Views Asked by At

After using Netbeans to create a runnable jar from an existing Alice 3 project, I get the following error:

system property: org.alice.ide.rootDirectory is not set

and it seems to me that it is set. I am using Linux Mint. Java works. Other runnable jar files work. The plug-ins match. In the Netbeans project properties, the default VM option includes this line:

-Dorg.Alice.ide.rootDirectory="${libs.Alice3Library.src}_root"

I am at a loss. Please help.

1

There are 1 best solutions below

0
Daniel Abeshouse On

The Alice Project should have a fix for this in a future release (we have a bug filed, but a small staff)


For current users there is a work around.

At runtime the ApplicationRoot is setup and reads the property "org.alice.ide.rootDirectory". In there it looks for the platform directory that holds the OS specific libraries like jogl and ffmpeg.

Set this property before ApplicationRoot is used. This can be done in the first line of Progam.main() by calling:

  System.setProperty("org.alice.ide.rootDirectory", "./");

You will also need to copy the platform folder that holds the required libraries into dist (next to the lib folder). It can be found in the Netbeans build directory in src/aliceSource.jar_root/platform