Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #26447 > unrolled thread
| Started by | naouar.bakkar@gmail.com |
|---|---|
| First post | 2013-10-28 06:08 -0700 |
| Last post | 2013-10-31 01:48 -0700 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.java.programmer
How to run a java program (JPF) from a java app ? urgent!! naouar.bakkar@gmail.com - 2013-10-28 06:08 -0700
Re: How to run a java program (JPF) from a java app ? urgent!! Jeff Higgins <jeff@invalid.invalid> - 2013-10-28 09:47 -0400
Re: How to run a java program (JPF) from a java app ? urgent!! Roedy Green <see_website@mindprod.com.invalid> - 2013-10-31 01:48 -0700
| From | naouar.bakkar@gmail.com |
|---|---|
| Date | 2013-10-28 06:08 -0700 |
| Subject | How to run a java program (JPF) from a java app ? urgent!! |
| Message-ID | <fa83afbe-aecd-4de2-85a1-33de8e2e9c8a@googlegroups.com> |
Hi everybody,
i`m developping a java app about running a java program (exactly java pathfinder) from command.
So, i placed the folder of jpf-core in a my project and i called the program from my java class as following:
Process p = Runtime.getRuntime().exec("cmd /c ./res/jpf-core/bin/jpf DiningPhil 4");
The problem is the programa JPF doesn´t work, but when i place the jpf-core in c:/.. and i call it from my java app it works succefuly!
Maybe i have to indicate the root of jre in my app or what could be the problem?
Thanks for your help!
Noa
[toc] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-28 09:47 -0400 |
| Message-ID | <l4lptg$jia$1@dont-email.me> |
| In reply to | #26447 |
On 10/28/2013 09:08 AM, naouar.bakkar@gmail.com wrote:
> Hi everybody,
>
> i`m developping a java app about running a java program (exactly java pathfinder) from command.
> So, i placed the folder of jpf-core in a my project and i called the program from my java class as following:
>
> Process p = Runtime.getRuntime().exec("cmd /c ./res/jpf-core/bin/jpf DiningPhil 4");
>
> The problem is the programa JPF doesn´t work, but when i place the jpf-core in c:/.. and i call it from my java app it works succefuly!
>
> Maybe i have to indicate the root of jre in my app or what could be the problem?
>
> Thanks for your help!
>
> Noa
>
<http://babelfish.arc.nasa.gov/trac/jpf/wiki/user/run#explicit>
From the JPF intro "...failure is not an option".
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-10-31 01:48 -0700 |
| Message-ID | <ba6479dkaqvnofddrkijlfmhuq9v5pe756@4ax.com> |
| In reply to | #26447 |
On Mon, 28 Oct 2013 06:08:52 -0700 (PDT), naouar.bakkar@gmail.com wrote, quoted or indirectly quoted someone who said : >Hi everybody, To call a Java program, you can just call a method in the class. If you want to use exec, see http://mindprod.com/jgloss/exec.html -- Roedy Green Canadian Mind Products http://mindprod.com Unlike many machines, computers require no water once they are manufactured.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web