Re: j2s-development] Eclipse 3.2 help
Brought to you by:
zhourenjian
|
From: <krz...@wp...> - 2006-07-20 21:33:30
|
Hi, I would try to import some of these: <script src="j2s-core-bare.z.js" /> <script src="j2s-core-basic.z.js" /> <script src="j2s-core-common.z.js" /> <script src="j2s-core-util.z.js" /> In your case maybe importing more of these j2s-core-xxx.z.js files is necessary. You can find those in the project net.sf.j2s.lib. If you don't have this project you can check it out from Subversion repository. Krzysztof Dnia 20-07-2006 o godz. 21:20 Rob Light napisał(a): > I downloaded and installed > j2s-1.0.0-m2-eclipse-3.2.0-rc.zip and followed the > instructions to install located here: > http://j2s.sourceforge.net/download.html > > Here's the generated HTML: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xml:lang="en" lang="en"> > <head> > <title>HelloJ2World</title> > <script type="text/javascript" > src="bin/HelloJ2World.js"></script> > </head> > <body> > <div id="_console_" class="consolewindow"></div> > <script type="text/javascript"> > HelloJ2World.main([]); > </script> > </body> > </html> > > And the generated JS: > > c$ = Clazz.decorateAsClass (function () { > Clazz.instantialize (this, arguments); > }, null, "HelloJ2World"); > c$.main = Clazz.defineMethod (c$, "main", > function (args) { > System.out.println ("Hello World!"); > }, "~A"); > > > Any ideas? > > Thanks in advance, > Rob _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |