Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7864561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:49:26+00:00 2026-06-02T23:49:26+00:00

I have an applet that I need to be able to launch a .pkg

  • 0

I have an applet that I need to be able to launch a .pkg mac installer from my java applet.

Right now I can do so with the following command:

Process proc = r.exec(new String[] {"open", "/Volumes/affinegy_homeportal_setup/" + pkg});

The problem is, is that this install is to verbose and requires the user to click through the install process which is unlike my windows version of my installer which performs the installer silently in the background. My attempt to achieve this was with this command:

Process proc = r.exec(new String[] {"sudo","installer", "-pkg", "/Volumes/affinegy_homeportal_setup/affinegy_homeportal_setup.dmg", "-target", "/"});

However when I run this command nothing happens. Any suggestions on what I’m doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:49:27+00:00Added an answer on June 2, 2026 at 11:49 pm

    Read & implement When Runtime.exec() won’t. And unless you need to support Java 1.4, use a ProcessBuilder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a java applet that draws top left x,y(0,0) to bottom right x,y(500,500).
I have a Java Applet which is digitally signed. I need to be able
I have a Java applet that is meant to run only on Windows. (It
I have an Java applet that loads native code through JNI. Everything worked just
Good afternoon all, I have a Java applet that I wish to embed on
I have an applet that uses JOGL 1.x. I need to embed it in
I am building a Java applet that involves downloading images among other resources from
I have a Java applet which doesn't need any special privileges to run (i.e,
I have an applet that is communicating with a servlet. I am communicating with
I have an applet that throws this exception when trying to communicate with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.