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

  • SEARCH
  • Home
  • 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 8492637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:46:36+00:00 2026-06-10T22:46:36+00:00

I am a C# Developer, and I recently acquired a project at work that

  • 0

I am a C# Developer, and I recently acquired a project at work that is Java.

The Project is to modify an existing Java application, which I have done and was simple. However, I can not for the life of me get it to run from the command line.

I am receiving the error

Exception in thread "main" java.lang.NullPointerException
         at com.dhl.sop.label.LabelReportHandler.main(LabelReportHandler.java:63)

There is no code at line 63 in that file. I have altered the file dramatically just to see that line number change, and it hasn’t. I am really not sure what else to do, I have googled a bit and I have come up empty handed. Any information and/or suggestions are greatly appreciated.

Thank you!
– Jeffrey

EDIT: Here is the source code

http://speedy.sh/5wdBq/SOPLabel.zip

EDIT: The command I am running

generateSOPLabel.cmd

EDIT: The command the cmd script is running

java com.dhl.sop.label.LabelReportHandler
  • 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-10T22:46:38+00:00Added an answer on June 10, 2026 at 10:46 pm

    Ok, it’s working just fine for me after fixing the ant build script to build the files and pointing the startscript to the correct output files.

    Your problem is probably that Netbeans are building the files to the BUILD folder and the script is looking in CLASSES.

    Changes in startscript:

    export CLASSFILE_PATH=$SOPLabel/build/
     ..
    java  -classpath $CLASSPATH com.dhl.sop.label.LabelReportHandler
    

    Added to build.xml:

     <target name="compile" 
            description="compile the source ">    
        <javac srcdir="src" destdir="build"
                 classpathref="classpath"/>   </target>
    

    Built with: ant compile and then enter code here./generateSOPLabel.sh outputs:

    Usage : java LabelReportHandler

    where

    Request XML MessagePath : The complete path of the request XML message
    to be send. E.g. .\RequestXML\shipval.xml

    Response PDF Path : The complete directory path where the respose XML
    messages are to be saved. E.g. .\PDFReports\n

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

Sidebar

Related Questions

I`m an Android developer, and recently started working on JAVA PC project for client.
I recently got hired as a web developer, and the project that I am
I recently inherited a large software project written in Java. The last developer used
I am a java developer, but I have had to learn C++ recently and
I'm a .Net developer and recently I've become part of a project that is
Unfortunately, recently the developer that used to work on my site decided to disappear,
I have recently started my job as web application backend developer. I am bit
I have recently made the transition from a Java web developer to a C#
I'm an iOS developer. I recently started my Mac project, but I found that
I recently had to work on a project where the previous developer modified 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.