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

2022/11/12

How to connect SQLite with Greenfoot

SliceOfCheese SliceOfCheese

2022/11/12

#
I was watching a video on how to use SQLite, and I followed up until I have to ionstall like a packeage ion the program to make it work, since the video guy was in Eclipse, there was no problem, but I searched in greenfoot, and there is no way to install llke a driver or something like that for the correct use of the data base, anyone knows how Can i install a package like that to get my data base to work?, thanks in advance.
zicaDoPantano zicaDoPantano

2022/11/12

#
Hello! how are you ? could you explain better what data would you like to include in sql? I've done some projects using netbeans. It was a program to store username and email and phone. I believe you have to export the data from Greenfoot to use it in either Eclipse or NetBeans.
zicaDoPantano zicaDoPantano

2022/11/12

#
try this. https://www.greenfoot.org/doc/running_on_netbeans
SliceOfCheese SliceOfCheese

2022/11/12

#
thanks, im going to try it out :)
SliceOfCheese SliceOfCheese

2022/11/13

#
@zicaDoPantano I tried to connect netBeans, but I cannot seem to import the librarys as the tutorial says, this library (/usr/bin/greenfoot/lib/extensions/greenfoot.jar) does not exist in my computer, and I searched for one with the same name, found it and doesnt work, until I just straight up imported all greenfoot to netbeans, and still does not work. When I say it doenst work, I mean that the greenfoot funcstions like "getWorld()" are highlighted as an error in the code by neatBeans, and efectively it says that the function is not declared
SliceOfCheese SliceOfCheese

2022/11/13

#
I Solved it, yay! The thing is that instead of going to properties - libraries - modulePath and add the libraries, you just gotta open the library folder on the project, right click, add jar files, and add (in my case) C:\Program Files\Greenfoot\lib\greenfoot.jar and C:\Program Files/greenfoot/lib/bluejcore.jar That solved the problem for me, now the only problem, is that the main class wont run, because according to net beans, theres none, jajajaja.
You need to login to post a reply.