Jump to content
TheStronciumGuy

NAM 41 installation Error on Linux using the .jar installer

15 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

Hi, im having a problem with the NAM installer on linux, i try to run the jar file with Java command and even chmod +x th  file to run it but it gives an exception that i'll paste here below:

Spoiler

(java:14168): Gtk-WARNING **: 21:02:29.512: Não foi possível localizar a ferramenta de temas no module_path: "murrine",

(java:14168): Gtk-WARNING **: 21:02:29.512: Não foi possível localizar a ferramenta de temas no module_path: "murrine",

(java:14168): Gtk-WARNING **: 21:02:29.512: Não foi possível localizar a ferramenta de temas no module_path: "murrine",

(java:14168): Gtk-WARNING **: 21:02:29.512: Não foi possível localizar a ferramenta de temas no module_path: "murrine",

(java:14168): Gtk-WARNING **: 21:02:29.512: Não foi possível localizar a ferramenta de temas no module_path: "murrine",

(java:14168): Gtk-WARNING **: 21:02:29.513: Não foi possível localizar a ferramenta de temas no module_path: "murrine",

(java:14168): Gtk-WARNING **: 21:02:29.513: Não foi possível localizar a ferramenta de temas no module_path: "murrine",
Exception in thread "main" java.lang.ExceptionInInitializerError
    at installer.tree.JarEntryNode.getRenderer(JarEntryNode.java:294)
    at installer.tree.JarFileTreeRenderer.getTreeCellRendererComponent(JarFileTreeRenderer.java:22)
    at java.desktop/javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:3155)
    at java.desktop/javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:493)
    at java.desktop/javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1344)
    at java.desktop/javax.swing.tree.VariableHeightLayoutCache.updateNodeSizes(VariableHeightLayoutCache.java:903)
    at java.desktop/javax.swing.tree.VariableHeightLayoutCache.invalidateSizes(VariableHeightLayoutCache.java:371)
    at java.desktop/javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(BasicTreeUI.java:465)
    at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(BasicTreeUI.java:3816)
    at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
    at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
    at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
    at java.desktop/java.awt.Component.firePropertyChange(Component.java:8731)
    at java.desktop/javax.swing.JTree.setCellRenderer(JTree.java:775)
    at installer.screens.BrowseFilesPanel.<init>(BrowseFilesPanel.java:68)
    at installer.mainframe.InstallerTabs.<init>(InstallerTabs.java:48)
    at installer.mainframe.InstallerTabs.main(InstallerTabs.java:192)
Caused by: java.lang.NullPointerException
    at installer.tree.JarEntryRenderer.<clinit>(JarEntryRenderer.java:38)
    ... 17 more


OS: "Debian GNU/Linux 10 (buster)"

Java :  openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)
 

Can someone help me with this bug? so i can install on my Steam SC4?

Thanks for your time :)

  • Like 2

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I've had the exact same problem since the NAM 39 installer. I've installed the NAM 39 and 40 selecting each folder manually, it seems that I'll do the same for the NAM 41.

OS: Ubuntu 16.04

Java: openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.16.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.16.04, mixed mode, sharing)

 

  • Like 1

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    8 minutes ago, JoulSauron said:

    I've had the exact same problem since the NAM 39 installer. I've installed the NAM 39 and 40 selecting each folder manually, it seems that I'll do the same for the NAM 41.

    OS: Ubuntu 16.04

    Java: openjdk version "11.0.11" 2021-04-20
    OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.16.04)
    OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.16.04, mixed mode, sharing)

     

    Thanks for the reply :)

    I'll try to do the manual install, its odd not running on linux but well happens 

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    My main desktop is Linux Mint 20 Cinnamon Edition and the .jar file crashes as you described. I run a Virtualbox guest VM of Linux Mint 20 MATE Edition on the desktop OS and the .jar works perfectly. Both environments use JRE/JDK 11.0.10. I run SC4 under the PlayOnLinux WINE environment.

    Sorry there's no fix in that but it shows it can work under Linux. Perhaps there's some distro component, possibly GNOME 3 related (?), nerfing the installer?

    I'll have a go with NAM 41 and see if I can unearth anything concrete.

    • Like 3

    --
    Dave

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    19 minutes ago, Henry Crun said:

    My main desktop is Linux Mint 20 Cinnamon Edition and the .jar file crashes as you described. I run a Virtualbox guest VM of Linux Mint 20 MATE Edition on the desktop OS and the .jar works perfectly. Both environments use JRE/JDK 11.0.10. I run SC4 under the PlayOnLinux WINE environment.

    Sorry there's no fix in that but it shows it can work under Linux. Perhaps there's some distro component, possibly GNOME 3 related (?), nerfing the installer?

    I'll have a go with NAM 41 and see if I can unearth anything concrete.

    That's actually interesting I'm curently running on Gnome and the exception seems to be on the UI I'll try on Cinammon to see but one think im not knowing to install too is the 4gb patch cause im on steam and i dunno how to run the patch to install on the steam game

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    1 hour ago, Henry Crun said:

    My main desktop is Linux Mint 20 Cinnamon Edition and the .jar file crashes as you described. I run a Virtualbox guest VM of Linux Mint 20 MATE Edition on the desktop OS and the .jar works perfectly. Both environments use JRE/JDK 11.0.10. I run SC4 under the PlayOnLinux WINE environment.

     

    I switched to Cinammon but still gives the exception its really odd 

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Am using the latest Linux Mint with cinnamon desktop, to be honest can't help with your problem as while I do have the steam version of SC4 I haven't set it up to use NAM or any plugins, it's more for testing things.

    For actually playing SC4 I use the GOG version and crossover and have never really had any issues with it.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    It's worth pointing out that the only thing you need from the installer process is the resulting Network Addon Mod folder in Plugins. In other words, a simple work-around is to use another OS and boot it off a USB stick or suchlike as a temporary system. From there run the installer, once it's created the Network Addon Mod folder, you just need to move that folder to the Plugins folder on your regular system somehow and you are done.

    I hate to mention Windows in this context, but it's probably the most likely to just work, WinXP under VirtualBox works great for me on a Mac. Windows 10 I believe runs off a USB stick and you can just install and never register it (i.e. no costs). Otherwise, make us of an older version of Linux for the same purposes, so long as you can find a suitable copy of Java to run on it.

    On 26/04/2021 at 5:43 PM, TheStronciumGuy said:

    (java:14168): Gtk-WARNING **: 21:02:29.513: Não foi possível localizar a ferramenta de temas no module_path: "murrine",
    Exception in thread "main" java.lang.ExceptionInInitializerError

    If I've understood this correctly, some library is missing, fixing that requires tracking down which library is needed and where to get it. I've done a search on the best translation I can match to the error, it tentatively looks like the missing library is canberra-gtk-module, see this thread.

    Of course I can't say you should just run the command to install it in Terminal, it may be advisable to do some research first on what is is. It's also entirely possible this library is no longer compatible or functions with the latest linux releases.

    • Like 1

    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    17 hours ago, TheStronciumGuy said:

    I switched to Cinammon but still gives the exception its really odd 

    It's my Cinnamon desktop that throws the exception. My MATE VM does not.

    25 minutes ago, rsc204 said:

    It's worth pointing out that the only thing you need from the installer process is the resulting Network Addon Mod folder in Plugins. In other words, a simple work-around is to use another OS and boot it off a USB stick or suchlike as a temporary system. From there run the installer, once it's created the Network Addon Mod folder, you just need to move that folder to the Plugins folder on your regular system somehow and you are done.

    I hate to mention Windows in this context, but it's probably the most likely to just work, WinXP under VirtualBox works great for me on a Mac. Windows 10 I believe runs off a USB stick and you can just install and never register it (i.e. no costs). Otherwise, make us of an older version of Linux for the same purposes, so long as you can find a suitable copy of Java to run on it.

    If I've understood this correctly, some library is missing, fixing that requires tracking down which library is needed and where to get it. I've done a search on the best translation I can match to the error, it tentatively looks like the missing library is canberra-gtk-module, see this thread.

    Of course I can't say you should just run the command to install it in Terminal, it may be advisable to do some research first on what is is. It's also entirely possible this library is no longer compatible or functions with the latest linux releases.

    I have a mirror copy of my plugins to play on a Win10 laptop so I've been using that to install NAM and the BSC EXE installers and then copying across to my Linux desktop (I'm using the GoG version of SC4) but it would be handy to run the NAM installer natively considering the frequency of recent releases!

    AFAIK, Cinnamon was built on GNOME 3 components and MATE is built on GNOME 2. The linked thread mentions using a gtk 2.0 library so there might be something in that.

    • Like 1

    --
    Dave

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I had a bit of time this morning to try a couple of things, including trying the installer on openSUSE Tumbleweed, Fedora Workstation 34 and Ubuntu 21.10. Worked okay on the first two but not Ubuntu. I unpacked and started ploughing through the .java files at the code causing the exception.

    I slowly realised that SUSE and Fedora required me to elevate my permissions to root in order to install the Java Runtime. So, I tried running the installer from the terminal using sudo on both my main Mint Cinnamon desktop and on the Ubuntu 21.10 VM. I cd'd to the folder I had extracted the NAM zip file to and ran:

    sudo java -jar NetworkAddonMod_Setup_Version41.jar

    The installer pretty much works. The installation folder defaults to /root/SimCity 4/plugins/Network Addon Mod rather than my home folder so beware. I got another exception when performing the scan on the Cleanup/Depends tab but I carried on and installed successfully.

    You can get a glitch if you run it, quit without installing and immediately try running it again. The installer is running but the UI is not visible. If you Ctrl-C in the terminal window, it quits and you can try again.

    Here's some GLR action from Berlin with NAM 41 running on my Linux Mint 20 box. I started playing this game a little under a year ago and am amazed at all the great content and work from the community. Thank you all.

    NAM41.jpg.a5f7ec2b8a26890875b93934bcfed458.jpg

    HTH

    Dave

    • Like 3
    • Thanks 3

    --
    Dave

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    On 28/04/2021 at 7:12 PM, Henry Crun said:

    I had a bit of time this morning to try a couple of things, including trying the installer on openSUSE Tumbleweed, Fedora Workstation 34 and Ubuntu 21.10. Worked okay on the first two but not Ubuntu. I unpacked and started ploughing through the .java files at the code causing the exception.

    I slowly realised that SUSE and Fedora required me to elevate my permissions to root in order to install the Java Runtime. So, I tried running the installer from the terminal using sudo on both my main Mint Cinnamon desktop and on the Ubuntu 21.10 VM. I cd'd to the folder I had extracted the NAM zip file to and ran:

    
    sudo java -jar NetworkAddonMod_Setup_Version41.jar

    The installer pretty much works. The installation folder defaults to /root/SimCity 4/plugins/Network Addon Mod rather than my home folder so beware. I got another exception when performing the scan on the Cleanup/Depends tab but I carried on and installed successfully.

    You can get a glitch if you run it, quit without installing and immediately try running it again. The installer is running but the UI is not visible. If you Ctrl-C in the terminal window, it quits and you can try again.

    Here's some GLR action from Berlin with NAM 41 running on my Linux Mint 20 box. I started playing this game a little under a year ago and am amazed at all the great content and work from the community. Thank you all.

    NAM41.jpg.a5f7ec2b8a26890875b93934bcfed458.jpg

    HTH

    Dave

    I...... just feel Ashamed

    I tried with sudo and it works thanks a lot i never thought about using sudo :)

     

    • Like 2

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    No worries. I've tried and failed since September when I started plaing on Linux rather than a Windows VM to get hardware rendering. I tried it on 4 distros, 8 DE combinations and started code-diving before the penny dropped. I run and manage dozens of Linux server and typing sudo is like typing my username but it just never occurred to me.....:blush:

    https://xkcd.com/149/

    ATB,

    Dave


    --
    Dave

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    On 28/4/2021 at 11:12 PM, Henry Crun said:

    sudo java -jar NetworkAddonMod_Setup_Version41.jar

    OMG... Yup, using sudo works for me as well... Just like TheStronciumGuy I feel ashamed. Well, now I know what to do for the NAM 42.

    Thanks!!

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    So it seems the failure to find the required library was likely because Java didn't have permission to load it rather than it being missing per-se.

    @Tarkus: Just wanted to draw your attention to this, can we update the documentation to include this information for Linux users?

    • Like 1

    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    17 hours ago, rsc204 said:

    @Tarkus: Just wanted to draw your attention to this, can we update the documentation to include this information for Linux users?

    Yes, absolutely!  If there's a way we can script this on Linux . . . we might be able to do something similar to the Windows batch script for the installation package, too.

    -Tarkus

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections