alice-teacher Alice 3 and Netbeans "root directory not set" error

Donald Slater dslater at andrew.cmu.edu
Sun Feb 4 17:19:14 EST 2018


Cool…
I am looking forward to checking this out…

Thanks,
Don


> On Feb 4, 2018, at 12:06 PM, Daniel Abeshouse <dabeshou at andrew.cmu.edu> wrote:
> 
> I found 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.
> 
> You can set this property in code before ApplicationRoot is used by calling:
> 
>   System.setProperty("org.alice.ide.rootDirectory", "./");
> 
> This could be the first line in main().
> Make sure that second directory holds the platform folder with the required libraries.
> It is not quite a single file, but it can be run.
> 
> My verification of this is on my machine at the office. Unfortunately, my VPN just updated, meaning it broke itself, so I may send further details and corrections tomorrow.
> 
> 
> On Sun, Feb 4, 2018 at 11:24 AM, Donald Slater <dslater at andrew.cmu.edu <mailto:dslater at andrew.cmu.edu>> wrote:
> Edward,
> I am guessing that you are trying to create an executable .jar file. This is currently not possible, or I have not yet figured out a solution to the problem you are now wrestling with.
> 
> We are working on a player that will allow you to run Alice Projects without needing Alice, but I cannot now say when it will be ready.
> 
> I am sorry.
> 
> Don Slater
> 
> Alice Project
> 
> Sent from my iPad
> 
> On Feb 2, 2018, at 2:20 PM, Edward Pratowski <epratowski at newhopeacademy.net <mailto:epratowski at newhopeacademy.net>> wrote:
> 
>> Someone, Please Help!
>> I can't figure out how to correct this weird error. The only relevant post I found was on the Alice Teachers' forum more than three years ago. 
>> This is the error:
>> "System property: org.alice.ide.rootDirectory is not set. Alice will not work until this is addressed."
>> I get it when I try to open a jar that I created in Netbeans. 
>> Here is what does work:
>> I can create a runnable jar from my own code in Netbeans. 
>> I can run that jar on any system. 
>> I can create a project in Alice 3. 
>> I can save that project. 
>> I did successfully download and install the Alice plugin for Netbeans.
>> I did double-check the versions of my JDK, my Alice plugin, and Netbeans. They all seem compatible.
>> [maybe there are more details about these versions that I need to check?]
>> I can import my Alice 3 project into Netbeans and run it.
>> I can create a runnable jar from that project.
>> * Here is the problem:
>> When I click on the runnable jar made from the Alice project, I get this error "...rootDirectory is not set..."
>> I checked every setting I could think of and everything seems to match the (reputable) directions I have found online.
>> So I don't know what to do. Please Help!
>> This is the last part of a great project I have that I will share with all Alice users and Java developers, but I have to solve this first.
>> Thank you for your time and consideration.
>> -Ed
>> Edward Pratowski
>> epratowski at NewHopeAcademy.net <mailto:epratowski at NewHopeAcademy.net>
>> 
>> _______________________________________________
>> alice-teachers mailing list
>> alice-teachers at lists.andrew.cmu.edu <mailto:alice-teachers at lists.andrew.cmu.edu>
>> To change settings or unsubscribe visit:
>> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers <https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers>
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu <mailto:alice-teachers at lists.andrew.cmu.edu>
> To change settings or unsubscribe visit:
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers <https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers>
> 
> 
> 
> -- 
> 
> Daniel Abeshouse
> 
> Alice Project
> Carnegie Mellon University
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> To change settings or unsubscribe visit:
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20180204/d5dea795/attachment.html>


More information about the alice-teachers mailing list