.NET - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

.NET

Description:

Converts statically existing Java byte code in .class format to a .NET ... All features of VS.NET debugger are available to Java-language programmers ... – PowerPoint PPT presentation

Number of Views:56
Avg rating:3.0/5.0
Slides: 22
Provided by: Micr160
Category:
Tags: net | java

less

Transcript and Presenter's Notes

Title: .NET


1
Visual J.NET Peter Ty Developer
Evangelist .NET and Developer Group
2
Development Vision
  • 1 customer challenge is integration
  • Both app-to-app and biz-to-biz
  • Integration is historically an afterthought
  • XML Web Services address this challenge
  • New integration methodology
  • Use public Internet standards including XML
  • Works across OS, programming language, etc.
  • .NET is MSs XML Web services platform
  • Spans clients, servers and services
  • Consistent programming model, highest
    productivity tools for deepest developer pool
  • .NET Framework is the programming model

3
Microsoft Visual J .NETJava-language tool for
.NET
  • Native support for XML Web services
  • Fully integrated with Visual Studio .NET
    development environment
  • Full access to the .NET Framework
  • ASP.NET, ADO.NET, Windows Forms
  • Integration with 20 other languages
  • Protection of existing investments
  • Use java language syntax on .NET
  • Move applications and skills forward

4
Java-language Support
Legacy Java Source
.NET Frameworks
Subset of JDK 1.1.4 VJ 6.0 Libraries
Source Converter
MSIL
.NET Runtime
Win32
5
Java-language Converter
  • Supports the Java-language
  • Preserves language semantics
  • Supports MS extensions for Windows
  • J/Direct, JavaCOM, Delegates etc.
  • Fully supports consuming .NET Framework
  • CLS Compliant

6
.NET Language Extensions
  • To be CLS compliant
  • Syntax extensions required for CLS
  • ubyte
  • _at_attribute For attaching .NET attributes
  • Support for consuming .NET constructs
  • Properties, Events, Delegates, Valuetypes, Enums

7
Using .NET Framework - 1
  • Properties use property accessors
  • form.set_Text(Hello)
  • form.get_Text()
  • Delegates - Just create the delegate over a Java
    method
  • // EventHandler is a .NET Delegate
  • myHandler new EventHandler(OnClickOK)
  • Events use event accessors
  • okButton.add_Click(myHandler)
  • okButton.remove_Click(myHandler)

8
Using .NET Framework - 2
  • Attaching .NET attributes
  • / _at_attribute WebMethodAttribute(true) /
  • String GetStockQuote(String symbol)
  • Value types Just use them as reference types
  • DateTime dt new DateTime()
  • dt DateTime.Parse(01/01/2002 1200)
  • System.Object obj dt // This boxes value type
    dt
  • Enumerators
  • DayOfWeek friday DayOfWeek.Friday
  • mySchedule.SetNonWorkingDay(friday)

9
Java/COM And Other Extensions
  • J/Direct
  • _at_dll.import, _at_dll.struct, _at_dll.structmap etc.
  • JavaCOM
  • _at_com.class, _at_com.interface, _at_com.method,
    _at_com.register etc.
  • Delegates
  • delegate, multicast delegate
  • Conditional compilation
  • if, else, error etc
  • _at_conditional

10
JDK Class Libraries
  • Based on JDK 1.1.4 Specs
  • No JNI and RMI
  • Packages
  • lang, io, net, util
  • awt
  • sql, datatransfer, beans, text

11
AWT (Abstract Windows Tooolkit)
  • Windowless implementation of awt components
  • Solid Imaging performance

12
AWT
13
Binary Converter
  • Converts statically existing Java byte code in
    .class format to a .NET assemblies (in MSIL
    format)
  • Useful when Java source is not available
  • Third party Java libraries in .class format

14
Binary Converter
15
Java-language IDE In VS.NET
  • Project system
  • Full VS.NET project system
  • Upgrade VJ6 projects
  • Language services
  • Designers - ASP.NET Web Forms, Web Services
  • Class View, Object Viewer
  • Intellisense
  • Debugger
  • Java-language exceptions

16
Using J- Web Services, WinClient, and
WebClient- ASP.NET- Cross Language
17
Debugger
  • .NET Debug Engine Multi language debugging
  • All features of VS.NET debugger are available to
    Java-language programmers
  • Full Support for Java-language Exceptions
  • Java-language expression evaluator
  • Locals
  • Watch Window

18
Debugging
19
Availability
  • Beta 2 available
  • http//msdn.microsoft.com/visualj/
  • Microsoft Java Language Conversion Assistant Beta
    1

20
Summary
  • XML Web services are the solution to integration
  • Microsoft has the best XML Web services platform
  • Microsoft Visual J .NET provides XML Web
    services using the Java-language and protects
    customer investment

21
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com