| |

VerySource

 Forgot password?
 Register
Search
View: 608|Reply: 3

How to transfer jars written by yourself when transferring from java to C #

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-11 09:00:01
| Show all posts |Read mode
There is a jar written by import in source java, how to use this jar to C # when transferring to C #.
Reply

Use magic Report

0

Threads

5

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-17 20:45:01
| Show all posts
There is no way to quote directly. Generally speaking, first convert your Java project to J # project, and then C # can reference the DLL generated by J #.

Borland / CodeGear internally develops a Java2C # compiler, which can convert Java code to C #. But it seems that it has never been sold.
Reply

Use magic Report

0

Threads

38

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-4-18 22:00:01
| Show all posts
It is unlikely that the .NET class library is very similar to the Java API, and the C # language is similar to Java, but not the same
Only rewrite ~
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-4-20 05:15:02
| Show all posts
/ **tietie
There is no way to quote directly. Generally speaking, first convert your Java project to J # project, and then C # can reference the DLL generated by J #.
Borland / CodeGear internally develops a Java2C # compiler, which can convert Java code to C #. But it seems that it has never been sold. You can Google to see if there are similar technologies. * /

Using VisualStudio2005 I put java2C #, but the jar I wrote cannot be converted.

/ **cqgang
It is unlikely that the .NET class library is very similar to the Java API, and the C # language is similar to Java, but not the same
Only rewrite ~ * /

Maybe you are right. I must change the classes in the jar to C #.

  
Is there really no quick way? !
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list