![]() |
|||||||||||
![]() |
|||||||||||
|
|
|
|
|
|
|
||||||
![]() |
![]() |
![]() |
![]() |
||||||||
![]() |
|||||||||||
FAQ
FAQ for VBeeJ For Java Conversion ServiceFAQ for using the VBeeJ for Java Free Trial ConverterFAQ for converted codeAny questions? Contact us.When you order the VBeeJ For Java Conversion Service:
We offer the following options:
Only the VB.Net (*.vb) files in your app contribute to the line count. Generated VB.Net files (e.g. Forms Designer files) do contribute to the line count. Our current target version for code conversion is Java version 1.6.0_03. If we cannot convert your code, we will notify you immiediately and refund any deposit, if there was one. Back to topOur conversion technology uses plugin adapters to map .Net services to Java implementations. VBeeJ for Java converters have plugin adapters built in for a wide variety of .Net namespaces, including:
If your application uses a .Net service for which a plugin adapter is built in, the plugin adapter code will be generated, mapping the .Net service to the Java implementation. The plugin adapter library which is built into the VBeeJ for Java Free Trial Converter:
Plugin adapters can be added to the VBeeJ for Java Free Trial Converter dynamically and a open source platform for building plugin adapters is part of the VBeeJ For Java Free Trial installation. The VBeeJ For Java Free Trial comes with a convert-and-run demo example suite that generates the Xml plugin adapter, which implements the .Net Xml API on Java 6.0. You can browse the Xml plugin adapter source and explore the platform for building plugin adapters if you download the VBeeJ For Java Free Trial and convert and run the examples. Note that the Xml plugin adapter generated by the VBeeJ for Java Free Trial Converter is generated as open source Java and it can be used in any Java context for which this Xml API may be useful. Back to topYes, this is our Compile and Execute VBeeJ For Java Conversion Service.
Back to top If you order the VBeeJ For Java Conversion Service, you can select the deposit option. For an optional deposit, you can preview a portion of your code before full delivery and payment.
If you choose the deposit option...Then you get...How do you choose the deposit option?We recommend that you convert your VB6 code to VB.Net and then convert your VB.Net code to Java. Microsoft supports an Upgrade Wizard in Visual Studio. Another good option is VB Migration Partner which is a converter written by Francesco Balena. Back to topThe Beelucid philosophy is that you should be able to leverage your software investment across platforms according to your business requirements. Our mission is support you in this task. Java is our target language for code conversion because it has many compelling attributes. Here is a quick summary:
Also, Java is platform independent. Your code will run on any operating system. New versions of Java are for the most part strongly source compatible with previous versions. Java is free. Java standard class libraries are free, large, diverse, and secure. Free, robust, and advanced development envionments are available for Java. (For an example, see the Eclipse Platform. The free trial comes with a demo example suite and an Eclipse workspace. The commands built into the installation Eclipse workspace show how to run the VBeeJ for Java Free Trial Converter as a tool within Eclipse. Documentation is included in the free trial installation.) Java has a huge standard class library. The functions supported by this class
library range from simple String support to networking and graphic user
interface creation. Java is a reasonably large programming language,
but its complexity is easily superseded by the class library. Sun licenses the
source for the class library, so any vendor that agrees to Sun's terms can
support the class library on their Java platform. As a result, the Java class
library is both large and ubiquitous, creating a standard software environment
on all Java platforms. The great popularity that Java has enjoyed has
resulted in a huge body of literature on all aspects of the Java class library.
This reduces the learning curve and makes the class library easier to use.
Our converters accept all of VB.Net 2003 (VB 7.1) and almost all of the features in VB.Net 2005 (VB 8.0), including inheritance of generic types, the Using keyword, and more. Unsupported features in VB 8.0 may get parse errors for unrecognized syntax and the translation will not occur. Implementation of VB.Net 2005 is ongoing. Please contact us if you have particular requirements. Back to top Installing the VBeeJ for Java Free Trial Converter
Running the VBeeJ for Java Free Trial ConverterThe VBeeJ for Java Free Trial Converter can be run
The VBeeJ for Java Free Trial Converter produces Java source files which can be used with any Java development environment.
If you are unfamiliar with Java development environments, the Eclipse Platform
is a good (free) choice. The free trial
comes with a demo example suite and an Eclipse workspace. The commands built into the installation
Eclipse workspace show how to run the VBeeJ for Java Free Trial Converter as a tool within Eclipse.
Here is a simple example, where the input and output is shown in the Eclipse Platform (version 3.2).
'Info' messages are messages which describe the translation choices made by VBeeJ. They are for infomational purposes, to help you understand the generated code better. In general no response is required. In the message, the source file name is followed by a line number and message category, and followed by the message text. [TestRedim.vb] 1: Beelucid info: Every Visual Basic namespace creates a package directory in the Java context (namespace 'TestRedim') Click the link to view an example of VB.Net source with its translation and translation messages. The linked example shows info messages, warning messages, and an error message. Back to top'Warning' messages are messages which notify the user that the Java translation may not completely match the VB.Net functionality for all cases. You should check the code indicated by these warning messages. The more common cases will most likely require no modification. In the message, the source file name is followed by a line number and message category, and followed by the message text. [TestRedim.vb] 6: Beelucid warning: Visual Basic operator 'GetType(<className>)' converted to Java '<classname>.class', which has equivalent but not identical functionality and syntax. Click the link to view an example of VB.Net source with its translation and translation messages. The linked example shows info messages, warning messages, and an error message. Back to top'Error' messages are messages which notify the user there is no Java construct or functionality that can be automatically converted to implement the VB.Net statement. There aren't many of these and they are mostly generated for features included in VB.Net for VB6 compatibility. You will need to check the code and manually convert. In the message, the source file name is followed by a line number and message category, and followed by the message text. [TestRedim.vb] 8: Beelucid error: 'ReDim' statement requires manual translation if the operand has not been declared with specific dimensions but is an object of 'Array' type (array name 'my3DIntArray'). Click the link to view an example of VB.Net source with its translation and translation messages. The linked example shows info messages, warning messages, and an error message. Back to topThe VBeeJ for Java Free Trial Converter supports VB.Net 2003 and many of the features of VB.Net 2005. This means other versions of VB may not parse, although implementation of VB.Net 2005 is ongoing and upgrades with its features will be regularly available. If you think you have a bug, please file a bug report. Back to topThis is a special directory created by VBeeJ for Java converters. The beelucid directory is:
VB.Net supports primitive types Boolean, Char, Byte, Short, Integer, Long, Single, and Double. Java's parallel types are boolean, char, byte, etc. Basic types in Java and VB.Net behave identically in some contexts but not in others. Where they behave identically, the translation is direct. Where they do not behave identically, a Bridge type wrapper object is created, that wraps the underlying basic value. The Bridge type definitions are contained in the beelucid directory. For example, a VB.Net statement of the form Dim II As Integer = 3 converts directly into the Java variable initialization statement int II = 3; VB.Net primitive types and Java basic types are parallel but they do not behave identically in all contexts. The VB.Net variables are objects which support services. An int variable in Java is a simple value. When this difference results in a difference of functionality or behavior, VBeeJ uses bridge types to bridge the difference. The goal is to have your VB.Net program convert into legal Java. For example, in VB.Net, the following variable initialization relies on the fact that Integer variables are object of class Integer: Dim II As New Integer(3) 'Integer is a class and 'New' creates a new Integer object A direct translation of this into a Java initialization would not be legal because int is a value not an object type: int II = new int(3); // Illegal Java because 'new' can't be used to create a value In this example, VBeeJ will generate a IntegerBridge class in the beelucid directory in order to create the int value: int II = new IntegerBridge(3).intValue(); The IntegerBridge class creates an object which is a wrapper for the underlying Java basic int value, and the method intValue() returns that underlying value. Back to topThe SystemBridge contains stubs as well as some implementations for library and system functions, some generated by default and others generated because they were identified in code. Click this link to view the default SystemBridge class. Back to topVBeeJ for Java converters implement complete and robust support of support of events and event handling. For events, the class EventBridge is generated. This class associates an event object with a set of handlers, which can be added and removed. For event handling, the class EventHandlerBridge is generated, which supports associating a handler with an event object. VBeeJ for Java converters will generate all the code needed to fully implement in Java the event and event handling functionality in your VB.Net program. Click this link to view a VB.Net example Test.vb which has a WithEvents variable, an event class, an event handler, and raises an event. Click this link to view classes in Test.vb after they've been converted into Java. The converted classes use the bridge classes. The VB.Net Event variable MyEvent has the type in Java of EventBridge, which associates MyEvent with a set of handlers. The class declaring this event, MyEventClass, utilizes the class EventHandlerBridge, to support associating handlers with MyEvent. For a high level view of EventBridge and EventHandlerBridge click this link . After conversion, this example compiles and executes identically on both platforms with no modification. Back to topAt this time attributes are ignored. Back to top |
|||||||||||
![]() |
|||||||||||