metametascape
Welcome, Guest
Please Login or Register.
Lost Password?
_GEN_GOTOBOTTOM Post Reply

TOPIC: First day issues?

#2
miles (Admin)
Admin
Posts: 59
graphgraph
First day issues? 2007/11/18 03:13 Karma: 1  
If you have problems following the tutorial all the way through --for example, Ascape won't build -- it is probably due to an error in the installation guide URL I corrected a few hours ago. That URL was for a test site and had a two day old version on it. ;( You can try updating using the manager, but if you just downloaded Eclipse it will probably be simpler to dump your current version and start with a fresh copy.

Otherwise, let us know how our install went and what we can do to make things easier or more clear for future users!

Post edited by: miles, at: 2007/11/18 03:15
  The administrator has disabled public write access.
#3
cedingman (User)
Junior Boarder
Posts: 5
graphgraph
Re:First day issues? 2007/11/24 00:38 Karma: 0  
I followed along fine until I tried to run the models I downloaded (from http://www.metascapeabm.com/index.php?option=com_remository&Itemid=55&func=select&id=2) and dragged to the project window. I get the following exception in the console, and the models do not run:
==========================
Exception in thread "main" java.lang.NoClassDefFoundError: quicktime/std/StdQTConstants
at java.lang.ClassLoader.defineClass1(Native Method)
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.ascape.explorer.ControlActionView.<init>(ControlActionView.java:371)
at org.ascape.explorer.ControlBarView.<init>(ControlBarView.java:170)
at org.ascape.explorer.ControlBarView.<init>(ControlBarView.java:160)
at org.ascape.explorer.UserEnvironment.<init>(UserEnvironment.java:193)
at org.ascape.model.ModelRoot.createEnvironment(ModelRoot.java:1117)
at org.ascape.model.ModelRoot.openImplementation(ModelRoot.java:745)
at org.ascape.model.ModelRoot.open(ModelRoot.java:781)
at org.ascape.model.ModelRoot.open(ModelRoot.java:838)
at org.ascape.model.ModelRoot.open(ModelRoot.java:856)
at org.ascape.model.ModelRoot.main(ModelRoot.java:1072)
at org.ascape.model.Scape.main(Scape.java:2986)
=========
Debugging the DemographicPrisoner_sDilemma model yields the following 12 warnings:
========================
Severity and Description Path Resource Location Creation Time Id
List is a raw type. References to generic type List<E> should be parameterized org.example.ascape/srcgen/edu/brook Player.java line 118 1195866966250 15
List is a raw type. References to generic type List<E> should be parameterized org.example.ascape/srcgen/org/me/stupidmodel Bug.java line 68 1195867010625 23
The local variable bug is never read org.example.ascape/srcgen/org/me/stupidmodel BugStyle2D.java line 36 1195867010640 24
The local variable habitat is never read org.example.ascape/srcgen/org/me/stupidmodel HabitatStyle2D.java line 33 1195867010656 25
The local variable playCell is never read org.example.ascape/srcgen/edu/brook PlayCellStyle.java line 33 1195866966234 14
The static method getDemographicPrisoner_sDilemma() from the type Player should be accessed in a static way org.example.ascape/srcgen/edu/brook Player.java line 133 1195866966250 16
The static method getDemographicPrisoner_sDilemma() from the type Player should be accessed in a static way org.example.ascape/srcgen/edu/brook Player.java line 148 1195866966250 17
The static method getDemographicPrisoner_sDilemma() from the type Player should be accessed in a static way org.example.ascape/srcgen/edu/brook Player.java line 159 1195866966250 18
The static method getDemographicPrisoner_sDilemma() from the type Player should be accessed in a static way org.example.ascape/srcgen/edu/brook Player.java line 174 1195866966250 19
The static method getDemographicPrisoner_sDilemma() from the type Player should be accessed in a static way org.example.ascape/srcgen/edu/brook Player.java line 224 1195866966250 20
The static method getDemographicPrisoner_sDilemma() from the type Player should be accessed in a static way org.example.ascape/srcgen/edu/brook Player.java line 227 1195866966250 21
The static method getDemographicPrisoner_sDilemma() from the type Player should be accessed in a static way org.example.ascape/srcgen/edu/brook Player.java line 235 1195866966250 22
================================
  The administrator has disabled public write access.
#4
miles (Admin)
Admin
Posts: 59
graphgraph
Re:First day issues? 2007/11/25 06:07 Karma: 1  
Thanks for the report.

First, to be clear, the model did build, but you were unable to run the model? (The warnings are expected -- the Eclipse default build settings are pretty zealous.)

1. Can you verify the creation date of the file org.ascape.common.lib_5.0.1.jar
[correction from: org.ascape.common_5.0.1.jar] in your eclipse install plugins dir?

It should be:

2007-11-17 15:04 and if you unzip it should include a quicktime dir at the base level.

2. What OS and version are you running?

3. Please right-click on the project, choose "Build Path..." : Configure Build Path" and select the Libraries tab. There should be an entry for org.ascape.common.lib_5.0.1.jar that on the left side has ECLIPSE_HOME and on the right the actual location of that file on your machine.


Has anyone else had this issue?

Post edited by: miles, at: 2007/11/25 06:34
  The administrator has disabled public write access.
#5
cedingman (User)
Junior Boarder
Posts: 5
graphgraph
Re:First day issues? 2007/11/26 18:36 Karma: 0  
Thanks for your response. I don't see any model.

1. The create dates for both the org.ascape.common.lib_5.0.1.jar and org.ascape.common_5.0.1.jar files show as 2007-11-23-16:45 PM. I don't see any Quicktime directory. I attach a screen shot of the unzipped library file.

2. I am running Windows XP Home SP2.

3. I see what you describe for both org.ascape.common.lib_5.0.1.jar and org.ascape.common_5.0.1.jar. I suspect from your "correction from" language that I should have only the ....lib.jar, and further that having both is possibly causing my errors. Do I have an uncorrected and corrected version? If so, how do I clear out the uncorrected one: delete it in Windows Explorer, or in some Eclipse project manager view? Any other backing out or starting over you would recommend?
  The administrator has disabled public write access.
#6
cedingman (User)
Junior Boarder
Posts: 5
graphgraph
Re:First day issues? 2007/11/26 18:37 Karma: 0  
Thanks for your response. I don't see any model.

1. The create dates for both the org.ascape.common.lib_5.0.1.jar and org.ascape.common_5.0.1.jar files show as 2007-11-23-16:45 PM. I don't see any Quicktime directory.
2. I am running Windows XP Home SP2.

3. I see what you describe for both org.ascape.common.lib_5.0.1.jar and org.ascape.common_5.0.1.jar. I suspect from your "correction from" language that I should have only the ....lib.jar, and further that having both is possibly causing my errors. Do I have an uncorrected and corrected version? If so, how do I clear out the uncorrected one: delete it in Windows Explorer, or in some Eclipse project manager view? Any other backing out or starting over you would recommend?

Post edited by: cedingman, at: 2007/11/26 18:37

Post edited by: cedingman, at: 2007/11/26 18:39
  The administrator has disabled public write access.
#7
miles (Admin)
Admin
Posts: 59
graphgraph
Re:First day issues? 2007/11/26 18:49 Karma: 1  
No, you need both -- I just wanted to make sure that you were looking in the correct directory. I had a Quicktime issue recently over in the Ascape forums, and I suspect there is what is happening here. There hasn't actually been a lot of Wndows testing yet..

I don't see the screen shot.. Could you just paste in the first level of the expanded .jar. e.g. it should look like somthing like this:

drwxr-xr-x 6 milesparker milesparker 204 Nov 7 11:09 META-INF
drwx------ 3 milesparker milesparker 102 Nov 14 16:29 QTJava
-rw-r--r-- 1 milesparker milesparker 902726 Oct 24 23:57 QTJava.zip
-rw-r--r-- 1 milesparker milesparker 223 Nov 7 11:27 build.properties
drwxr-xr-x 6 milesparker milesparker 204 Nov 14 12:38 com
-rw-r--r-- 1 milesparker milesparker 39906 Nov 5 23:06 openmap.properties
drwxr-xr-x 5 milesparker milesparker 170 Nov 7 11:26 org
-rwxr-xr-x 1 milesparker milesparker 10837 Jul 2 2002 qt3logo.jpg
drwxr-xr-x 34 milesparker milesparker 1156 Nov 14 16:29 quicktime

(In Windows dialect, of course!)
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop