RPTools.net

Discussion and Support

Skip to content

It is currently Sun May 19, 2013 9:22 am 




Forum rules


PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)



Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Deity
 
Joined: Fri May 12, 2006 7:56 pm
Posts: 6300
Location: Las Cruces, NM
 Post subject: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Fri Aug 12, 2011 1:05 pm 
The popular Xstream XML library (v1.3.1) used by MapTool and many other open source projects is not compatible with Java 7. If you get the message that:

Quote:
Cannot determine Campaign File Format: Not loaded.

...on a campaign file that previously worked fine chances are that your system was updated to Java 7 either manually or via auto-update.

Until a new build of MapTool using the fixed XStream library is released, the only workaround at this time is to revert back to Java 6 or tell MapTool to launch using Java 6. The Java 7 install should not have removed your existing Java 6 JRE install so this is easily done.

Forcing the MapTool Launcher to use Java 6

Locate the mt.cfg file in the MapTool directory. Open it in Notepad or some other text editor. You should see something like this:

Code:
MAXMEM=512
MINMEM=64
STACKSIZE=2
JVM=javaw
PROMPT=true


You need to provide the full path to your Java 6 executable. For Vista and Windows 7 they can be found here:

Quote:
64-bit Java - C:\Program Files\Java\jre6\bin
32-bit Java - C:\Program Files (x86)\Java\jre6\bin

Edit your mt.cfg file like this for 32-bit Java:

Code:
MAXMEM=512
MINMEM=64
STACKSIZE=2
JVM=C:\Program Files (x86)\Java\jre6\bin\javaw
PROMPT=true


For 64-bit Java use the 64-bit path.

Forcing the Use of Java 6 in MapTool Batch Files

The same principle applies for those using batch files but make sure you use quotes around your path if it has spaces in it. Like so:

Code:
"C:\Program Files\Java\jre6\bin\javaw" -Xmx256M -Xss512K -jar maptool-*.jar run

If you see this message, or something similar, then you need to use quotes.

Quote:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

_________________
Call me, Hex Boy.

Visit http://www.darkisle.com for photos of castles, cairns, standing stones, and other ancient sites in the British Isles.


Last edited by Phergus on Sun Aug 14, 2011 12:39 pm, edited 1 time in total.

Top
 Profile  
 
User avatar  Offline
Cave Troll
 
Joined: Thu Feb 02, 2006 1:06 pm
Posts: 66
Location: Mordor
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Sun Aug 14, 2011 4:37 am 
Phergus wrote:
The popular Xstream XML library used by MapTool and many other open source projects is not compatible with Java 7

According to http://xstream.codehaus.org/changes.html#1.4, the version 7 is supported. Can you compile again the project with the last lib please (and launch it as a bugfix/patch/other sub_version)?

When i try to load my campaign i get:
Image


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri May 12, 2006 7:56 pm
Posts: 6300
Location: Las Cruces, NM
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Sun Aug 14, 2011 12:42 pm 
A new build of MapTool is in the works and I expect the updated XStream library will be included for compatibility with Java 7.

_________________
Call me, Hex Boy.

Visit http://www.darkisle.com for photos of castles, cairns, standing stones, and other ancient sites in the British Isles.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Thu Jan 12, 2012 2:28 pm
Posts: 6
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Tue May 15, 2012 9:50 am 
Great. I had to wipe my computer, and all I can install is Java 7, since 6 is no longer available on Java's website, or at least, nowhere I saw.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5300
Location: Bay Area
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Tue May 15, 2012 10:21 am 
You can try this: http://www.oldapps.com/java.php?old_java=7615

or here: http://www.oracle.com/technetwork/java/ ... 94646.html

@Az - maybe it's time to make another build. Rollback the problem updates and implement the other updates.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Wed May 16, 2012 12:32 am 
aliasmask wrote:
@Az - maybe it's time to make another build. Rollback the problem updates and implement the other updates.

I might actually get to it this week. Unfortunately, this is my only week at home until the end of the June and I have an appointment with an oral surgeon tomorrow and similar stuff the rest of the week (look at the fun things I get to do when I have a week "off"! :roll:).

I was going to try to get some stuff cleaned up this week, but I'm not sure I'll be able to. :(

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 5488
Location: Netherlands
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Wed May 16, 2012 6:41 am 
Jwguy wrote:
Great. I had to wipe my computer, and all I can install is Java 7, since 6 is no longer available on Java's website, or at least, nowhere I saw.


confirmed! that's not good news for the current position of MT.

aliasmask wrote:
You can try this: http://www.oldapps.com/java.php?old_java=7615

or here: http://www.oracle.com/technetwork/java/ ... 94646.html

@Az - maybe it's time to make another build. Rollback the problem updates and implement the other updates.


@Az maybe its a good idea to make these above links available on the MT download page so new users can still start using MT, and also make clear that b87- is incompatible with j7. Iits better to get b89 in the air obviously, but until we're certain that it does not contains any major bugs like 88 I think its useful to have j6 still available so b87- can be used.

_________________
My stuff
Excel Tools: Table editor and Illumination Generator
MT Tools: Dungeon Builder Tool, Bag of Tricks: Teleport pads, Pits, Traps and Warded Areas and onMouseOverEvent
Framework: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade and Only War
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow

My dropbox referral. If you use this then both you and me get 500Mb extra space. 2.5Gb total.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Jun 02, 2012 1:36 am
Posts: 1
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Mon Jul 30, 2012 12:53 pm 
Hi new user to Maptools -- trying to get a DragonQuest campaign up and running. Had some problems last night in a dry run with my nephew.

Is there still a compatibility problem between build 87 and Java 7?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5300
Location: Bay Area
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Mon Jul 30, 2012 8:21 pm 
LonnyE wrote:
Is there still a compatibility problem between build 87 and Java 7?

Yes, that won't change until b88 comes out. But that doesn't mean you can't use both java 7 and 6 on your computer. The announcements has details on configuring java 6 for use with MapTool.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Cave Troll
 
Joined: Tue Jul 28, 2009 12:07 pm
Posts: 35
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Thu Aug 02, 2012 10:16 pm 
I got this error message after migrating to a new computer (Win7 Enterprise edition) which, of course, has Java7 since I just downloaded it.

I was able to download and installed version 6, both the 32bit and 64bit versions, and now I am getting the following error:

Quote:
Error while reading campaign file.
java.lang.NullPointerException


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5300
Location: Bay Area
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Thu Aug 02, 2012 10:50 pm 
khabalox wrote:
I got this error message after migrating to a new computer (Win7 Enterprise edition) which, of course, has Java7 since I just downloaded it.

I was able to download and installed version 6, both the 32bit and 64bit versions, and now I am getting the following error:

Quote:
Error while reading campaign file.
java.lang.NullPointerException

That's not enough info and you should only have one version of java 6 installed. Did you follow the step-by-step instructions here: viewtopic.php?f=1&t=21980

What do the Help | Gather Debug Information say before loading any campaigns?

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Cave Troll
 
Joined: Thu Aug 25, 2011 2:17 pm
Posts: 48
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Mon Oct 08, 2012 4:58 pm 
So, b87 is not supposed to work with Java 7?

Don't tell my computer that...

Debug info.
==== MapTool Information ====
MapTool Version: 1.3.b87
MapTool Home...: C:\Users\user\.maptool
Max mem avail..: 989M
Max mem used...: 102M

==== Java Information ====
Java Vendor.: Oracle Corporation
Java Home...: C:\Program Files (x86)\Java\jre7
Java Version: 1.7.0_07
............: Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
............: Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)


==== OS Information ====
OS Name........: Windows 7
OS Version.....: 6.1
OS Architecture: x86
Processor......: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PATH...........: null
Number of Procs: 4


I do use the switch to use the old sorting method. Am I going to run into problems later in my campaign development?

Here is my mt.cfg file.
MAXMEM=1024
MINMEM=64
STACKSIZE=4
JVM=javaw -Djava.util.Arrays.useLegacyMergeSort=true
PROMPT=true

_________________
I should change my profile name to Freddy because JSON and I don't quite get along yet.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 5488
Location: Netherlands
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Mon Oct 08, 2012 5:15 pm 
Lifer4700 wrote:
So, b87 is not supposed to work with Java 7?

Don't tell my computer that...


I guess the better wording is that b87 does not work *well* with java 7. You might get issues with saving and reloading campaigns or tokens or running a server. These are the issues I heard about, but there are probably others. It boils down to one simple fact DO NOT use j7 with b87.

I too made a report that b87 appears to be working with the latest update of j7 and interestingly enough b88 which should have been compatible with j7 does NOT run. But many reports I've seen are about people being able to run b87 in j7 and having 'other' problems, like the ones I mentioned hereabove.

_________________
My stuff
Excel Tools: Table editor and Illumination Generator
MT Tools: Dungeon Builder Tool, Bag of Tricks: Teleport pads, Pits, Traps and Warded Areas and onMouseOverEvent
Framework: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade and Only War
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow

My dropbox referral. If you use this then both you and me get 500Mb extra space. 2.5Gb total.


Top
 Profile  
 
User avatar  Offline
Cave Troll
 
Joined: Thu Aug 25, 2011 2:17 pm
Posts: 48
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Tue Oct 09, 2012 6:58 pm 
OK, thanks, I'll point to the JRE6 instead.
Any idea if there is a difference/preference for 32- or 64-bit as far as MapTool is concerned?



On a lighter note...

Any word on a "final" 1.3? :D
(b89 or otherwise)

_________________
I should change my profile name to Freddy because JSON and I don't quite get along yet.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 5488
Location: Netherlands
 Post subject: Re: [Java 7 Bug] Cannot determine Campaign File Format
PostPosted: Wed Oct 10, 2012 12:22 am 
64 is about 1.5x faster (on my laptop)

_________________
My stuff
Excel Tools: Table editor and Illumination Generator
MT Tools: Dungeon Builder Tool, Bag of Tricks: Teleport pads, Pits, Traps and Warded Areas and onMouseOverEvent
Framework: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade and Only War
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow

My dropbox referral. If you use this then both you and me get 500Mb extra space. 2.5Gb total.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman