Yes! I answered my own question! I run a command sudo update-alternatives --config java
to change the default java to Sun Java and then ran the netlogo.sh file, that worked beautifully!
Code that I used: (you can see that I chose option 3 - it was 0 before, as marked with the *)
Code:
tuisku@Frog:~/Applications/netlogo-4.1$ sudo update-alternatives --config java
[sudo] password for tuisku:
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/gij-4.4 1044 auto mode
1 /usr/bin/gij-4.3 43 manual mode
2 /usr/bin/gij-4.4 1044 manual mode
3 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java to provide /usr/bin/java (java) in manual mode.
Bookmarks