Jeff Kuehn wrote:
> 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.
>
In addition to what you've already sent, if you can just describe,
step by step, any scenario that (either reliably or usually) triggers
the bug. If it happens only in some particular project/workspace,
if it's feasible, zip it up and attach it. If it happens in any project/
workspace, then we obviously don't need that bit of context.
>>> (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
>
I don't think the Eclipse java compiler will ever look at environment
variables to determine the compile-time or run-time classpath. The
only way to affect the compile-time classpath is by manipulating it
through the "Java Build Path" page on the "Project Properties"
dialog, or by editing the .classpath file in the root of the project
folder.
Have you verified that the given X10 runtime jar is in fact at the
following location?
/home/kxi/bin/ECLIPSE/3.2.2/plugins/x10.runtime_1.0.66.jar
Also, what version of the X10DT do you have installed? [Find
out by invoking "Help" -> "About..." -> "Feature Details".] Is
it 3.2.66? Or did you update to the later release?
Can you verify that the jar has "reasonable"-looking contents?
[E.g., it should contain the various X10 runtime classes such as
x10.lang.Object.]
Is the jar file readable by you?
If all of these things check out, can you zip up the project and
attach it to a message posted here?
> 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/ibmjsseprovid
er
> 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.
> ================================================================
>
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IMP Team Lead (http://eclipse-imp.sourceforge.net)
X10: Productivity for High-Performance Parallel Programming (http://x10.sf.net)
-------------------------------------------------------------------------
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