The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to compile from source code? wrapster UNIX and Linux Applications 1 05-27-2008 04:03 PM
compile java with GUI on unix system/putty finalight High Level Programming 0 05-22-2008 04:41 AM
Compile a code for running on boot d4n1l0d Filesystems, Disks and Memory 2 08-14-2006 02:44 PM
How to call Java classes/methods from ksh girish.sh Shell Programming and Scripting 17 06-23-2006 06:04 AM
Unable to compile ANSI compatible code on HP-UX jyotipg HP-UX 9 10-18-2001 10:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2008
surinder surinder is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 2
Post how can compile cpp code containing references to java classes

hi
there is example (on link given below )of such code that contains java class reference in c++ program.


http://slackware.cs.utah.edu/pub/sla...-Monitor-HOWTO

I am new in linux environment. and not able to compile it.
when i compile it through gcc it gives error regarding java classes like StringTokenizer.
plz tell how i can compile such code.
  #2 (permalink)  
Old 10-07-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
I can't find any references to Java stuff at the link you mentioned. By the way, the code is C, not C++.

I'm not sure if that is what you meant, but integrating Java and C/C++ code involves the Java Native Interface (JNI). I was once engaged in heavy JNI work about 6 years ago at college but have almost entirely forgotten most of it, because I have forgotten most of C/C++ myself.

The coverage of JNI has been stripped of the Sun Java tutorial for many years, probably due to lack of interest. If you want to find more information, you will need to search for older documents. I dug this up in an early version of the Java tutorial:

Integrating Native Code and Java Programs

Good luck, because it is very easy to crash the JVM with JNI.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0