Think I'm being stupid... (package net.risingworld does not exist)
-
- English
- yahwho
- Thread is marked as Resolved.
-
-
But with: import net.risingworld.api;
I get a package net.risingworld does not exist?Hmm... does that mean the line in question is just import net.risingworld.api;? In Java it's always necessary to specify the class you want to import (e.g. import net.risingworld.api.Server;), otherwise it won't work unfortunately. If you want to import the whole package, it would be import net.risingworld.api.*; etc.
If that doesn't help, could you maybe share a screenshot of the error you're getting?
On the screenshot it also looks like you're using an older version of netbeans, is that correct? I ran into issues using an older netbeans version after upgrading to JDK 20 (apparently my old netbeans version wasn't compatible with the latest JDK). Maybe it was specific to the version I was using, IDK, but if you run into any other issues, it may be necessary to upgrade to the latest netbeans version
-
Oh Gods...
Did I say I was being stupid?
It was late at night and I was basically well past my bedtime! (that's my excuse and I'm sticking with it).
On the screenshot it also looks like you're using an older version of netbeans, is that correct? I ran into issues using an older netbeans version after upgrading to JDK 20
Yep old trusty 8.2 RC.
By the sounds of it maybe me missing the .* was a blessing in disguise as I best upgrade my JDK before I start
-
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!