Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I decided to reorganize my workspace and now my mod cant find my proxies. I made to to update their locations in the SidedProxy annotation but it still cant find them.

 

@SidedProxy( clientSide = "CJTech.core.network.ClientProxy", serverSide = "CJTech.core.network.CommonProxy" )

 

Proxies are at CJTech>core>network.

 

Error:

 

 

2014-01-07 15:33:37 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2014-01-07 15:33:38 [sEVERE] [ForgeModLoader] An error occured trying to load a proxy into {clientSide=CJTech.proxies.ClientProxy, serverSide=CJTech.proxies.CommonProxy}.CJTech.core.network.CommonProxy

java.lang.ClassNotFoundException: CJTech.proxies.ClientProxy

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:61)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:58)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

at net.minecraft.client.Minecraft.run(Minecraft.java:808)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

Caused by: java.lang.NullPointerException

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)

... 39 more

2014-01-07 15:33:38 [sEVERE] [com.google.common.eventbus.EventBus.CJTECH] Could not dispatch event: cpw.mods.fml.common.event.FMLConstructionEvent@12c1f0be to handler [wrapper public void cpw.mods.fml.common.FMLModContainer.constructMod(cpw.mods.fml.common.event.FMLConstructionEvent)]

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

at net.minecraft.client.Minecraft.run(Minecraft.java:808)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

Caused by: cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: CJTech.proxies.ClientProxy

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)

... 32 more

Caused by: java.lang.ClassNotFoundException: CJTech.proxies.ClientProxy

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:61)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:58)

... 33 more

Caused by: java.lang.NullPointerException

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)

... 39 more

2014-01-07 15:33:39 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue

2014-01-07 15:33:39 [sEVERE] [ForgeModLoader]

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded->Constructed

Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded->Constructed

CodeChickenCore{0.9.0.6} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed

MobiusCore{1.0.4} [MobiusCore] (minecraft.jar) Unloaded->Constructed

NotEnoughItems{1.6.1.5} [Not Enough Items] (NotEnoughItems 1.6.1.5.jar) Unloaded->Constructed

BuildCraft|Core{4.2.1} [buildCraft] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed

CJTECH{0.01 InDev} [CJTech] (bin) Unloaded->Errored

BuildCraft|Builders{4.2.1} [bC Builders] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed

BuildCraft|Energy{4.2.1} [bC Energy] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed

BuildCraft|Factory{4.2.1} [bC Factory] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed

BuildCraft|Transport{4.2.1} [bC Transport] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed

BuildCraft|Silicon{4.2.1} [bC Silicon] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed

IC2{2.0.334-experimental} [industrialCraft 2] (industrialcraft-2_2.0.334-experimental.jar) Unloaded->Constructed

MapWriter{2.0.1} [MapWriter] (Opis_1.1.2_alpha.zip) Unloaded->Constructed

Opis{1.1.2_alpha} [Opis] (Opis_1.1.2_alpha.zip) Unloaded->Constructed

ForgeMultipart{1.0.0.219} [Forge Multipart] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed

McMultipart{1.0.0.219} [Minecraft Multipart Plugin] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed

ForgeMicroblock{1.0.0.219} [Forge Microblocks] (ForgeMultipart-dev-1.6.4-1.0.0.219.jar) Unloaded->Constructed

2014-01-07 15:33:39 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2014-01-07 15:33:39 [sEVERE] [ForgeModLoader] Caught exception from CJTECH

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: CJTech.proxies.ClientProxy

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

at net.minecraft.client.Minecraft.run(Minecraft.java:808)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

Caused by: java.lang.ClassNotFoundException: CJTech.proxies.ClientProxy

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:61)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:58)

... 33 more

Caused by: java.lang.NullPointerException

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)

... 39 more

2014-01-07 15:33:39 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----

2014-01-07 15:33:39 [iNFO] [sTDOUT] // Don't be sad. I'll do better next time, I promise!

2014-01-07 15:33:39 [iNFO] [sTDOUT]

2014-01-07 15:33:39 [iNFO] [sTDOUT] Time: 1/7/14 3:33 PM

2014-01-07 15:33:39 [iNFO] [sTDOUT] Description: There was a severe problem during mod loading that has caused the game to fail

2014-01-07 15:33:39 [iNFO] [sTDOUT]

2014-01-07 15:33:39 [iNFO] [sTDOUT] cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: CJTech.proxies.ClientProxy

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-01-07 15:33:39 [iNFO] [sTDOUT] Caused by: java.lang.ClassNotFoundException: CJTech.proxies.ClientProxy

2014-01-07 15:33:39 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at java.lang.ClassLoader.loadClass(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at java.lang.ClassLoader.loadClass(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:61)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at java.lang.Class.forName0(Native Method)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at java.lang.Class.forName(Unknown Source)

2014-01-07 15:33:39 [iNFO] [sTDOUT] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:58)

2014-01-07 15:33:39 [iNFO] [sTDOUT] ... 33 more

2014-01-07 15:33:39 [iNFO] [sTDOUT] Caused by: java.lang.NullPointerException

2014-01-07 15:33:39 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)

2014-01-07 15:33:39 [iNFO] [sTDOUT] ... 39 more

 

 

You might want to refresh your workspace, especially when using eclipse. Eclipse is awfull with updating files around, so try to refresh it.

 

You refresh it like so:

1. select your project and hit F5

2. relaunch Eclipse

I am fairly new to Java and modding, so my answers are not always 100% correct. Sorry for that!

  • Author

That wouldnt work if its looking in a different package than I specified. I tried it anyways though, no luck.

 

EDIT:

Quick video just in case

http://youtu.be/lXBnV7Dzq4c

 

To make it more confusing, I commented out SidedProxy and it was still looking for the proxies in the wrong spot.

Dude, seriously?

 

Capture.png

 

(I couldn't get a larger snap, but you're declaring a sided proxy INSIDE YOUR PROXY, WHY ARE YOU DOING THAT?)

 

To make it more confusing, I commented out SidedProxy and it was still looking for the proxies in the wrong spot.

 

In the future, this is the first symptom of "the code you commented out is not at fault, the problem lies elsewhere."  Which it did.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

That is a good question...

 

I think the tutorial I followed had the reference there for whatever reason. Things worked fine last time so Im not complaining much. Changing this reference fixed it. Ill come back and remove the extra SidedProxy annotation eventually.

 

Thanks for the help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.