Monthly Archives: March 2006

Java2Script 1.0.0 M1 with support of Java 5.0

Bugs and Fixes

When running j2sui.jar an error message box about “Failed to load Main-Class manifest attribute from …” popups. And this is a bug when packing j2sui.jar. I realized this bug until these days. And another fixed packed are here:

http://prdownloads.sourceforge.net/j2s/j2s-1.0.0-m1-eclipse-3.1-fixed.zip?download

or make downloads from the updated download page .

News: Java2Script 1.0.0 M1 with support of Java 5.0 (March 18, 2006)

New and Noteworthy
==============
Java2Script Core
—————-

  • Java 5.0 features, includes generic, enums, static imports, enhanced loops, are supported
  • Split a small (less than 8K) Object Oriented JavaScript core libraries (See: J2S Clazz)
  • Optimization on speed of loading J2S application and size of generated JavaScript codes

Java2Script SWT
—————

  • Support resizing of Shell
  • More widgets supported: Slider, Spinner, ToolBar, MessageBox
  • Modal dialog
Posted in Java, Java2Script News | 9 Comments

Object Oriented Programming in JavaScript by Java2Script

Summary

It’s well-known that JavaScript is a prototype based or object based scripting language not a complete Object Oriented Programming (OOP) language as Java, which is a well-known and most-succeeded OOP language. As AJAX applications boosting, lots of JavaScript inheritance systems are developing to make codes more readable, more manageable and more developer-friendly. However, polymorphism and super method calling, which are two most important features for OOP, are not implemented or not fully implemented. In this article, a new library will be introduced for JavaScript to simulate a complete Object Oriented Programming. And a new Eclipse JDT plugin, named “Java2Script Pacemaker”, will also be introduced to help developers in converting Java codes into Object Oriented JavaScript codes directly.

For more, please read the OOP in JavaScript by J2S(Draft) .

Posted in Java, JavaScript | 4 Comments

J2S JavaScript Inheritance Core Released

News: J2S Clazz released (March 10, 2006)
About J2S Clazz:
J2S Clazz is the core JavaScript file for the Java style classical inheritance system. It’s the fundamental part of Java2Script Pacemaker.

Features:

  • It’s small, less than 8K.
  • It provides full support of Object Oriented Programming, including the most important features polymorphism, super calling and constructors.
  • It does not break the existed protype inheritance. And it can be integrate with other existed libraries.

Download:
J2S Clazz 0.6.0

Articles:
OOP in JavaScript by J2S(Draft)

Posted in Java2Script News, JavaScript | 11 Comments