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

Not launching in Mac OS Mojave 10.14 #5

Open
massisenergy opened this issue Jul 6, 2019 · 3 comments
Open

Not launching in Mac OS Mojave 10.14 #5

massisenergy opened this issue Jul 6, 2019 · 3 comments

Comments

@massisenergy
Copy link

When java jflowsim.Program is run in terminal, it goes into Java but then it halts without opening any window. The following error appears in terminal:

javax.swing.UnsupportedLookAndFeelException: [The Microsoft Windows Look and Feel - com.sun.java.swing.plaf.windows.WindowsLookAndFeel] not supported on this platform
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:574)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:632)
at jflowsim.view.MainWindow.(MainWindow.java:60)
at jflowsim.Program.main(Program.java:25)
Exception in thread "main" java.lang.NullPointerException
at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:217)
at jflowsim.view.img.ImageUtilities.createImageIcon(ImageUtilities.java:28)
at jflowsim.view.configdialog.ConfigDialog.(ConfigDialog.java:30)
at jflowsim.view.MainWindow.(MainWindow.java:70)
at jflowsim.Program.main(Program.java:25)

@biels
Copy link

biels commented Dec 16, 2019

It looks like the images are not included in the repo:
image
This folder should come along with it

@crohr88
Copy link

crohr88 commented Nov 1, 2021

That folder appears to be in the correct location and in the repo?

@crohr88
Copy link

crohr88 commented Nov 4, 2021

I was having the same issue on Windows. The resources could never be found and there was a method trying to get them that always returned null, preventing the GUI from loading.

The problem was that the classpath needs to be set to the src folder explicitly on compilation. Only this exact combination worked, trying to compile in any other way would appear successful but then error when running.

cd to the src folder, then
javac -cp . ./jflowsim/Program.java
You should now be able to successfully launch the program with the following:
java jflowsim.Program

Thank you to Vladimir B. on upwork who helped me figure this out.

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