LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-17-2008, 05:11 PM   #1
JaseyJaseJase
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Rep: Reputation: 0
Starting a Java application from c++ using execv


Hi

Can anyone help, I'm looking for a way of starting a java app (conisting of many jars) using the execv command.

I currently have a shell script to run it, which I can call using the system command from within the code.

I tried calling the .sh file from execv but that din't work and also the contents of it (java -cp ...list of jars direclty from my C++ code) in the execv and that didn't work

can anyone give a simple example or point me towards one

thanks

J
 
Old 09-17-2008, 07:17 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538

Rep: Reputation: 58
Quote:
Originally Posted by JaseyJaseJase View Post
I tried calling the .sh file from execv but that din't work
show your execv statement. you should be able to put the same command that you would write in a terminal into the execv call.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about execv() oddabe83 Programming 7 03-06-2008 12:35 PM
Vodafone Application not starting CrownAmbassador Linux - Software 5 02-18-2008 06:59 AM
Is your Sun Java System application server starting up? crisostomo_enrico Solaris / OpenSolaris 3 09-29-2007 06:27 AM
Starting an application on X by console tiagomadeira Programming 1 01-09-2005 07:20 AM
Starting an application at boot ftwomey Linux - Newbie 3 04-25-2004 07:07 AM


All times are GMT -5. The time now is 05:28 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration