Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java n c++

 
Saras Thangaraju
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys, any help plz
jus wonderin whether java commands or functions can be executed in c++ platform or in c....
are they like mixable?
thanx!
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, unless you had an engine to use one as a scripting language for the other.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can pull off running other languages in Java with native.
 
Saras Thangaraju
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
jeroen, what do u mean use one as a scripting lang for the other? how do i do tt/ sorry i am realli new to this...h
 
Philip Herzer
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are was to mix C++ and Java code. One way I am somewhat familiar with is to use a glue like language like Python. You could write some objects in java, others is c++, c, or whatever language, and use Python to glue them together. Here is a link to an article on how Python does it.
There is also a program called Jython that you could use Pythons interpreter embedded inside of java apps.
[ February 12, 2004: Message edited by: Philip Herzer ]
 
Saras Thangaraju
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys thanx for the replies...
i think we can use JNI to do it as well.....jus one confusion
whats a native language?
thanx
 
Anand Ko
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code written in other than Java (like C, C++). I mean code written for particular specifications (like Hardware, OS).
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sarasvathi T,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy. We'd like to not have single letter last names.
Thanks Pardner! Hope to see you 'round the Ranch!
[ February 17, 2004: Message edited by: Dirk Schreckmann ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic