[quote author=aphroguy link=topic=569.msg2770#msg2770 date=1163049835]
And I checked into the CLI a little bit and found that there's a backdoor to the GUI (priphea), so I thought that I might just be able to run the CLI from the terminal using
Code:
java -jar -Duser.dir=/home/me/ /home/me/KoLmafia.jar --CLI
but received the error message
Code:
Failed to load Main-Class manifest attribute from /home/me/KoLmafia.jar
as an output. JEBUS, I just don't know where to take things from here. Trying to open from the javaws program gives me a Java error message dialog. Any ideas after all this???
[/quote]
OK I really don't want anyone to think I am doubting their intelligence by saying this, and I just noticed this myself. On my computer the filename for the most recent version of kolmafia is "KoLmafia-9.7.jar" and there is a "KoLmafia-9.4.jar" in the same directory so I am wondering could this be a simple mistake of trying to load a file (kolmafia.jar) that does not exist? Sometimes the simplest mistakes can be really confusing and it would definitely fail to load the manifest file in that case.
Probably not the problem but figured I'd mention it.
[quote author=aphroguy link=topic=569.msg2781#msg2781 date=1163219865]
The most recent version I have is the one that I DLed and installed from the Java website, and it's in my /usr/local/java/jre1.5.0_09 directory.
[/quote]
Noting the term "the most recent version" try using the full path to java in your command line.
something like:
Code:
/usr/local/java/jre1.5.0_09/java -Duser.dir=~/path/to/kolmafia/ -jar /path/to/kolmafia/KoLmafia-9.7.jar
Your system may be still trying to use one of the older versions of Java.
If I remember right my system using an old version of Java happened to me a long time ago and I think it generated a similar error message. I know I have seen an error related to a manifest file at one point. Again if I remember correctly my final solution was to remove all versions of Java and install the correct version over again. This was around a year ago, and that's a years worth of fixing various problems on many computers so my memory may be crossing problems with solutions though.
One last thing....if you are still using the same copy of kolmafia that you used an unzip utility or unpacked in some way, then the program used to unzip it may have tried to repair what it thought was a damaged file.
[quote author=holatuwol link=topic=569.msg2746#msg2746 date=1162820095]
Don't unpack it -- it's an executable JAR, not just a standard ZIP type JAR (theoretically the same thing, except for the manifest file). [/quote]
Logically based on the quote from Holatuwol, if they are the same except the manifest file, then the unzip/unpack utility would possibly destroy the manifest file (or data about it) if it was trying to repair the jar file. Try downloading a new copy of the jar to a fresh directory.