RPTools.net

Discussion and Support

Skip to content

It is currently Mon Oct 23, 2017 5:24 pm 






Reply to topic  [ 8 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Sat May 19, 2012 2:41 pm
Posts: 20
 Post subject: Does this compile in new Eclipse IDE + Java 7?
PostPosted: Wed Jun 26, 2013 12:42 am 
Trying to get maptools to compile. I'm not a Java expert (C++ expert here) but I'm getting this issue trying to run the build:

Unrecognized option: -Xdock:name=MapTool

I know it used to be setup for Java 6, was wondering if 7 was out of the picture?


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1684
Location: Chicagoland
 Post subject: Re: Does this compile in new Eclipse IDE + Java 7?
PostPosted: Wed Jun 26, 2013 4:25 am 
Yep, works just fine if not better :)

Are you getting any red marks anywhere? Usually if a class doesn't compile you'll get a red ! and you can dig into what's causing it, or look on your Problem list. Most likely I would say either it's checked out at the wrong level or you are just missing related jars or projects like rplib.

And are you having an issue at compile time (building) or run time? Usually I leave "Build automatically" on. Not sure by which you mean "run the build"? Build all or Run Configuration?

_________________
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
More information here: MapTool Nerps! Fork | TokenTool Nerps! Fork
Custom TokenTool (version 1.0b33): TokenTool.exe


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat May 19, 2012 2:41 pm
Posts: 20
 Post subject: Re: Does this compile in new Eclipse IDE + Java 7?
PostPosted: Wed Jun 26, 2013 7:43 am 
I got a bunch of warnings. No errors. I did a checkout on the trunk.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Sep 11, 2007 6:31 pm
Posts: 5410
 Post subject: Re: Does this compile in new Eclipse IDE + Java 7?
PostPosted: Wed Jun 26, 2013 8:07 am 
Well.. my guess is that since the error is on "-Xdock:name=MapTool" which appears to be an Apple extension AND since the developer who builds and checks in all of the code using Eclipse(Azhrei) also happens to use a Mac AND since he is playing around with figuring out how to build both MapTool and the Launcher correctly on Apple machines using Damages, AND I am assuming the OP is not using a Mac(and by extension OSX).....


ie, I think Azhrei checked in the project settings and forgot to remove that section. I would suggest editing the project settings to chance the VM arguments in your local env.

Of course, it would be REALLY, REALLY, FREAKING NICE if a cross platform language REALLY, REALLY was cross platform and people did not have to worry about these BS tricks.

_________________
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.

Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..


Top
 Profile  
 
 Offline
Dragon
 
Joined: Sun Sep 04, 2011 6:01 am
Posts: 260
 Post subject: Re: Does this compile in new Eclipse IDE + Java 7?
PostPosted: Wed Jun 26, 2013 9:58 am 
The language is cross-platform. But the various OSes try to set themselves off from others. That includes providing features that look really necessary and cool but are not available elsewhere. So cross-platform either has to ignore those tremendously useful features (until the others have something similar, or cross-platform implements it itself) or provide some switches to enable them on this platform only. Such a thing is the Mac-dock.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Sep 11, 2007 6:31 pm
Posts: 5410
 Post subject: Re: Does this compile in new Eclipse IDE + Java 7?
PostPosted: Wed Jun 26, 2013 10:17 am 
username wrote:
The language is cross-platform. But the various OSes try to set themselves off from others. That includes providing features that look really necessary and cool but are not available elsewhere. So cross-platform either has to ignore those tremendously useful features (until the others have something similar, or cross-platform implements it itself) or provide some switches to enable them on this platform only. Such a thing is the Mac-dock.


But my point is that if "java -Xdoc:name=MapTool -jar MapTool.jar" does something "special" in the Apple version of the JVM that only works for Mac machines, the Windows/Linux versions should just IGNORE the darn same argument instead of blowing up!!!

_________________
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.

Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..


Top
 Profile  
 
 Offline
Dragon
 
Joined: Sun Sep 04, 2011 6:01 am
Posts: 260
 Post subject: Re: Does this compile in new Eclipse IDE + Java 7?
PostPosted: Wed Jun 26, 2013 1:11 pm 
jfrazierjr wrote:
But my point is that if "java -Xdoc:name=MapTool -jar MapTool.jar" does something "special" in the Apple version of the JVM that only works for Mac machines, the Windows/Linux versions should just IGNORE the darn same argument instead of blowing up!!!

Read on the -X options. They may not work on every jvm. It is also a good thing that they fail hard, because ignoring them may look like it's honoring them, which may cause hard to understand problems. Imagine the -Xmx being ignored and debugging an OOM. Since the jvm that doesn't support a certain X doesn't know, whether it can safely be ignored, it barks.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12101
Location: Tampa, FL
 Post subject: Re: Does this compile in new Eclipse IDE + Java 7?
PostPosted: Wed Jun 26, 2013 10:01 pm 
jfrazierjr is right: I'm currently working on getting the build solid for OSX. When I get a small piece that works, I check in the code so that I can roll back to it later if needed. (I should be doing this in a separate branch, but that's pretty cumbersome with SourceForge so I've been lazy. :()

It's been especially bad since this past weekend because I'm in a hotel this week and the wireless connection is *crap*. I have to try doing commits three or four times before one will make it all the way through. And Monday night I just gave up and figured I'd work on it the next night instead, and in those types of cases the snapshot from the repo is likely to not build.

It's even worse since the MapTool project references the code from the common.build project but doesn't have an explicit dependency. Eclipse doesn't appreciate that. :|

I apologize for this whole snafu. Roll back to the last checking from the weekend and you should have a consistent repo. You might need to go as far back as Friday night, since I did work on a little over the weekend...

(PS: I'm having the same commit problems right now. Sigh.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 8 posts ] 

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