Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
java x 4
Member Avatar for Rajnesh

Dear all, Could you tell me how to go about executing MSDOS commands thru Java. I tried with the Process class but it gives an error:2. Could anyone please advise.

Member Avatar for stultuske
1
2K
Member Avatar for PuQimX

[code]import java.util.*; public class array1 { public static void main(String[]args) { int[] value = new int[1000]; Scanner keyboard = new Scanner(System.in); for (int i = 0; value[i]!= -999 && i < 999; i++) { System.out.print("Enter number " + (i + 1) + ": "); value[i] = keyboard.nextInt(); if(value[i] == -999) …

Member Avatar for ainct
0
140
Member Avatar for ainct

Hi, I want to execute unix commands(pdftops and ps2pdf) in windows system using java environment. but m getting error.plz help me. here is my code:[CODE] public static Process p1; public static Runtime rt; rt = Runtime.getRuntime(); ////linux commands filename=args[0].replace(".pdf","temp.pdf"); String pdftopsCmd ="pdftops "+args[0]+" temp.ps"; String pstopdfCmd="ps2pdf temp.ps " +filename; p1 …

Member Avatar for ainct
0
147