Game runs from PDE but not from any exports
              in 
             Integration and Hardware 
              •  
              2 years ago    
            
 
           
             Okay, I am building this game, and it works just fine inside the PDE. However, whenever I export it as anything- an applet, any kind of application, it fails. I get nothing but a blank, white window. The console prints out this:
            
             
              
             
             
              
             
             
            
            
             
              
             
             
            
             
            
            
 
            
           
              Exception in thread "Animation Thread" java.lang.NullPointerException
             
             
               at Game$Sprite.<init>(Game.java:123)
             
             
               at Game.setup(Game.java:28)
             
             
               at processing.core.PApplet.handleDraw(Unknown Source)
             
             
               at processing.core.PApplet.run(Unknown Source)
             
             
               at java.lang.Thread.run(Unknown Source)
             
             
             But only from outside the PDE do I get this message. I know it isn't a security issue, because I signed the JAR, and the error also happens in applications. What could be the problem? I don't think it has anything to do with my programming, because it runs fine from within the PDE. I also noticed that when exporting, I get this error in the PDE console:
            
            
              Could not copy source file: /tmp/Game1804938955307683740temp/Game.java
             
             
              Could not copy source file: /tmp/Game1804938955307683740temp/Game.java
             
            
             What does it mean?
            
            
             How do I fix this?
            
 
            
              
              2  
            
 
            