The UNIX and Linux Forums  

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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2008
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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-07-2008
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,611
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 07:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66