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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:24:12+00:00 2026-06-06T00:24:12+00:00

Basically I just got some results back for an assignment and my results were

  • 0

Basically I just got some results back for an assignment and my results were lower than expected. I was told that when the application was run the images had to be moved and a number of exceptions were thrown:

Exception in thread "main" java.lang.NullPointerException
at uk.ac.aber.dcs.cs12420.aberpizza.gui.FrontGUI.getName(FrontGUI.java:494)
at sun.lwawt.macosx.CPlatformWindow.getInitialStyleBits(CPlatformWindow.java:271)
at sun.lwawt.macosx.CPlatformWindow.initialize(CPlatformWindow.java:228)

Well, I checked a lot of times that the runnable jar file worked before sending everything off. And I checked again now and it still does. The only time where things do not work is if I do not extract the contents and attempt to use the runnable jar file from the zipped folder.

I’m assuming that this is the problem, because the images do not appear and things simply do not work properly. But how am I supposed to use images correctly when running the jar from a zipped folder?

This is a question not a rage by the way. I would like to know if my application should or should not be expected to run without extraction whilst using external images?

Just a little edit: To add to my question: how can I get images working if a runnable jar file is being run directly from the zip file. I.e. how can I make the image files/folder go with the runnable jar file to the temporary location?

  • 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-06T00:24:14+00:00Added an answer on June 6, 2026 at 12:24 am

    Actually, running a file from a zipped folder, will extract your file to a temporary folder and execute it from there. If you have some other files in the archive that your application depends upon, they might not get extracted and hence the error you get.

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

Sidebar

Related Questions

I've got some R code that looks basically like this: compute.quantiles <- function(mu, type)
I'm basically just doing some tests to figure out a good way to write
So I have site list on certain pages that basically just have links to
I have an MFC application. It is basically just copying files from one drive
Is there an easy (therefore quick) way to accomplish this? Basically just take some
All, I've got some links that get displayed and someone can click the link
I've got some weird images I'm getting from some hardware at work. They're from
So, i've got this Zend style frontcontroller set up. Basically it just redirects every
I've got some code which is working as it should but it just seems
I'm making what is basically a toolbar that contains a search field and some

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.