j2s-development Mailing List for Java2Script (Page 5)
Brought to you by:
zhourenjian
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(32) |
Jun
(55) |
Jul
(24) |
Aug
(12) |
Sep
(6) |
Oct
(25) |
Nov
(3) |
Dec
(16) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2009 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
|
From: Josson S. <jo...@sj...> - 2006-06-16 11:14:14
|
-- Regards /js |
|
From: Josson S. <jo...@sj...> - 2006-06-15 13:27:35
|
Dynamic loading *.js will be complex things. And I know that dojo toolkit is using its dynamic loading mechanism of JavaScript files. For Java2Script, First, the number of *.js files is somewhat huge already. It is more than 200. Setup the connections will require a lot of extra times. Second, referencing, sub-referencing, and sub-sub-referencing, ... may reference most of the classes. It requires some algorithm to cut off those unnecessary sub-referencing until it's necessary. Third, Java programmers should not be required to know things about dynamic loading of JavaScript. More discussions are needed. Soheil Hassas Yeganeh wrote: > Oh, a very nice doco! I found here : > http://ajaxpatterns.org/On-Demand_Javascript > > On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > >> Hi, >> I've a proposal for loading javascript files, dynamically. Suppose we >> have a lot of javascript files generated. As it occures in many >> applications many of the javascript files are not used frequently. >> So, Now, if we want to run that application we have to import a lot of >> js files in the html. This will make the application very slow and >> heavy. >> So, we need a dynamic javascript loading mechanism. If we have this >> mechanism, we can also implement methods like Class.forName(). >> We can use .z files generated by j2s to dynamically loading need >> javascript files for each class. >> In other words, we need something like the Bindows' BiScriptLoader. >> Regards, >> Soheil Hassas Yeganeh >> >> > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > -- Regards /js |
|
From: Josson S. <jo...@sj...> - 2006-06-15 13:27:31
|
Some bugs of autoboxing are fixed. Check out codes, please.
But there are lots of others leaving unfixed. For example:
Float f = new Float(324.0);
f++;
System.out.println(f);
It seems that autoboxing and primitive types have lots of critical
differences for Java and JavaScript. And that there will be endless
bugs. So I think I should list autoboxing as the big thing in the defect
list.
Soheil Hassas Yeganeh wrote:
> yes! exactly!
>
> On 6/11/06, Josson Smith <jo...@sj...> wrote:
>
>> Now I get the point.
>>
>> It seems that Java2Script compiler should compile
>> m.put ("x", 1);
>> into
>> m.put("x", new Integer(1));
>> for all those autoboxing methods
>>
>> /js
>>
>> Soheil Hassas Yeganeh wrote:
>>
>>> I'm agreed with your points. But, I'm arguing about something different.
>>>
>>> Consider the example I've told before :
>>> Map m = new HashMap();
>>> m.put("x", 1); // Now works with m.put("x", new Integer(1));
>>> if( m.get("x") instanceof Integer){
>>> System.out.println("J2S Works!");
>>> }
>>> System.out.println(((Integer)m.get("x")).intValue()); // ***
>>> ...
>>> When the number is constructed with Integer constructor call, J2S
>>> works. But, without the initialization it does not.
>>> In other words, in Java 5, 1 is instance of Integer, 1l is insatnce of
>>> Long, 1d is intanceof Double, and false is instance of Boolean,
>>> without any constructor call.
>>> But as you said, there are no differences between Integer.intValue()
>>> and Double.doubleValue() of 1 in javascript. I think at least we have
>>> to propose proper classes for them.
>>> Suppose the *** line, J2S will say intValue is not found!
>>>
>>> Regards,
>>> Soheil
>>>
>>>
>>> _______________________________________________
>>> j2s-development mailing list
>>> j2s...@li...
>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> j2s-development mailing list
>> j2s...@li...
>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>
>>
>
>
> _______________________________________________
> j2s-development mailing list
> j2s...@li...
> https://lists.sourceforge.net/lists/listinfo/j2s-development
>
>
>
--
Regards
/js
|
|
From: Josson S. <jo...@sj...> - 2006-06-14 14:47:37
|
"j2s.abandoned.list" is just for those classes that you think should be ignored and not be included in the generated HTML. As each test or each snippet is stand alone, running each one as "Java2Script Application" will only require their specific *.js. And the others *.js should be left out for a faster loading speed and fewer errors (Maybe there are errors in *.js) And in regular projects such as net.sf.j2s.java.org.eclipse.swt, those classes like *.document, *.window and others are defining DOM objects which are already existed, should be abandoned. Soheil Hassas Yeganeh wrote: > Hi, > Why all classes in swt test and snippet project in the source > repository are abandomed ? > Regards, > Soheil > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > -- Regards /js |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-14 14:34:16
|
Hi, I've a proposal for loading javascript files, dynamically. Suppose we have a lot of javascript files generated. As it occures in many applications many of the javascript files are not used frequently. So, Now, if we want to run that application we have to import a lot of js files in the html. This will make the application very slow and heavy. So, we need a dynamic javascript loading mechanism. If we have this mechanism, we can also implement methods like Class.forName(). We can use .z files generated by j2s to dynamically loading need javascript files for each class. In other words, we need something like the Bindows' BiScriptLoader. Regards, Soheil Hassas Yeganeh |
|
From: Josson S. <jo...@sj...> - 2006-06-14 14:28:36
|
Not necessary now. .exsd file is now just for net.sf.j2s.core.extenedCompiler not for org.eclipse.jdt.core.extendedCompiler any longer. Soheil Hassas Yeganeh wrote: > That is a greate work! > I have a question. Is it necessary to copy the exsd file to the schema > folder of jdt source, now? There is nothing mentioned about this in > the Howto! > > Regards, > Soheil > On 6/14/06, Josson Smith <jo...@sj...> wrote: > >> Hi, >> >> Something about "Enhancing JDT core jar" are discussed in >> http://sourceforge.net/forum/forum.php?thread_id=1420543&forum_id=521471 >> >> And now there are no needs to enhance the JDT core jar now. Just check >> out the latest codes from Subversion repository following the >> instructions of http://j2s.sourceforge.net/setup-j2s-from-subversion.html . >> >> If you have earlier versions of Java2Script, you may replace the JDT >> core jar with the original core jar. >> >> -- >> Regards >> >> /js >> >> >> >> >> >> >> _______________________________________________ >> j2s-development mailing list >> j2s...@li... >> https://lists.sourceforge.net/lists/listinfo/j2s-development >> >> >> >> > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > -- Regards /js |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-14 14:18:31
|
Hi, Why all classes in swt test and snippet project in the source repository are abandomed ? Regards, Soheil |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-14 14:10:17
|
That is a greate work! I have a question. Is it necessary to copy the exsd file to the schema folder of jdt source, now? There is nothing mentioned about this in the Howto! Regards, Soheil On 6/14/06, Josson Smith <jo...@sj...> wrote: > Hi, > > Something about "Enhancing JDT core jar" are discussed in > http://sourceforge.net/forum/forum.php?thread_id=1420543&forum_id=521471 > > And now there are no needs to enhance the JDT core jar now. Just check > out the latest codes from Subversion repository following the > instructions of http://j2s.sourceforge.net/setup-j2s-from-subversion.html . > > If you have earlier versions of Java2Script, you may replace the JDT > core jar with the original core jar. > > -- > Regards > > /js > > > > > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |
|
From: Josson S. <jo...@sj...> - 2006-06-14 10:11:58
|
Hi, Something about "Enhancing JDT core jar" are discussed in http://sourceforge.net/forum/forum.php?thread_id=1420543&forum_id=521471 And now there are no needs to enhance the JDT core jar now. Just check out the latest codes from Subversion repository following the instructions of http://j2s.sourceforge.net/setup-j2s-from-subversion.html . If you have earlier versions of Java2Script, you may replace the JDT core jar with the original core jar. -- Regards /js |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-13 18:54:29
|
Hi, I think we need an on demand javascript loading functionality for java2script. There is a good article here http://ajaxpatterns.org/On-Demand_Javascript. By the way, I had sent an email like this to the mailing list but it is detected as spam. Regareds, Soheil |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-13 09:51:49
|
I think the josson post is better than mine :) I did not see his before sending mine! On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > put the extendedCompiler.exsd file (written bellow) in the path bellow: > eclipse-3.1.2/plugins/org.eclipse.jdt.source_3.1.2/src/org.eclipse.jdt.core_3.1.2/schema > and then restart your eclipse with -clean option. > > extendedCompiler.exsd > <?xml version='1.0' encoding='UTF-8'?> > <!-- Schema file written by PDE --> > <schema targetNamespace="org.eclipse.jdt.core"> > <annotation> > <appInfo> > <meta.schema plugin="org.eclipse.jdt.core" id="j2sCompiler" > name="Java2Script Compiler"/> > </appInfo> > <documentation> > The JDT internal compiler is extended in order to make > compiler do more things (Such as compiling Java codes into JavaScript > codes) when it is running. > </documentation> > </annotation> > > <element name="extension"> > <complexType> > <sequence> > <element ref="extendedCompiler" minOccurs="0" > maxOccurs="unbounded"/> > </sequence> > <attribute name="point" type="string" use="required"> > <annotation> > <documentation> > > </documentation> > </annotation> > </attribute> > <attribute name="id" type="string"> > <annotation> > <documentation> > > </documentation> > </annotation> > </attribute> > <attribute name="name" type="string"> > <annotation> > <documentation> > > </documentation> > <appInfo> > <meta.attribute translatable="true"/> > </appInfo> > </annotation> > </attribute> > </complexType> > </element> > > <element name="extendedCompiler"> > <complexType> > <attribute name="id" type="string" use="required"> > <annotation> > <documentation> > > </documentation> > </annotation> > </attribute> > <attribute name="class" type="string" use="required"> > <annotation> > <documentation> > > </documentation> > <appInfo> > <meta.attribute kind="java"/> > </appInfo> > </annotation> > </attribute> > </complexType> > </element> > > <annotation> > <appInfo> > <meta.section type="since"/> > </appInfo> > <documentation> > JDT 3.1, J2S 0.2.0 > </documentation> > </annotation> > > <annotation> > <appInfo> > <meta.section type="examples"/> > </appInfo> > <documentation> > > </documentation> > </annotation> > > <annotation> > <appInfo> > <meta.section type="apiInfo"/> > </appInfo> > <documentation> > > </documentation> > </annotation> > > <annotation> > <appInfo> > <meta.section type="implementation"/> > </appInfo> > <documentation> > Enhance the JDT Core's jar and replace with a new Compiler class > </documentation> > </annotation> > > <annotation> > <appInfo> > <meta.section type="copyright"/> > </appInfo> > <documentation> > j2s.sourceforge.net(Contributor: ognize.com) > </documentation> > </annotation> > > </schema> > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-13 07:16:04
|
Oh, a very nice doco! I found here : http://ajaxpatterns.org/On-Demand_Javascript On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > Hi, > I've a proposal for loading javascript files, dynamically. Suppose we > have a lot of javascript files generated. As it occures in many > applications many of the javascript files are not used frequently. > So, Now, if we want to run that application we have to import a lot of > js files in the html. This will make the application very slow and > heavy. > So, we need a dynamic javascript loading mechanism. If we have this > mechanism, we can also implement methods like Class.forName(). > We can use .z files generated by j2s to dynamically loading need > javascript files for each class. > In other words, we need something like the Bindows' BiScriptLoader. > Regards, > Soheil Hassas Yeganeh > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-12 20:17:00
|
put the extendedCompiler.exsd file (written bellow) in the path bellow:
eclipse-3.1.2/plugins/org.eclipse.jdt.source_3.1.2/src/org.eclipse.jdt.core_3.1.2/schema
and then restart your eclipse with -clean option.
extendedCompiler.exsd
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.jdt.core">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.jdt.core" id="j2sCompiler"
name="Java2Script Compiler"/>
</appInfo>
<documentation>
The JDT internal compiler is extended in order to make
compiler do more things (Such as compiling Java codes into JavaScript
codes) when it is running.
</documentation>
</annotation>
<element name="extension">
<complexType>
<sequence>
<element ref="extendedCompiler" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="extendedCompiler">
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
</documentation>
<appInfo>
<meta.attribute kind="java"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="since"/>
</appInfo>
<documentation>
JDT 3.1, J2S 0.2.0
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="examples"/>
</appInfo>
<documentation>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="apiInfo"/>
</appInfo>
<documentation>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="implementation"/>
</appInfo>
<documentation>
Enhance the JDT Core's jar and replace with a new Compiler class
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
j2s.sourceforge.net(Contributor: ognize.com)
</documentation>
</annotation>
</schema>
|
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-12 19:48:11
|
The problem is solved now. I implement the equals for Long, Integer,
Float and Double.
On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote:
> Hi,
>
> I'm now doing a lot of tests of java core packages. I found another
> problem caused by using Number.
> The code written bellow does not work. It's about the
> Number.hashCode() the firefox says:
> (Error: Number.prototype.toString called on incompatible Object
> Source File: file:///home/soheil/ws-j2s-svn/net.sf.j2s.lib/j2slib/j2s-core-basic.z.js
> Line: 108)
> ...
> Map x = new HashMap();
> x.put(new Long(3), new Long(2));
> System.out.println(x.get(new Long(3)));
> ...
>
> I've tested workarounds written below. Number.toString() works but
> another problem occures it does not found any thing on the map. I
> think hashCode() and equals() of Long, Integer, ... deosnot work!
> Number.prototype.toString = function(){
> return this + '';
> }
> and
> Number.prototype.toString = function(){
> return new java.lang.String(this + '');
> }
> How this problem can be solved?
> I will report any other java.util prolems as I found them.
> Regards,
> Soheil
>
|
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-12 18:22:59
|
The last error can be solved just by editing the plugin.xml of jdt core jar file! On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > By the way, would you please send the mails to the mailing list,too. > They sould be logged for others! > Thanx > > On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > > you have to put the exsd file in your jdt.source_3.1.2/schema > > (creating a exsd file) and then introduce the exsd to > > jdt.core_3.1.2.jar(introducing it in jdt.core_3.1.2.jar plugin.xml > > file) > > > > On 6/12/06, David Goodenough <dav...@bt...> wrote: > > > I did the enhancement (which apparently went OK) and restarted Eclipse > > > (with -clean just to be sure) and all the errors (and warnings) except the > > > first went away. So we are nearly there. > > > > > > One thing I notice is that you said to put the schema in > > > jdt.source_3.1.2/schema but then the extension point should be put > > > into the plugin for jdt.core_3.1.2. Was this what you meant? > > > > > > David > > > > > > On Monday 12 June 2006 11:55, you wrote: > > > > I've got this problem alot of time of my ubuntu linux. Do what I said > > > > in my post after add the following line to plugin.xml of > > > > org.eclipse.jdt.core_3.1.2.jar file ( after enhancing it) and restart > > > > your eclipse with -clean option. > > > > > > > > This line should be added to your plugin.xml : > > > > <extension-point name="Java2Script Compiler" id="extendedCompiler" > > > > schema="schema/extendedCompiler.exsd"/> > > > > > > > > On 6/12/06, David Goodenough <dav...@bt...> wrote: > > > > > On Monday 12 June 2006 10:59, Josson Smith wrote: > > > > > > Hi, > > > > > > > > > > > > Some updates of "Setup Java2Script Environment from Subversion > > > > > > Repository", you MUST also download project "net.sf.j2s.ajax". > > > > > > > > > > > > Try to refresh the project net.sf.j2s.core. Error of "The import > > > > > > org.eclipse.jdt.core cannot be resolved" seldom occurs. > > > > > > > > > > Well refreshing the project did not change anything. > > > > > > > > > > > The error "Unknown extension point: > > > > > > 'org.eclipse.jdt.core.extendedCompiler'" can be ignored when you check > > > > > > out the codes. > > > > > > > > > > I think I understand that, I presume it gets resolved when I extend the > > > > > compiler. > > > > > > > > > > > To make a developer build of the Java2Script, you should export 3 > > > > > > project net.sf.j2s.core, net.sf.j2s.lib, net.sf.j2s.ui as "Deployable > > > > > > plug-ins and fragments" to your %ECLIPSE_HOME%/plugins, and the plugin > > > > > > "net.sf.j2s.ajax", "net.sf.j2s.lib" should NOT be packed as "Package > > > > > > plug-ins as individuals JAR archives". > > > > > > > > > > When I try to export the core it complains about errors and refuses to > > > > > generate anything. So I can not progress at all from here. > > > > > > > > > > David > > > > > > > > > > > Now you already have the binary build of J2S, following the steps of > > > > > > http://j2s.sourceforge.net/setup-j2s-from-subversion.html to enhance > > > > > > JDT core jar. > > > > > > > > > > > > After Eclipse restarted, the error "Unknown extension point: > > > > > > 'org.eclipse.jdt.core.extendedCompiler'" should disappear. > > > > > > > > > > > > Regards > > > > > > > > > > > > /js > > > > > > > > > > > > David Goodenough wrote: > > > > > > > I am trying to follow the install instructions and I am having a few > > > > > > > problems. > > > > > > > > > > > > > > I checked out the five projects from SVN, but immediately Eclipse > > > > > > > flaged some of them with errors. The problems view says there are > > > > > > > 100 errors. > > > > > > > > > > > > > > For example:- > > > > > > > > > > > > > > Severity Description Resource In Folder Location > > > > > > > Creation Time Id 2 Unknown extension point: > > > > > > > 'org.eclipse.jdt.core.extendedCompiler'. plugin.xml > > > > > > > net.sf.j2s.core line 7 12 June 2006 10:07:14 797 > > > > > > > Severity Description Resource In Folder Location > > > > > > > Creation Time Id 2 The import org.eclipse.jdt.core cannot > > > > > > > be resolved ASTEmptyParser.java > > > > > > > net.sf.j2s.core/src/net/sf/j2s/core/astvisitors line 13 12 June > > > > > > > 2006 10:07:14 735 > > > > > > > > > > > > > > The second one is repeated many times over for each import of a class > > > > > > > in org.eclipse.jdt.core. I guess this means that I do not have > > > > > > > something set up properly. Anyone got any ideas as to what it might > > > > > > > be? > > > > > > > > > > > > > > I am running Eclipse 3.1.2 on top of update 6 of Sun 1.5, on a Debian > > > > > > > sid box. > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > j2s-development mailing list > > > > > > > j2s...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > > > > > _______________________________________________ > > > > > > j2s-development mailing list > > > > > > j2s...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > > > _______________________________________________ > > > > > j2s-development mailing list > > > > > j2s...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-12 15:33:05
|
Hi,
I'm now doing a lot of tests of java core packages. I found another
problem caused by using Number.
The code written bellow does not work. It's about the
Number.hashCode() the firefox says:
(Error: Number.prototype.toString called on incompatible Object
Source File: file:///home/soheil/ws-j2s-svn/net.sf.j2s.lib/j2slib/j2s-core-basic.z.js
Line: 108)
...
Map x = new HashMap();
x.put(new Long(3), new Long(2));
System.out.println(x.get(new Long(3)));
...
I've tested workarounds written below. Number.toString() works but
another problem occures it does not found any thing on the map. I
think hashCode() and equals() of Long, Integer, ... deosnot work!
Number.prototype.toString = function(){
return this + '';
}
and
Number.prototype.toString = function(){
return new java.lang.String(this + '');
}
How this problem can be solved?
I will report any other java.util prolems as I found them.
Regards,
Soheil
|
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-12 15:11:02
|
I've got this problem alot of time of my ubuntu linux. Do what I said in my post after add the following line to plugin.xml of org.eclipse.jdt.core_3.1.2.jar file ( after enhancing it) and restart your eclipse with -clean option. This line should be added to your plugin.xml : <extension-point name="Java2Script Compiler" id="extendedCompiler" schema="schema/extendedCompiler.exsd"/> On 6/12/06, David Goodenough <dav...@bt...> wrote: > On Monday 12 June 2006 10:59, Josson Smith wrote: > > Hi, > > > > Some updates of "Setup Java2Script Environment from Subversion > > Repository", you MUST also download project "net.sf.j2s.ajax". > > > > Try to refresh the project net.sf.j2s.core. Error of "The import > > org.eclipse.jdt.core cannot be resolved" seldom occurs. > Well refreshing the project did not change anything. > > > > The error "Unknown extension point: > > 'org.eclipse.jdt.core.extendedCompiler'" can be ignored when you check > > out the codes. > I think I understand that, I presume it gets resolved when I extend the > compiler. > > > > To make a developer build of the Java2Script, you should export 3 > > project net.sf.j2s.core, net.sf.j2s.lib, net.sf.j2s.ui as "Deployable > > plug-ins and fragments" to your %ECLIPSE_HOME%/plugins, and the plugin > > "net.sf.j2s.ajax", "net.sf.j2s.lib" should NOT be packed as "Package > > plug-ins as individuals JAR archives". > When I try to export the core it complains about errors and refuses to > generate anything. So I can not progress at all from here. > > David > > > > Now you already have the binary build of J2S, following the steps of > > http://j2s.sourceforge.net/setup-j2s-from-subversion.html to enhance JDT > > core jar. > > > > After Eclipse restarted, the error "Unknown extension point: > > 'org.eclipse.jdt.core.extendedCompiler'" should disappear. > > > > Regards > > > > /js > > > > David Goodenough wrote: > > > I am trying to follow the install instructions and I am having a few > > > problems. > > > > > > I checked out the five projects from SVN, but immediately Eclipse flaged > > > some of them with errors. The problems view says there are 100 errors. > > > > > > For example:- > > > > > > Severity Description Resource In Folder Location Creation Time Id > > > 2 Unknown extension point: > > > 'org.eclipse.jdt.core.extendedCompiler'. plugin.xml net.sf.j2s.core line > > > 7 12 June 2006 10:07:14 797 > > > Severity Description Resource In Folder Location Creation Time Id > > > 2 The import org.eclipse.jdt.core cannot be resolved ASTEmptyParser.java > > > net.sf.j2s.core/src/net/sf/j2s/core/astvisitors line 13 12 June 2006 > > > 10:07:14 735 > > > > > > The second one is repeated many times over for each import of a class in > > > org.eclipse.jdt.core. I guess this means that I do not have something > > > set up properly. Anyone got any ideas as to what it might be? > > > > > > I am running Eclipse 3.1.2 on top of update 6 of Sun 1.5, on a Debian sid > > > box. > > > > > > Regards > > > > > > David > > > > > > > > > _______________________________________________ > > > j2s-development mailing list > > > j2s...@li... > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-12 15:05:37
|
you have to put the exsd file in your jdt.source_3.1.2/schema (creating a exsd file) and then introduce the exsd to jdt.core_3.1.2.jar(introducing it in jdt.core_3.1.2.jar plugin.xml file) On 6/12/06, David Goodenough <dav...@bt...> wrote: > I did the enhancement (which apparently went OK) and restarted Eclipse > (with -clean just to be sure) and all the errors (and warnings) except the > first went away. So we are nearly there. > > One thing I notice is that you said to put the schema in > jdt.source_3.1.2/schema but then the extension point should be put > into the plugin for jdt.core_3.1.2. Was this what you meant? > > David > > On Monday 12 June 2006 11:55, you wrote: > > I've got this problem alot of time of my ubuntu linux. Do what I said > > in my post after add the following line to plugin.xml of > > org.eclipse.jdt.core_3.1.2.jar file ( after enhancing it) and restart > > your eclipse with -clean option. > > > > This line should be added to your plugin.xml : > > <extension-point name="Java2Script Compiler" id="extendedCompiler" > > schema="schema/extendedCompiler.exsd"/> > > > > On 6/12/06, David Goodenough <dav...@bt...> wrote: > > > On Monday 12 June 2006 10:59, Josson Smith wrote: > > > > Hi, > > > > > > > > Some updates of "Setup Java2Script Environment from Subversion > > > > Repository", you MUST also download project "net.sf.j2s.ajax". > > > > > > > > Try to refresh the project net.sf.j2s.core. Error of "The import > > > > org.eclipse.jdt.core cannot be resolved" seldom occurs. > > > > > > Well refreshing the project did not change anything. > > > > > > > The error "Unknown extension point: > > > > 'org.eclipse.jdt.core.extendedCompiler'" can be ignored when you check > > > > out the codes. > > > > > > I think I understand that, I presume it gets resolved when I extend the > > > compiler. > > > > > > > To make a developer build of the Java2Script, you should export 3 > > > > project net.sf.j2s.core, net.sf.j2s.lib, net.sf.j2s.ui as "Deployable > > > > plug-ins and fragments" to your %ECLIPSE_HOME%/plugins, and the plugin > > > > "net.sf.j2s.ajax", "net.sf.j2s.lib" should NOT be packed as "Package > > > > plug-ins as individuals JAR archives". > > > > > > When I try to export the core it complains about errors and refuses to > > > generate anything. So I can not progress at all from here. > > > > > > David > > > > > > > Now you already have the binary build of J2S, following the steps of > > > > http://j2s.sourceforge.net/setup-j2s-from-subversion.html to enhance > > > > JDT core jar. > > > > > > > > After Eclipse restarted, the error "Unknown extension point: > > > > 'org.eclipse.jdt.core.extendedCompiler'" should disappear. > > > > > > > > Regards > > > > > > > > /js > > > > > > > > David Goodenough wrote: > > > > > I am trying to follow the install instructions and I am having a few > > > > > problems. > > > > > > > > > > I checked out the five projects from SVN, but immediately Eclipse > > > > > flaged some of them with errors. The problems view says there are > > > > > 100 errors. > > > > > > > > > > For example:- > > > > > > > > > > Severity Description Resource In Folder Location > > > > > Creation Time Id 2 Unknown extension point: > > > > > 'org.eclipse.jdt.core.extendedCompiler'. plugin.xml > > > > > net.sf.j2s.core line 7 12 June 2006 10:07:14 797 > > > > > Severity Description Resource In Folder Location > > > > > Creation Time Id 2 The import org.eclipse.jdt.core cannot > > > > > be resolved ASTEmptyParser.java > > > > > net.sf.j2s.core/src/net/sf/j2s/core/astvisitors line 13 12 June > > > > > 2006 10:07:14 735 > > > > > > > > > > The second one is repeated many times over for each import of a class > > > > > in org.eclipse.jdt.core. I guess this means that I do not have > > > > > something set up properly. Anyone got any ideas as to what it might > > > > > be? > > > > > > > > > > I am running Eclipse 3.1.2 on top of update 6 of Sun 1.5, on a Debian > > > > > sid box. > > > > > > > > > > Regards > > > > > > > > > > David > > > > > > > > > > > > > > > _______________________________________________ > > > > > j2s-development mailing list > > > > > j2s...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > _______________________________________________ > > > > j2s-development mailing list > > > > j2s...@li... > > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > _______________________________________________ > > > j2s-development mailing list > > > j2s...@li... > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Josson S. <jo...@sj...> - 2006-06-12 11:29:51
|
What about clean and rebuild the project ? Regards /js David Goodenough wrote: > On Monday 12 June 2006 10:59, Josson Smith wrote: > >> Hi, >> >> Some updates of "Setup Java2Script Environment from Subversion >> Repository", you MUST also download project "net.sf.j2s.ajax". >> >> Try to refresh the project net.sf.j2s.core. Error of "The import >> org.eclipse.jdt.core cannot be resolved" seldom occurs. >> > Well refreshing the project did not change anything. > >> The error "Unknown extension point: >> 'org.eclipse.jdt.core.extendedCompiler'" can be ignored when you check >> out the codes. >> > I think I understand that, I presume it gets resolved when I extend the > compiler. > >> To make a developer build of the Java2Script, you should export 3 >> project net.sf.j2s.core, net.sf.j2s.lib, net.sf.j2s.ui as "Deployable >> plug-ins and fragments" to your %ECLIPSE_HOME%/plugins, and the plugin >> "net.sf.j2s.ajax", "net.sf.j2s.lib" should NOT be packed as "Package >> plug-ins as individuals JAR archives". >> > When I try to export the core it complains about errors and refuses to > generate anything. So I can not progress at all from here. > > David > >> Now you already have the binary build of J2S, following the steps of >> http://j2s.sourceforge.net/setup-j2s-from-subversion.html to enhance JDT >> core jar. >> >> After Eclipse restarted, the error "Unknown extension point: >> 'org.eclipse.jdt.core.extendedCompiler'" should disappear. >> >> Regards >> >> /js >> >> David Goodenough wrote: >> >>> I am trying to follow the install instructions and I am having a few >>> problems. >>> >>> I checked out the five projects from SVN, but immediately Eclipse flaged >>> some of them with errors. The problems view says there are 100 errors. >>> >>> For example:- >>> >>> Severity Description Resource In Folder Location Creation Time Id >>> 2 Unknown extension point: >>> 'org.eclipse.jdt.core.extendedCompiler'. plugin.xml net.sf.j2s.core line >>> 7 12 June 2006 10:07:14 797 >>> Severity Description Resource In Folder Location Creation Time Id >>> 2 The import org.eclipse.jdt.core cannot be resolved ASTEmptyParser.java >>> net.sf.j2s.core/src/net/sf/j2s/core/astvisitors line 13 12 June 2006 >>> 10:07:14 735 >>> >>> The second one is repeated many times over for each import of a class in >>> org.eclipse.jdt.core. I guess this means that I do not have something >>> set up properly. Anyone got any ideas as to what it might be? >>> >>> I am running Eclipse 3.1.2 on top of update 6 of Sun 1.5, on a Debian sid >>> box. >>> >>> Regards >>> >>> David >>> >>> >>> _______________________________________________ >>> j2s-development mailing list >>> j2s...@li... >>> https://lists.sourceforge.net/lists/listinfo/j2s-development >>> >> _______________________________________________ >> j2s-development mailing list >> j2s...@li... >> https://lists.sourceforge.net/lists/listinfo/j2s-development >> > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |
|
From: David G. <dav...@bt...> - 2006-06-12 10:38:30
|
On Monday 12 June 2006 10:59, Josson Smith wrote: > Hi, > > Some updates of "Setup Java2Script Environment from Subversion > Repository", you MUST also download project "net.sf.j2s.ajax". > > Try to refresh the project net.sf.j2s.core. Error of "The import > org.eclipse.jdt.core cannot be resolved" seldom occurs. Well refreshing the project did not change anything. > > The error "Unknown extension point: > 'org.eclipse.jdt.core.extendedCompiler'" can be ignored when you check > out the codes. I think I understand that, I presume it gets resolved when I extend the compiler. > > To make a developer build of the Java2Script, you should export 3 > project net.sf.j2s.core, net.sf.j2s.lib, net.sf.j2s.ui as "Deployable > plug-ins and fragments" to your %ECLIPSE_HOME%/plugins, and the plugin > "net.sf.j2s.ajax", "net.sf.j2s.lib" should NOT be packed as "Package > plug-ins as individuals JAR archives". When I try to export the core it complains about errors and refuses to generate anything. So I can not progress at all from here. David > > Now you already have the binary build of J2S, following the steps of > http://j2s.sourceforge.net/setup-j2s-from-subversion.html to enhance JDT > core jar. > > After Eclipse restarted, the error "Unknown extension point: > 'org.eclipse.jdt.core.extendedCompiler'" should disappear. > > Regards > > /js > > David Goodenough wrote: > > I am trying to follow the install instructions and I am having a few > > problems. > > > > I checked out the five projects from SVN, but immediately Eclipse flaged > > some of them with errors. The problems view says there are 100 errors. > > > > For example:- > > > > Severity Description Resource In Folder Location Creation Time Id > > 2 Unknown extension point: > > 'org.eclipse.jdt.core.extendedCompiler'. plugin.xml net.sf.j2s.core line > > 7 12 June 2006 10:07:14 797 > > Severity Description Resource In Folder Location Creation Time Id > > 2 The import org.eclipse.jdt.core cannot be resolved ASTEmptyParser.java > > net.sf.j2s.core/src/net/sf/j2s/core/astvisitors line 13 12 June 2006 > > 10:07:14 735 > > > > The second one is repeated many times over for each import of a class in > > org.eclipse.jdt.core. I guess this means that I do not have something > > set up properly. Anyone got any ideas as to what it might be? > > > > I am running Eclipse 3.1.2 on top of update 6 of Sun 1.5, on a Debian sid > > box. > > > > Regards > > > > David > > > > > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development |
|
From: Josson S. <jo...@sj...> - 2006-06-12 10:03:28
|
Hi, Some updates of "Setup Java2Script Environment from Subversion Repository", you MUST also download project "net.sf.j2s.ajax". Try to refresh the project net.sf.j2s.core. Error of "The import org.eclipse.jdt.core cannot be resolved" seldom occurs. The error "Unknown extension point: 'org.eclipse.jdt.core.extendedCompiler'" can be ignored when you check out the codes. To make a developer build of the Java2Script, you should export 3 project net.sf.j2s.core, net.sf.j2s.lib, net.sf.j2s.ui as "Deployable plug-ins and fragments" to your %ECLIPSE_HOME%/plugins, and the plugin "net.sf.j2s.ajax", "net.sf.j2s.lib" should NOT be packed as "Package plug-ins as individuals JAR archives". Now you already have the binary build of J2S, following the steps of http://j2s.sourceforge.net/setup-j2s-from-subversion.html to enhance JDT core jar. After Eclipse restarted, the error "Unknown extension point: 'org.eclipse.jdt.core.extendedCompiler'" should disappear. Regards /js David Goodenough wrote: > I am trying to follow the install instructions and I am having a few problems. > > I checked out the five projects from SVN, but immediately Eclipse flaged > some of them with errors. The problems view says there are 100 errors. > > For example:- > > Severity Description Resource In Folder Location Creation Time Id > 2 Unknown extension point: 'org.eclipse.jdt.core.extendedCompiler'. plugin.xml > net.sf.j2s.core line 7 12 June 2006 10:07:14 797 > Severity Description Resource In Folder Location Creation Time Id > 2 The import org.eclipse.jdt.core cannot be resolved ASTEmptyParser.java > net.sf.j2s.core/src/net/sf/j2s/core/astvisitors line 13 12 June 2006 10:07:14 > 735 > > The second one is repeated many times over for each import of a class in > org.eclipse.jdt.core. I guess this means that I do not have something set up > properly. Anyone got any ideas as to what it might be? > > I am running Eclipse 3.1.2 on top of update 6 of Sun 1.5, on a Debian sid box. > > Regards > > David > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |
|
From: David G. <dav...@bt...> - 2006-06-12 09:30:22
|
I am trying to follow the install instructions and I am having a few problems. I checked out the five projects from SVN, but immediately Eclipse flaged some of them with errors. The problems view says there are 100 errors. For example:- Severity Description Resource In Folder Location Creation Time Id 2 Unknown extension point: 'org.eclipse.jdt.core.extendedCompiler'. plugin.xml net.sf.j2s.core line 7 12 June 2006 10:07:14 797 Severity Description Resource In Folder Location Creation Time Id 2 The import org.eclipse.jdt.core cannot be resolved ASTEmptyParser.java net.sf.j2s.core/src/net/sf/j2s/core/astvisitors line 13 12 June 2006 10:07:14 735 The second one is repeated many times over for each import of a class in org.eclipse.jdt.core. I guess this means that I do not have something set up properly. Anyone got any ideas as to what it might be? I am running Eclipse 3.1.2 on top of update 6 of Sun 1.5, on a Debian sid box. Regards David |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-12 07:07:18
|
Hi, I think there are some changes to the plugins. Java2script supposes that you have installed the "net.sf.j2s.lib" plugin. So it just simply make the path to the j2slib of that plugin in your generated HTML file instead of creating a j2slib directory for each project. Regards, Soheil On 6/12/06, Walter Chang <we...@gm...> wrote: > it's working!! i got my "Hello World" console output! the reason why > it wasn't working was because i kept using the old project which had > some old .js files and the browser complained about > Clazz.decorateAsClass() is not a function. btw, it seems that the in > java2script builder, the Pattern drop down box is gone and all of the > needed .js files are referenced directly to the ones in the installed > directory in the generated html file. j2slib is no longer generated > under the project folder. is the above behavior correct? > > > On 6/9/06, Josson Smith <jo...@sj...> wrote: > > Hi Walter, > > > > I checked the size of the enhanced org.eclipse.jdt.core_3.2.0.v_670.jar > > should be 3,907,708 for Eclipse 3.2.0 rc7. And the size of the original > > org.eclipse.jdt.core_3.2.0.v_670.jar should be 3,902,638. Check the size > > to see whether the jar is enhanced correctly, otherwise enhance it again > > with the original jar. > > > > Or you can post back .j2s file and the generated *.html, which may help > > us to identify the problems. > > > > Regards > > > > /js > > > > Walter Chang wrote: > > > i gave i a try. after clicking the "Enhance JDT Core" button, the > > > original jdt.core file was copied to the eclipse installed directory > > > and a new jdt.core file was generated in the plugin directory. after > > > enabling the java2script compiler in the project properties dialog and > > > recompiling my souce code, NO .js file was generated in the bin > > > directory and the application did not run correctly when ran as > > > java2script application (an empty black console was the result). no > > > exception was thrown this time though. > > > > > > btw, i am trying this on mac osx so the built-in browser is safari. > > > but i don't think this is a problem since the .js was never generated > > > at i rebuild the source. i did use safari externally to look at the > > > console output and it complained out "com" package is not present > > > which also meant the .js file was not present. > > > > > > On 6/9/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > > > > > >> Do you have tested the j2s-1.0.0-m2-eclipse-3.2.0-rc plugin ? > > >> > > >> On 6/7/06, Walter Chang <we...@gm...> wrote: > > >> > > >>> i tried the j2s plugin using eclipse 3.2 and .js file is not generated > > >>> when i compile. did i do something wrong or eclipse 3.2 is not > > >>> supported? when can we expect the support for eclipse 3.2? btw, i > > >>> think the concept for this project is awesome, especially in light of > > >>> gwt. keep up the good work > > >>> > > >>> best regards, > > >>> > > >>> walter chang > > >>> > > >>> > > >>> _______________________________________________ > > >>> j2s-development mailing list > > >>> j2s...@li... > > >>> https://lists.sourceforge.net/lists/listinfo/j2s-development > > >>> > > >>> > > >> _______________________________________________ > > >> j2s-development mailing list > > >> j2s...@li... > > >> https://lists.sourceforge.net/lists/listinfo/j2s-development > > >> > > >> > > > > > > > > > _______________________________________________ > > > j2s-development mailing list > > > j2s...@li... > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > > > > > > > > > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Walter C. <we...@gm...> - 2006-06-12 07:01:36
|
it's working!! i got my "Hello World" console output! the reason why it wasn't working was because i kept using the old project which had some old .js files and the browser complained about Clazz.decorateAsClass() is not a function. btw, it seems that the in java2script builder, the Pattern drop down box is gone and all of the needed .js files are referenced directly to the ones in the installed directory in the generated html file. j2slib is no longer generated under the project folder. is the above behavior correct? On 6/9/06, Josson Smith <jo...@sj...> wrote: > Hi Walter, > > I checked the size of the enhanced org.eclipse.jdt.core_3.2.0.v_670.jar > should be 3,907,708 for Eclipse 3.2.0 rc7. And the size of the original > org.eclipse.jdt.core_3.2.0.v_670.jar should be 3,902,638. Check the size > to see whether the jar is enhanced correctly, otherwise enhance it again > with the original jar. > > Or you can post back .j2s file and the generated *.html, which may help > us to identify the problems. > > Regards > > /js > > Walter Chang wrote: > > i gave i a try. after clicking the "Enhance JDT Core" button, the > > original jdt.core file was copied to the eclipse installed directory > > and a new jdt.core file was generated in the plugin directory. after > > enabling the java2script compiler in the project properties dialog and > > recompiling my souce code, NO .js file was generated in the bin > > directory and the application did not run correctly when ran as > > java2script application (an empty black console was the result). no > > exception was thrown this time though. > > > > btw, i am trying this on mac osx so the built-in browser is safari. > > but i don't think this is a problem since the .js was never generated > > at i rebuild the source. i did use safari externally to look at the > > console output and it complained out "com" package is not present > > which also meant the .js file was not present. > > > > On 6/9/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > > > >> Do you have tested the j2s-1.0.0-m2-eclipse-3.2.0-rc plugin ? > >> > >> On 6/7/06, Walter Chang <we...@gm...> wrote: > >> > >>> i tried the j2s plugin using eclipse 3.2 and .js file is not generated > >>> when i compile. did i do something wrong or eclipse 3.2 is not > >>> supported? when can we expect the support for eclipse 3.2? btw, i > >>> think the concept for this project is awesome, especially in light of > >>> gwt. keep up the good work > >>> > >>> best regards, > >>> > >>> walter chang > >>> > >>> > >>> _______________________________________________ > >>> j2s-development mailing list > >>> j2s...@li... > >>> https://lists.sourceforge.net/lists/listinfo/j2s-development > >>> > >>> > >> _______________________________________________ > >> j2s-development mailing list > >> j2s...@li... > >> https://lists.sourceforge.net/lists/listinfo/j2s-development > >> > >> > > > > > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Josson S. <jo...@sj...> - 2006-06-12 01:35:00
|
Add a line of j2s.compiler.mode=debug to the file .j2s, the compiler will generate JavaScript defined by @j2sDebug, and it will also disable the minimizing variable names. Add a line of j2s.compiler.mode=release to the file .j2s, the compiler won't generate JavaScript defined by @j2sDebug, and it will enable the minimizing variable names to "a", "b", "c", ... Or you can delete the line j2s.compiler.mode=... in the file .j2s, the compiler won't generate JavaScript defined by @j2sDebug, and it will not minimize variable names to "a", "b", "c", ... If you have modified the above option, and you are REQUIRED rebuild the project. If you view the *.js in J2SView, you should unchecked the option "Enable Identifier Minimization" in the dropdown menu. Regards /js Soheil Hassas Yeganeh wrote: > Hi, > > How to change the compiler variable naming, I mean preserving the > variable names and not changing them to a, b, c, ... . > I tested the debug mode, nothing happends to them! > > Thanx > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |