cpscripter Posted July 16, 2022 Share Posted July 16, 2022 Hey guys, I need help I have an open script application for the SDN but I got some feedback that I am stuck on trying to resolve. Anyone familiar with the SDN, can you please review this screenshot of the feedback I got on the script. I am having a hard time understanding what I am supposed to do. If I remove 'dependencies' from the import paths like suggested, intellij shows a "Cannot resolve symbol 'util'" error. The script compiles perfectly locally as it is. My project structure can be seen on the SDN here. CPBloodAltar has a /src folder which contains the java file shown in the fist screen shot linked above ^. Any suggestions would be extremely helpful thank you Quote Link to comment Share on other sites More sharing options...
Czar Posted July 16, 2022 Share Posted July 16, 2022 Okay so for sdn it has to look something like this: Though it seems to be identical to yours, what about the dependencies folder? You shouldn't be importing dependencies.X.Y.Z but instead it's treated as part of your src folder, so And then perfectsmither has src inside Quote Link to comment Share on other sites More sharing options...
cpscripter Posted July 17, 2022 Author Share Posted July 17, 2022 @Czar Yea our structures seem almost the same with some minor differences but I am not seeing how I should change mine. Here is a screenshot from my IDE to help better show my script and package structure. If you can, please let me know if you spot anything wrong or not. Quote Link to comment Share on other sites More sharing options...
Czar Posted July 17, 2022 Share Posted July 17, 2022 Okay so I don't use IntelliJ but I can see that dependencies are still not set up correctly. For example this import: dependencies.util.PoH.PoH; Should be util.PoH.PoH; So "dependencies" can't be a package, it needs to be part of the src folder. If there is a way in IntelliJ to convert the dependencies into its own "project" or module w/e then definitely give it a try. Maybe ask @ProjectPact for an invite to the scripter chat or join the osbot discord? Most scripters use intellij because of the APA guide but imo it's overkill. 1 Quote Link to comment Share on other sites More sharing options...
Gunman Posted July 17, 2022 Share Posted July 17, 2022 3 minutes ago, Czar said: Most scripters use intellij because of the APA guide but imo it's overkill. Explv* Apa's guide uses Eclipse. Also the official guide Token released for setting up scripting environment also using Intellij Quote Link to comment Share on other sites More sharing options...
cpscripter Posted July 19, 2022 Author Share Posted July 19, 2022 @CzarIt took me some time and trial and error but I finally figured out how to achieve what you said! Java is not my native language so the concept of src folder and packages was where my ignorance had me stuck. Thanks for the responses it really helped. Now I should be good to release my script 1 Quote Link to comment Share on other sites More sharing options...
Czar Posted July 19, 2022 Share Posted July 19, 2022 Awesome glad you got it ^^ Gl on release can't wait to see what scripts are next. 1 Quote Link to comment Share on other sites More sharing options...