Create account / Log in

How to become a Vassal developper

Discussion area for the development team.

Moderator: bsmith

Re: How to become a Vassal developper

Postby zov66 » July 30th, 2011, 2:19 pm

Okay have two versions of eclipse setup (EE & Java SE). Currently using Java SE and have svn setup correctly now and was able to svn down the src. I followed the instructions on the setting up eclipse page but something is still wrong.

My setup looks like:

dlazov - VASSAL
dlazov - ASL
CASL
VSQL

VASSAL is showing 38 errors with the first showing:
Access restrictions: The constructor AppletAudioClip(by...required library C:\Program Files\Java\jre6\lib\rt.jar

So that both the VASSAL & ASL are red X and the CASL & VSQL are red !

When I look in the Libraries folder for CASL ad VSQL it shows:

JRE System Library (JVM 15) (unbound).

Currently I have 1.6 and 1.7 JDK and JRE setup.

Any help would be appreciated.
ASL, Java, Wife, Kids, not in that order...
User avatar
zov66
 
Posts: 25
Joined: July 22nd, 2011, 9:59 pm
Location: Chicago, IL

Re: How to become a Vassal developper

Postby zov66 » July 30th, 2011, 2:51 pm

Okay did a search and vied part of the problem.

Used:

http://lkamal.blogspot.com/2008/09/eclipse-access-restriction-on-library.html

To fix that.

So not I get 30 errors like:

Description Resource Path Location Type
Application cannot be resolved MacOSXMenuManager.java /dlazov - VASSAL/src/VASSAL/tools/menu line 65 Java Problem


When I go into that src file (MacOSXMenuManager.java it basically says:

Multiple markers at this line
- Application cannot be resolved
- Application cannot be resolved to a type


I am still a newbie java developer so any help here?
ASL, Java, Wife, Kids, not in that order...
User avatar
zov66
 
Posts: 25
Joined: July 22nd, 2011, 9:59 pm
Location: Chicago, IL

Re: [messages] [Developers] Re: How to become a Vassal devel

Postby Tim M » July 30th, 2011, 2:57 pm

The instructions in the vassal wiki are really out of date

I cant comment on CASL setup but VSQL being red should be ok or at least
don't worry about that directory - (VASSAL directory should be the main
thing to get fixed). The VSQL directory is no longer used for just Squad
Leader - it also holds all of the custom classes for different modules.

Take a look at this thread
viewtopic.php?f=5&t=3434

Should help you get set up properly I hope. Been a long time since I messed
with setting it up

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of zov66
Sent: Saturday, July 30, 2011 9:19 AM
To: messages@vassalengine.org
Subject: [messages] [Developers] Re: How to become a Vassal developper

Okay have two versions of eclipse setup (EE & Java SE). Currently using
Java SE and have svn setup correctly now and was able to svn down the
src. I followed the instructions on the setting up eclipse page but
something is still wrong.

My setup looks like:

dlazov - VASSAL
dlazov - ASL
CASL
VSQL

VASSAL is showing 38 errors with the first showing:
Access restrictions: The constructor AppletAudioClip(by...required
library C:\Program Files\Java\jre6\lib\rt.jar

So that both the VASSAL & ASL are red X and the CASL & VSQL are red !

When I look in the Libraries folder for CASL ad VSQL it shows:

JRE System Library (JVM 15) (unbound).

Currently I have 1.6 and 1.7 JDK and JRE setup.

Any help would be appreciated.

_______________________________________________
Read this topic online here:
viewtopic.php?p=23950#p23950
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1605
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: [messages] [Developers] Re: How to become a Vassal devel

Postby uckelman » July 30th, 2011, 3:11 pm

Thus spake zov66:
>
> So not I get 30 errors like:
> __
> Description Resource Path Location Type
> Application cannot be resolved MacOSXMenuManager.java /dlazov -
> VASSAL/src/VASSAL/tools/menu line 65 Java Problem__
>
> When I go into that src file (MacOSXMenuManager.java it basically says:
>
> __Multiple markers at this line
> - Application cannot be resolved
> - Application cannot be resolved to a type__
>
> I am still a newbie java developer so any help here?

Eclipse is likely not finding lib-nondist/AppleJavaExtensions.jar.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 7156
Joined: December 10th, 2007, 9:48 am
Location: Heidelberg, DE

Re: How to become a Vassal developper

Postby zov66 » July 30th, 2011, 3:25 pm

>> Eclipse is likely not finding lib-nondist/AppleJavaExtensions.jar.

Okay, so how can I tell Eclipse to find this jar?

I did a search on my system and could not find it either.

Do I need to SVN down this?

http://code.google.com/p/jalbum-jtextpad/source/browse/trunk/lib/AppleJavaExtensions.jar?r=5
ASL, Java, Wife, Kids, not in that order...
User avatar
zov66
 
Posts: 25
Joined: July 22nd, 2011, 9:59 pm
Location: Chicago, IL

Re: [messages] [Developers] Re: How to become a Vassal devel

Postby Tim M » July 30th, 2011, 3:39 pm

It should be in the /lib-src path already


-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of zov66
Sent: Saturday, July 30, 2011 10:25 AM
To: messages@vassalengine.org
Subject: [messages] [Developers] Re: How to become a Vassal developper

>> Eclipse is likely not finding lib-nondist/AppleJavaExtensions.jar.

Okay, so how can I tell Eclipse to find this jar?

I did a search on my system and could not find it either.

Do I need to SVN down this?

http://code.google.com/p/jalbum-jtextpa ... ppleJavaEx
tensions.jar?r=5

_______________________________________________
Read this topic online here:
viewtopic.php?p=23954#p23954
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1605
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: [messages] [Developers] Re: How to become a Vassal devel

Postby uckelman » July 30th, 2011, 3:53 pm

Thus spake zov66:
> >> Eclipse is likely not finding lib-nondist/AppleJavaExtensions.jar.
>
> Okay, so how can I tell Eclipse to find this jar?
>
> I did a search on my system and could not find it either.
>
> Do I need to SVN down this?
>
> http://code.google.com/p/jalbum-jtextpa ... pleJavaExt
> ensions.jar?r=5
>

No, it's in the lib-nondist directory of VASSAL-src/trunk and any
branch which is less than three years old. If you don't have it, then
your working copy is hosed.

I should first note that I am not an Eclipse user. The sole reason why
I've set up Eclipse myself is so I can see what other people see when
they use it. That said:

I'm going to take some screenshots for you so you can see what I have
and compare that with what you have.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 7156
Joined: December 10th, 2007, 9:48 am
Location: Heidelberg, DE

Re: [messages] [Developers] Re: How to become a Vassal devel

Postby uckelman » July 30th, 2011, 4:17 pm

uckelman wrote:I'm going to take some screenshots for you so you can see what I have
and compare that with what you have.


I have checked out two subtrees of the svn repo, uckelman-3.2 and uckelman-working, which you can see in the first screenshot.

eclipse-1.png
Branches
eclipse-1.png (104.64 KiB) Viewed 845 times


This is what I see when I bring up the Properties dialog on the uckelman-3.2 branch, with the "Subversion" pane selected:

eclipse-2.png
Subversion pane
eclipse-2.png (63.44 KiB) Viewed 845 times


You can see there that I've not checked out the whole repository, but a particular branch from VASSAL-src/branches/.

The next screenshot shows the "Java Build Path" pane in the same dialog. In order for the compiler to find all of the libraries we use, they need to be listed in the "Libraries" tab.

eclipse-3.png
Java Build Path pane, LIbraries tab
eclipse-3.png (99.75 KiB) Viewed 845 times


The one that you're missing, AppleJavaExtensions.jar, happens to be the first one displayed here.

How does this compare with what you have?
User avatar
uckelman
Site Admin
 
Posts: 7156
Joined: December 10th, 2007, 9:48 am
Location: Heidelberg, DE

Re: How to become a Vassal developper

Postby zov66 » July 31st, 2011, 1:54 am

Here is my screen shot:

Image
ASL, Java, Wife, Kids, not in that order...
User avatar
zov66
 
Posts: 25
Joined: July 22nd, 2011, 9:59 pm
Location: Chicago, IL

Re: How to become a Vassal developper

Postby zov66 » July 31st, 2011, 2:12 am

Here is another screen shot:

Image
ASL, Java, Wife, Kids, not in that order...
User avatar
zov66
 
Posts: 25
Joined: July 22nd, 2011, 9:59 pm
Location: Chicago, IL

Re: [messages] [Developers] Re: How to become a Vassal devel

Postby uckelman » July 31st, 2011, 1:07 pm

Thus spake zov66:
> Here is another screen shot:
>
> [1]
>
> [1] http://i286.photobucket.com/albums/ll11 ... lipse2.jpg

Have you verified that AppleJavaExtensions.jar is listed in the
Libraries tab of the Java Build Path pane of the Properties dialog
for the project?

--
J.
User avatar
uckelman
Site Admin
 
Posts: 7156
Joined: December 10th, 2007, 9:48 am
Location: Heidelberg, DE

Re: How to become a Vassal developper

Postby zov66 » July 31st, 2011, 1:09 pm

Has anyone had success with Netbeans? I am not that familar with NetBeans, but I am attempting to SVN down the VASSAL engine code now.

I know that the 'new' direction for VASSAL 4 is C++ (which is kind of ironic, I used to be a C/C++ programmer and in 2004 I could not find any jobs doing that, so just this year I switched to java, did some C# from 2006 to 2009 or so off and on). Java obviously is platform independent so not sure why you would want to screw with that by going to C++ which in general is platform dependent, at least to most of my past knowledge.

At any rate I do like Eclipse it is what we use at work and now that I downloaded NB7 and Java7 NB7 is pretty neat as well.
ASL, Java, Wife, Kids, not in that order...
User avatar
zov66
 
Posts: 25
Joined: July 22nd, 2011, 9:59 pm
Location: Chicago, IL

Re: How to become a Vassal developper

Postby zov66 » July 31st, 2011, 1:27 pm

Interesting, that lib was not listed, the instructions only indicated setting the lib jars, after I added the lib-nondist that removed all but 4 errors.

Okay, I then added that to the out put and did a clean and VASSAL is okay now. But CASL was complainign about a 1.5 JRE which I don't have (only have 1.6 and 1.7) so I just removed that and then CASL has a black thing in it but it looks okay. Now ASL is complaining with 4 errors.

MappedBufferedImage cannot be resolved to a type
ASLBoard.java
/dlazov - ASL/src/VASL/build/module/map/boardPicker
line 377
Java Problem

Here is two screen shots:

at line error
Image

hover over error
Image

close but not quite their yet...
ASL, Java, Wife, Kids, not in that order...
User avatar
zov66
 
Posts: 25
Joined: July 22nd, 2011, 9:59 pm
Location: Chicago, IL

Re: [messages] [Developers] Re: How to become a Vassal devel

Postby uckelman » July 31st, 2011, 1:38 pm

Thus spake zov66:
>
> I know that the 'new' direction for VASSAL 4 is C++ (which is kind of
> ironic, I used to be a C/C++ programmer and in 2004 I could not find any
> jobs doing that, so just this year I switched to java, did some C# from
> 2006 to 2009 or so off and on). Java obviously is platform independent
> so not sure why you would want to screw with that by going to C++ which
> in general is platform dependent, at least to most of my past knowledge.

Sun claimed, and now Oracle claims, that Java is platform-independent.
The only interpretation I can see under which this could be true is that
they mean that classes compiled by their Java compiler will run in any of
their JVMs. This is such a weak claim as to be useless, as we care about
the classes' behavior, not just that they'll run. If they're claiming that
you can expect classes to have the same behavior on different platforms,
then that's simply false---some don't. I'd point to our ImageIOImageLoader
class as evidence for this---it's 350 lines of workarounds for the various
ways in which Java's ImageIO image loaders are broken, some of which
affect only certain platforms. We also have 30+ locations in our trunk
where we do OS checks in order to get correct behavior. No C++ project
I've worked on has had so much platform-specific code (or code for
working around broken libraries) as VASSAL does.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 7156
Joined: December 10th, 2007, 9:48 am
Location: Heidelberg, DE

Re: How to become a Vassal developper

Postby zov66 » July 31st, 2011, 1:43 pm

Joel,

Fair point.

Any ideas on my last 4 errors in ASL-src per the screen shots above?
ASL, Java, Wife, Kids, not in that order...
User avatar
zov66
 
Posts: 25
Joined: July 22nd, 2011, 9:59 pm
Location: Chicago, IL

PreviousNext

Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest

cron