This site requires JavaScript, please enable it in your browser!
Greenfoot back
thinud.bothma@reddam.house
thinud.bothma@reddam.house wrote ...

2021/2/15

Greenfoot netbeans

I loaded the LTA scenario in Netbeans as per instruction. Still not working. Still looking for the main class
RcCookie RcCookie

2021/2/15

#
Which instructions did you follow? You need to load the whole greenfoot framework source and it’s (not very well documented) dependencies into NetBeans/ any ide or that stuff as jar. But if you have the main class you cannot just run it; you will need to pass some arguments (project folder and some other weird stuff). But simply getting Greenfoot as a whole into a jar is quite a challenge, because they didn’t use maven. So the question is: what’s your target? Do you want to be able to debug a scenario from inside your IDE? Because I personally didn’t manage that. But if you just want to code in it and get autocompletations and stuff, you don’t need the jar to actually function, it just has to have all the relevant classes. If you are fine with that, you can look at https://github.com/Rc-Cookie/greenfoot-source. If you just want to hard-code the jar in by for example adding it to the referenced libraries (this at least works in VS Code) you can use the jar from the directory „target“ (use the latest release). If you want to do this properly you can use this project also as a maven dependency with groupId:com.github.rccookie, artifactId:greenfoot-source, version:3.6.1.1 (currently).
You need to login to post a reply.