CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Location
    U.K
    Posts
    25

    platform problem

    Is there a non platform specific way to call a java program from a java program. The code below works for win98 but not for Linux.

    (jdk is the path of the JDK typed in by the user)


    try
    {
    Process ps = Runtime.getRuntime().exec(jdk+fileSep+"javaw -jar Calculator.jar");
    }
    catch (Exception err) {}






  2. #2
    Join Date
    Apr 2000
    Location
    NJ
    Posts
    123

    Re: platform problem

    Im not too sure about this but are you sure the jar file is on the CLASSPATH....

    52901368

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured