"Could not find the main class- program will close"

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Nathan2014

New Member
Jul 29, 2019
4
0
0
Hey,

See this is a common problem but I cannot for the life of me fix it. Both the .exe and the .jar have the same errors, however sometimes the .exe will download and look like its doing something before it throws up this error.

Java version 7 update 51. and here is the info on the console after I logged in on the .jar.

Syncing Assets:
Java Path: C:\Program Files\Java\j2re1.4.2_19\bin\javaw.exe
Setting MinMemory to 256
Setting MaxMemory to 768
Defaulting PermSize to 256m
java.lang.UnsupportedClassVersionError: net/minecraft/launchwrapper/Launch (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Ill crack open the .exe and check the console info there.

Any help going would be appreciated :3
 

Nathan2014

New Member
Jul 29, 2019
4
0
0
Here the info from when it downloads onn the .exe
Logging in...
Login complete.
Unleashed
Downloading Mod Pack
Local: 1A489BF9AEF03B72C286678BACA9714A
Remote: 1A489BF9AEF03B72C286678BACA9714A
Mods Folder: C:\Users\Nathan\Downloads\Unleashed\minecraft\mods
Dynamic Folder: C:\Users\Nathan\AppData\Roaming\ftblauncher\ModPacks\Unleashed\minecraft\mods
dirs mk'd
debug: retaining modpack file: C:\Users\Nathan\AppData\Roaming\ftblauncher\ModPacks\Unleashed\Unleashed.zip
Loading Jar URLs
Downloading Jars
Extracting Files
Game update complete
Java Path: C:\Program Files\Java\j2re1.4.2_19\bin\javaw.exe
Setting MinMemory to 256
Setting MaxMemory to 768
java.lang.UnsupportedClassVersionError: net/ftb/mclauncher/MinecraftLauncher (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 

UniZero

Popular Member
Oct 3, 2012
3,406
310
124
Scotland, UK

Nathan2014

New Member
Jul 29, 2019
4
0
0
Seems to have fixed the issue.... old version still installed now removed and testing the program now.