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 8081055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:36:25+00:00 2026-06-05T16:36:25+00:00

I have a html button linked to php page. The php page calls a

  • 0

I have a html button linked to php page. The php page calls a jar file which has to print barcodes on the barcode printer on the server (the default and the only network printer installed).
I’m calling it as within my php.

$out = system("java -jar C:\\wamp\\bprint\\bprint.jar ABC1234");

The jar works fine in the command line (and prints the barcodes) but it doesn’t print anything within my php page. I know the jar is being called in my php page because a System.Out.Println(); within my jar executes fine. Other executable are working too within system()

I am running WAMP on Windows XP and Apache is running as a Admin user.

My question is, it the printing part being blocked by PHP or Java or Apache. How should I overcome it?

Thanks

  • 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-05T16:36:27+00:00Added an answer on June 5, 2026 at 4:36 pm

    system only returns the last line of stdout. Try using exec with the array &$output parameter.

    $out = array();
    exec("java -jar C:\\wamp\\bprint\\bprint.jar ABC1234", $out);
    var_dump($out);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used html frames to create a page. It has 3 frames linked
I have a HTML page on click of button i am displaying a Popup
I have a HTML file that is linked to a Java class using the
I have an html button: <button id=monitor onclick=startMonitor('<?php echo $result_cameras[$i][camera_hash]; ?>', '<?php echo $result_cameras[$i][camera_name];
I have an HTML input field linked to a button with an onclick function
I have an html button which is really just this: <div onClick=window.location.href=somePage.htm> <img src=img.png/>
I have an HTML Button that wraps an image tag and has an onmouseup
I have html markup like this <button id=button1 onclick=alert='yup'></button> and I want to make
see fiddle i have html table and one textbox and one button.make cell selection
i have html form i am using <a href="#" onclick="document.aa.submit()"> instead of submit button

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.