JCLA Runtime error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I need to convert set of Java classes exported from IBM Modeling environment
to C# for implementation.
When I invoke JCLA conversion from File->Open->Convert in Visual Studio 2005
it starts just fine parsing file after file but then it breaks on page 7 of
JCLA Wizard.

The dialog with runtime error is shown that says:

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!

Program: C:\Program Files\Micros...

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---------------------------
OK
---------------------------

From the conversion log I can see that the parsing of java files has
completed so it seems that the error occurs in the very next step.

I've tried on another, freshly installed machine and the wizard frozen at
the same point at page 7.

Note that I don't have any Java tools on the machines.

How can I get JCLA to convert Java to C# in VS 2005?

Regards,

Aleksandar,
Pexim Solutions
 
Aleksandar,

Without showing the code, it is impossible to tell.

It should be noted that the JCLA is not perfect, and will not give you a
direct 1-1 mapping from Java code to C# code. If you have an idea of which
file the program is having problems on, you might be able to stub out the
java code and then re-implement it by hand in the C# once the conversion
assistant is done with it.

Hope this helps.
 
Nicholas,

Thanks for you response, but I doubt that it has anytihng to do with code.
To verify this I've created a trivial HelloWorld.java example and compiled
it using javac.
/* Listing of HelloWorld.java */
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
/* eof */

The compiled and run just fine, but JCLA converison assistant produced the
same error I've described in my original post.
Here are the contents od JCLA conversion log:

<ConversionLog>
<Settings>
<Setting
Name = "LogFile"
Value = "Java.xml"
/>
<Setting
Name = "ProjectName"
Value = "Java"
/>
<Setting
Name = "StartTime"
Value = "Sunday, February 05, 2006 10:15:59"
/>
<Setting
Name = "OutputDir"
Value = "C:\Java\Java.NET"
/>
<Setting
Name = "ProjectPath"
Value = "C:\Java"
/>
</Settings>
<Root>
<File
OldPath = "C:\Java\HelloWorld.java"
NewPath = "C:\Java\Java.NET\HelloWorld.cs"<Issue
Type = "Compile"
Number = "0000011"
Severity = "1"
Conversion process has been crashed</Issue>
</File>
</Root>
</ConversionLog>

How can I get support for this issue?

Regards,
- Aleksandar.


Nicholas Paldino said:
Aleksandar,

Without showing the code, it is impossible to tell.

It should be noted that the JCLA is not perfect, and will not give you a
direct 1-1 mapping from Java code to C# code. If you have an idea of which
file the program is having problems on, you might be able to stub out the
java code and then re-implement it by hand in the C# once the conversion
assistant is done with it.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Aleksandar said:
Hi,

I need to convert set of Java classes exported from IBM Modeling
environment
to C# for implementation.
When I invoke JCLA conversion from File->Open->Convert in Visual Studio
2005
it starts just fine parsing file after file but then it breaks on page 7
of
JCLA Wizard.

The dialog with runtime error is shown that says:

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!

Program: C:\Program Files\Micros...

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
---------------------------
OK
---------------------------

From the conversion log I can see that the parsing of java files has
completed so it seems that the error occurs in the very next step.

I've tried on another, freshly installed machine and the wizard frozen at
the same point at page 7.

Note that I don't have any Java tools on the machines.

How can I get JCLA to convert Java to C# in VS 2005?

Regards,

Aleksandar,
Pexim Solutions
 
Back
Top