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

Hi everyone,

 

I have some issue since many weeks ago. I developed my custom launcher on java which must be work with forge. I get this error:

Quote

2020-06-06 16:20:12,922 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException
2020-06-06 16:20:12,931 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at com.google.common.collect.ObjectArrays.concat(ObjectArrays.java:73)
2020-06-06 16:20:12,932 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:297)
2020-06-06 16:20:12,932 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:221)
2020-06-06 16:20:12,933 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:90)
2020-06-06 16:20:12,933 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:67)
2020-06-06 16:20:12,934 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34)
2020-06-06 16:20:12,935 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:126)
2020-06-06 16:20:12,936 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.launchwrapper.Launch.launch(Launch.java:115)
2020-06-06 16:20:12,937 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
2020-06-06 16:20:12,969 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/ERROR] [FML]: An error occurred trying to configure the minecraft home at /Users/paul/Library/Application for Forge Mod Loader
2020-06-06 16:20:12,969 [INFO ] (nlcU.java:run:50285) java.lang.NullPointerException
2020-06-06 16:20:12,970 [INFO ] (nlcU.java:run:50285)     at com.google.common.collect.ObjectArrays.concat(ObjectArrays.java:73) ~[guava-17.0.jar:?]
2020-06-06 16:20:12,970 [INFO ] (nlcU.java:run:50285)     at cpw.mods.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:297) ~[forge-1.7.10-10.13.4.1614-1.7.10.jar:?]

 

The text on bold is the main issue that I try to solve. 

I have do that in my java code:

 

	public String getUserPath() {
		String home = System.getProperty("user.home");
		if(getOSType() == OS.WINDOWS) {
			return System.getenv("APPDATA");
		}else if(getOSType() == OS.LINUX){
			return System.getProperty("user.home", ".");
		}else {
			return home+"/Library/Application Support";
		}
	}
	
	public String getWorkingDirectory(String name) {
		return getUserPath()+"/"+name;
	}

 

 

 

Edited by nac

Guest
This topic is now closed to further replies.

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.