babyjebu5 Posted November 8, 2012 Share Posted November 8, 2012 Thanks that did the trick. For anyone else in the future with this same error you have to modify both PATH and CLASSPATH to point to jre7\bin and jre7\lib respectivelyTried this as well, since I have a similar error..but it didn't help. Link to comment Share on other sites More sharing options...
PiersAS Posted November 8, 2012 Share Posted November 8, 2012 (edited) Hi I have the problem that when I run “java -jar XSHARPE.jar -v 2644500” I get the “could not find the main class: XSHARP. Program will exit” error. My Java lib directory is “C:\Program Files (x86)\Java\jre6\lib”. When I run “echo %classpath%” I get “C:\Program Files (x86)\Java\jre6\lib”. Any idea? spent most of a day on this, getting blood all over the wall. C:\Program Files (x86)\Steam\SteamApps\common\XCom-Enemy-Unknown>java -jar XSHAPE.jar -v 26444500Exception in thread "main" java.lang.UnsupportedClassVersionError: XShape : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) 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$000(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)Could not find the main class: XShape. Program will exit. Edited November 8, 2012 by PiersAS Link to comment Share on other sites More sharing options...
zordard Posted November 8, 2012 Share Posted November 8, 2012 My Java lib directory is “C:\Program Files (x86)\Java\jre6\lib”. Update java, it is jre7 already JRE7 Link to comment Share on other sites More sharing options...
Kaerar Posted November 8, 2012 Share Posted November 8, 2012 Ok 1.02 is out time for a check to see if this still works... Link to comment Share on other sites More sharing options...
PiersAS Posted November 8, 2012 Share Posted November 8, 2012 My Java lib directory is “C:\Program Files (x86)\Java\jre6\lib”. Update java, it is jre7 already JRE7 Ah thanks updated to Java7 and it works. Bit confused here is Java1.7 the same as Java7? Link to comment Share on other sites More sharing options...
Havoc56 Posted November 8, 2012 Share Posted November 8, 2012 i need help. i went to run the batch file but i get a command window that blinks saying: ('Java' is not recognised as an internal or external command, operable program or batch file.) and then it closes :( when clearly i have the latest java on my computer. can someone help me with this. Link to comment Share on other sites More sharing options...
BlackAlpha Posted November 8, 2012 Share Posted November 8, 2012 (edited) I'm wondering when an XSHAPE (or the mod manager maybe) version will arrive that will feature automatic "uncompressed_size" file renaming/removal. A big chunk of users who downloads my mod goes wrong there, so I'm looking for ways to automate that process. If the next version will have this feature and will be out soon, then I'll simply wait for it. Otherwise, I'll need to look for a different way. Edited November 8, 2012 by BlackAlpha Link to comment Share on other sites More sharing options...
PiersAS Posted November 9, 2012 Share Posted November 9, 2012 i need help. i went to run the batch file but i get a command window that blinks saying: ('Java' is not recognised as an internal or external command, operable program or batch file.) and then it closes :( when clearly i have the latest java on my computer. can someone help me with this. When I got this error it was because the enviormental varable PATH did have the address of the java bin directory. Link to comment Share on other sites More sharing options...
Havoc56 Posted November 9, 2012 Share Posted November 9, 2012 i need help. i went to run the batch file but i get a command window that blinks saying: ('Java' is not recognised as an internal or external command, operable program or batch file.) and then it closes :( when clearly i have the latest java on my computer. can someone help me with this. When I got this error it was because the enviormental varable PATH did have the address of the java bin directory. so what does that mean? Link to comment Share on other sites More sharing options...
dreadylein Posted November 9, 2012 Share Posted November 9, 2012 its more or less an leftover from dos times, if you type in something it will check for commands or files in the directory you are, if it wont find anything it will look into the path variables and check if it finds it there Link to comment Share on other sites More sharing options...
Recommended Posts