After extracting a Runnable Jar in Eclipse Version 2020-12 (4.18.0), when I run it with double click the image is not displayed:  However, when using java -jar meujar.java the image is displayed:  Image addition code: JLabel lblImage = new JLabel(); lblImage.setBorder(BorderFactory.createLineBorder(Color.BLACK)); lblImage.setBounds(275, 30, 225, 225); lblImage.setIcon(new ImageIcon(&quot;logo.png&quot;));  The addition of the label to the frame was made by windows builder, following part of the code: .addComponent(lblImage, GroupLayout.PREFERRED_SIZE, 225, GroupLayout.PREFERRED_SIZE) .addComponent(lblImage, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
When running a Java app from eclipse my ImageIcon shows up just fine.  But after creating a jar the path to the image obviously gets screwed up.  Is there a way to extract an image from the jar at runtime so I can then open it up?  Or, is there a better way to do this?  I'd like to distribute a single jar file if possible.
Consider a hypothetical situation: In which a time traveler travels in a spaceplane at close to speed of light circling the earth and I get a live telecast of inside of that plane to my television. How time dilation will effect him and what will I observe sitting next to the tv seeing him live. Considering time runs slower at speed of light, will he be looking like a slow motion video? (Or let he also watching live streaming of us at earth, what it will look to him) P.S. I'm not sure if it even makes some sense but if it does kindly explain in logical details. Sorry for the the bad english, I'm not a native speaker. Accelerating particles to speeds infinitesimally close to the speed of light? I'm in a freshmen level physics class now, so I don't know much, but something I heard today intrigued me. My TA was talking about how at the research facility he worked at, they were able to accelerate some certain particle to "99.99% the speed of light". I said why not 100%, and I didn't quite understand his explanation, but he said it wasn't possible. This confused me. Since the speed of light is a finite number, why can we go so close to its speed but not quite?  Edit: I read all the answers, and I think I'm sort of understanding it. Another silly question though: If we are getting this particle to 99.99% the speed of light by giving it some sort of finite acceleration, and increasing it more and more, why cant we increase it just a little more? Sorry I know this is a silly question. I totally accept the fact we cant reach 100%, but I'm just trying to break it down. If we've gotten so close by giving it larger and larger acceleration every time, why cant we just supply it with more acceleration? And how much of a difference is there between 99.99% the speed of light, and the speed of light? (I'm not really sure if "difference" is a good word to use, but hopefully you get what I'm asking). Is there an optimal loss function for dealing with imbalanced classes? I'm aware that there are many ways of dealing with datasets where there is a strong class imbalance in the target variable: downsampling the more prevalent and less important class, over-weighting the valuable minority class, etc. Are there any loss functions that are ideally suited for these types of problems? I've heard of AUC, but AUC sounds like a means of evaluating a model once its training is complete (correct me if I'm wrong). Log loss and squared loss penalize a model's over confidence, but overconfidence and class imbalance seem unrelated. Is that true? For some reason all of a sudden when I update cells in Excel, my equations are not being updated.  For example, I have a simple equation =SUM(C4:C16).  If I change any of the cells in C4-C16, the answer doesn't get updated...  I don't know what happened I've never seen this fail before.  Any ideas? How can I perform a t-test (or another hypothesis test) on NPS (Net Promoter Score) results? Here is an explanation of how NPS is calculated:    I'm interested in testing two net promoter scores to determine if they are statistically different. I read a great answer to calculating margin of error for NPS (see link below), but I'm really interested in testing to see if there is a difference between two scores, because I suspect that our results aren't as "different" from year to year as they appear to be.    Is this at all possible? I understand t-tests are typically used to test whether two different record sets are statistically different. But is it possible to test Net Promoter Scores, either with a t-test or some other hypothesis test?  Any ideas you have would be a great help. Thank you! There are five boxes consisting of several identical coins. There are five boxes consisting of several identical coins. The first box contains 4 coins, the second box contains 9 coins, the third box contains 7 coins, the fourth box contains 10 coins, and the fifth box contains 3 coins. Some coins are taken from the boxes such that at least a coin taken from each box. In how many ways in taking the coins, such that the numbers of the coins taken are 12?  My attempt was solving it using repetition combination of which, there are only seven coins remaining considering that at least a coin taken from each box. By using the repetition combination, i.e. taking 7 from 9 (five boxes and four borders), resulting in 36 ways. However, there is no 36 ways in the choices. input to pic with 12V and resistors I have 12V, Use these 12V to power a device (that has a 12V output signal) and to power a 7805. After the 7805 there is a pic microcontroller where I would have to connect the output from my device. I was thinking of having 2 resistors in a 3/1 ratio in order to have about 4V at the pin of the pic. Can this be done, given that the ground is common, or will it give some sort of problem with the lm7805? Maxing out gear with maxed out smithing, enchanting and alchemy I have level 100 smithing, enchanting and alchemy. I also have some nice enchanted gear, fortify smithing and alchemy.   How high should I be able to get my fortified equipment?  Currently I'm around 29% for alchemy and smithing.  How high can I get fortify smithing and fortify enchanting potions without using the console (cheating)? And how? Currently I get +147% and +32% respectively.  Is something like this possible without using the console(or photoshop)? How do I cherry pick packages from a PPA? Is there a way to cherry pick packages from a ppa repository you add? That is, to exclude some from updating while including others?  For example, I want just the chromium-browser package from  but not the others. So I don't want my sudo apt-get upgrade to have that ppa's other (besides chromium-browser) packages install over my existing ones, just that one.   I realize this is a license to shoot myself in the foot if I misread dependencies and exclude ones that are needed to ones that I included, but I know for a fact in this case that the other packages are not dependencies for that one.  Is this at all possible? Maybe there is some whitelist/blacklist file or something? How to use an optimization solver to get t-stats and p-values for the estimates? jQuery ajax load() java script not executing? Why would I want to use Interfaces? I understand that they force you to implement methods and such but what I cant understand is why you would want to use them. Can anybody give me a good example or explanation on why I would want to implement this. What is the reason behind the multiple Spider-Man reboots? Batch files: How to read a file? How you can read a file (text or binary) from a batch file? There is a way to read it in a binary mode or text mode? What is the best way to add options to a select from a JavaScript object with jQuery? When editor does not respond to the request for withdrawal I submitted a manuscript to a journal, but due to some issue with that I asked the Editor-in-Chief and Associate Editor to withdraw the manuscript from further consideration. Despite several emails, they are not still responding me nor ended the process.  Now, what should I do? Can I submit the manuscript to another journal? How would you explain why $e^{i\pi}+1=0$ to a middle school student? Hi I was asked by a friends child who is in middle school why $e^{i\pi}+1=0$. Now I couldn't think of a way to explain it so he would understand. Albert Einstein once said “If you can't explain it simply, you don't understand it well enough” so how would I explain it. Is It Possible to NSLog C Structs (Like CGRect or CGPoint)? I want to be able to debug C structures without having to explicitly type every property that they consist of.  i.e. I want to be able to do something like this:  CGPoint cgPoint = CGPointMake(0,0); NSLog(@"%@",cgPoint);   Obviously the '%@' won't work, hence the question. How to control your iPad with your Mac remotely? I would like to know, is there a way to control your iPad with your Mac remotely (be able to see and manipulate iPad's desktop on your Mac)? I know that with the TeamViewer or other programs you can control your Mac with your iPad but not vice versa. prove that $24 \mid a(a^2-1)$ If $a$ is an odd integer, prove that $24 \mid a(a^2-1)$.  I proved in my class that $a^2=8k+1$ for some $k$, provided $a$ was odd.  So $$a(a^2-1)=(2k-1)(8k+1-1)=8k(2k-1)$$ but I can't pull a $24$ out of it.