Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve warnings when building NetLogo #2184

Open
4 tasks
EwoutH opened this issue Oct 24, 2023 · 2 comments
Open
4 tasks

Resolve warnings when building NetLogo #2184

EwoutH opened this issue Oct 24, 2023 · 2 comments

Comments

@EwoutH
Copy link
Contributor

EwoutH commented Oct 24, 2023

Currently there are 4 warnings emitted when building NetLogo:

  • Link
    [info] compiling 1188 Scala sources and 412 Java sources to /home/runner/work/NetLogo/NetLogo/netlogo-gui/target/classes ...
    [info] done compiling
    [warn] Could not determine source for class org.nlogo.render.Renderer
    
  • Link
    [info] compiling 158 Scala sources to /home/runner/work/NetLogo/NetLogo/netlogo-gui/target/test-classes ...
    [info] done compiling
    [warn] multiple main classes detected: run 'show discoveredMainClasses' to see the list
    
  • Link
    [info] compiling 94 Java sources to /home/runner/work/NetLogo/NetLogo/extensions/gis/target/scala-2.12/classes ...
    [info] done compiling
    [warn] multiple main classes detected: run 'show discoveredMainClasses' to see the list
    
  • Link
    [info] compiling 12 Java sources to /home/runner/work/NetLogo/NetLogo/extensions/r/target/scala-2.12/classes ...
    [info] done compiling
    [warn] multiple main classes detected: run 'show discoveredMainClasses' to see the list
    
@brandesNW
Copy link
Contributor

Thanks for creating an issue for this.
I don't know if there is a simple solution for this.

We have 2 Renderer classes used with the GUI. The gl one is used with JOGL to create ThreeD views.
./netlogo-gui/src/main/render/Renderer.java:public class Renderer
./netlogo-gui/src/main/gl/render/Renderer.java:public class Renderer

The appropriate one cannot be determined at compile time.

similarly if you get the multiple main message and run 'show discoveredMainClasses' to see the list I think a similar situation holds.

I know we have

/netlogo-gui/src/main/swing/TextFieldBox.java: public static void main(String[] argv) {
./mac-app/src/main/java/org/nlogo/app/MacApplication.java: public static void main(String[] args) {

@SethTisue
Copy link
Collaborator

I suspect that setting mainClass would avoid the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants