Robert--

Thank you for the email!

Robert M. Fuhrer wrote:
> Jeff Kuehn wrote:
>> Platform:
>>     Linux (Fedora Core 6 w/ 2.6.18 kernel)
>>     Sun JVMs 1.5.0_09, 1.5.0_11, 1.6.0_01
>>     IBM JVM  1.5.0
>>
>> Where I'm having difficulty is with Eclipse. I have both 3.2.2
>> (Callisto) and 3.3.1 (Europa) installed. I understand from the
>> documentation, that 3.3.1 should be expected to be problematic, so I've
>> been focusing on the 3.2.2 version.
>>
>> On 3.2.2, I run into TWO problems in the process of creating a new
>> eclipse X10 project, even something as simple as "Hello World".
>>
>> (1) As I try to create a new X10 project, I receive a dialog when I
>> click "Finsh" that says: "Creation of element failed. Invalid thread
>> access".  If I dismiss the dialog and click "Finish" in the new X10
>> project dialog again, the project directory tree is created in the
>> workspace.
>>   
> 
> This is a known bug that unfortunately has proven very hard to
> reproduce. I personally have only seen it a couple of times in the
> last year, and never when I had my debugger at the ready. :-(
> Most of us run on Windows, except for those who recently
> switched over to MacOS. If it occurs reliably for you on your
> system, then perhaps we can try to duplicate that configuration
> to at least give us a better shot at reproducing the problem.

I'd be happy to help. Let me know what info you'll need, and I'll
assemble it.

>> (2) Next I create a new class within that project, default package,
>> x10.lang.Object as its superclass, public scope. In the new class, I add
>>  a psv main(...) and save. I receive an error saying x10.lang.Object
>> can't be found:
>>
>> Severity and Description    Path    Resource    Location    Creation
>> Time    Id
>> Could not find type "x10.lang.Object".    HelloWorld/src   
>> HelloWorld.x10
>> /home/kxi/X10DT/HelloWorld/src/HelloWorld.x10:1    1193338815887    37
>>
>> Neither setting CLASSPATH, nor copying the jar into the project
>> directory alters the result. The result is repeatable with both the Sun
>> and IBM JVMs (1.5.0).
>>   
> 
> How are you setting the classpath? You should be able to fix
> the problem by putting the latest X10 runtime jar on the Libraries
> portion of the "Java Build Path" from the Project Properties.
> If that's not it, can you check whether there's anything relevant
> in the Error Log view? ("Window" -> "Show View" -> "Other..."
> -> "PDE Runtime" -> "Error Log")
> 

I set CLASSPATH in the shell environment before launching eclipse:

        export CLASSPATH="pathtoX10runtime.jar"
        ./eclipse

The JAR file does appear in the build path libraries. The error log
contains the following (note that the X10 runtime.jar is the second item
in the class path):

=================================================================
!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.596
!MESSAGE build kind = Full

!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.597
!MESSAGE ==> Scanning for X10 source files in project 'HelloWorld'... <==

!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.597
!MESSAGE X10 source file scan completed for project 'HelloWorld'...

!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.598
!MESSAGE Running X10C on source file set 'src/HelloWorld.x10'...

!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.598
!MESSAGE Source path = [/home/kxi, /home/kxi/X10DT/HelloWorld/src]

!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.598
!MESSAGE Class path =
/HelloWorld/src;/home/kxi/bin/ECLIPSE/3.2.2/plugins/x10.runtime_1.0.66.jar;/usr/java/jdk1.5.0_11/jre/lib/rt.jar;/usr/java/jdk1.5.0_11/jre/lib/jsse.jar;/usr/java/jdk1.5.0_11/jre/lib/jce.jar;/usr/java/jdk1.5.0_11/jre/lib/charsets.jar;/usr/java/jdk1.5.0_11/jre/lib/ext/localedata.jar;/usr/java/jdk1.5.0_11/jre/lib/ext/dnsns.jar;/usr/java/jdk1.5.0_11/jre/lib/ext/sunjce_provider.jar;/usr/java/jdk1.5.0_11/jre/lib/ext/sunpkcs11.jar:/home/kxi/bin/ECLIPSE/3.2.2/startup.jar:/opt/ibm/java2-i386-50/jre/lib/vm.jar:/opt/ibm/java2-i386-50/jre/lib/core.jar:/opt/ibm/java2-i386-50/jre/lib/charsets.jar:/opt/ibm/java2-i386-50/jre/lib/graphics.jar:/opt/ibm/java2-i386-50/jre/lib/security.jar:/opt/ibm/java2-i386-50/jre/lib/ibmpkcs.jar:/opt/ibm/java2-i386-50/jre/lib/ibmorb.jar:/opt/ibm/java2-i386-50/jre/lib/ibmcfw.jar:/opt/ibm/java2-i386-50/jre/lib/ibmorbapi.jar:/opt/ibm/java2-i386-50/jre/lib/ibmjcefw.jar:/opt/ibm/java2-i386-50/jre/lib/ibmjgssprovider.jar:/opt/ibm/java2-i386-50/jre/lib/ibmjsseprovider
2.jar:/opt/ibm/java2-i386-50/jre/lib/ibmjaaslm.jar:/opt/ibm/java2-i386-50/jre/lib/ibmcertpathprovider.jar:/opt/ibm/java2-i386-50/jre/lib/server.jar:/opt/ibm/java2-i386-50/jre/lib/xml.jar

!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.599
!MESSAGE Compiler templates = data/

!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.599
!MESSAGE Output directory = /home/kxi/X10DT/HelloWorld/src

!ENTRY org.eclipse.imp.x10dt.core 1 0 2007-10-26 15:27:52.755
!MESSAGE X10C completed on source file set.
================================================================


Jeffery A. Kuehn
Senior HPC Evaluation Researcher
Future Technologies Group, Computer Science and Mathematics Division and
Scientific Computing Group, National Center for Computational Sciences
Oak Ridge National Laboratory
One Bethel Valley Road MS6173
Oak Ridge, TN  37831
P:865.241.6134 F:865.241.2650

"The ability to advance the leading edge of technology is
constrained by the ability to prune the trailing edge."
              -- Charles Dickens of Stanford University

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to