Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use a java library in a Dart application?

Tags:

dart

I started working through the Dart tutorials this week and have been pretty impressed with the language, tools, and capabilities. However, I'm still learning the language.

I'm considering writing a server-side application with Dart and would like to import an existing java library and leverage its classes and methods. Is this possible?

I haven't seen any references or samples indicating that this is a valid use case.

Your thoughts and answers would be appreciated.

like image 981
lrivera Avatar asked Apr 04 '13 02:04

lrivera


1 Answers

No, it is not possible. Dart and Java are different languages that both run in their own VM.

You can however invoke java via the Process class.

There is also a Java to Dart plugin that is in an experimental phase.

like image 157
Christophe Herreman Avatar answered Sep 17 '22 10:09

Christophe Herreman