• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Books for Java with C++

 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am planning to use Java along with C++ for the Server Side programming.

Can anybody suggest me some really good books for this?

Kindly suggest?

Regards,
Hitesh
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do need besides separate books on Java and C++. Do you want to build a mixed system with integrated Java and C++ parts?
 
piyush aegis
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can trying to search (like : server side programming java with c++) in Google books and refer some pages of available books,
after you got some good book than go through it.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If by C++ on server-side you mean CGI programs, then its highly outdated. If its going to be some native code, then its no where related to Java.
What is it you want to do with C++ that cannot be done through Java?
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit Ghorpade wrote:If by C++ on server-side you mean CGI programs, then its highly outdated. If its going to be some native code, then its no where related to Java.
What is it you want to do with C++ that cannot be done through Java?


I extremely sorry that i couldn't able to reply.

Yes i'm looking for some Java with C++ Integration.

Whereas, i could integrate c++ with Java.
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a concrete idea about how to integrate Java and C++?
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Jozsef Balazs wrote:Do you have a concrete idea about how to integrate Java and C++?


Yes, some how i tried the Concept of JNI, where i used C++ methods in Java.

I made that program by reading an article. But , i don't want to follow any article i just want to learn JNI step by step.

Can you suggest me any book name having same concept?
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you need a book on JNI better than the article you mentioned?
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Please suggest or is there is any other way to integrate this technologies, kindly recommend.

 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Besides having decided this:
I am planning to use Java along with C++ for the Server Side programming.

you do not seem to have any more precise ideas.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12149
31
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm curious as to WHY you are starting off with "I am planning to use Java along with C++ for the Server Side programming." Isn't that putting the cart before the horse? Usually you'd start with deciding what you wanted to do before you decide on the tools.

For example, I would say "I'm going to use a blow torch and a socket set for building stuff", and then trying to figure out how to use those to cut the boards for your birdhouse.
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


"The Server Side programming" is also a rather vague notion. There are many kinds of servers: HTTP, HTTPS, RMI, FTP, FTPS, telnet, ssh, scp, CIFS, echo, daytime etc. and you are free to roll out your own. What do you mean?
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I appreciate your reply and the way you suggest me for choosing what to do first.

Actually, we have several C++ Libraries and we need to call those methods in a Swing based Software. That's why I thought that this is the only way to achieve this.

I just want to start with some basics.
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you seem to need literature on JNI. You could have asked about it in the first place.
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it could possible.
Do you know any book,best to start with?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49471
64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked for JNI tutorials last night and didn’t find anything I thought was any good.
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyways,
I want to thank you all to suggest me and your valuable opinions.

I will buy a good book on this.

Thanks for your support.
Regards,
Hitesh
 
Winston Gutkowski
Bartender
Pie
Posts: 10430
63
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hitesh Kumar Pithadiya wrote:I just want to start with some basics.

Well, this tutorial might be a place to start, but I'd also find a good book on the subject.

You should also be aware that using JNI is often a bit of a kludge, and is likely to make your app less portable; so I'd consider translating as much of your C++ stuff into Java as you can (all of it, if possible) - although, of course, that might take some time.

Winston
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
I'll follow this article.
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:I looked for JNI tutorials last night and didn’t find anything I thought was any good.


This seems to be a relatively fresh one; last modified: July, 2012
 
Campbell Ritchie
Sheriff
Pie
Posts: 49471
64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I shall try it. But it appears to be Windows‑based.
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are hints on Unices and .so and gcc - maybe it is applicable to Unices.

 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Along the above lines this works for me on
Linux 2.6.9-101.ELsmp #1 SMP i686 athlon i386 GNU/Linux





In pid_pid.h the include was hacked:


The wrapping script:


Where j0 sets JAV

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic