This site requires JavaScript, please enable it in your browser!
Greenfoot back
aksi12uhr
aksi12uhr wrote ...

2020/5/15

Greenfoot Scenario in Netbeans

aksi12uhr aksi12uhr

2020/5/15

#
Has anyone managed to run Greenfoot Scenarios in Netbeans? This used to work by calling the main-Method of greenfoot.export.GreenfootScenarioMain method and passing scenario name, name of world class and path to greenfoot-labels as parameters. One way was to configure your IDE as documented on https://www.greenfoot.org/doc/running_on_netbeans. I preferred using a simple starter class to pass the parameters
/** Start Greenfoot scenario in netbeans */
public class GreenfootStarter{
  public static void main(String[] args){
    greenfoot.export.GreenfootScenarioMain.main("FooScenario","FooWorld","\\xx\\yy\\foo\\greenfoot-labels");
  }
}
Both ways worked fine until GF 3.5 Since version 3.6 Greenfoot 3.6 uses JavaFX and the class greenfoot.export.GreenfootScenarioApplication does not have a main-method any more. Does anyone know a working solution for GF versions 3.6?
You need to login to post a reply.