JAVAFx Build Failed

后端 未结 6 875
死守一世寂寞
死守一世寂寞 2020-12-17 00:50

I created an app with JavaFx for windows, which is really cool. I can run it from e(fx)clipse, everthing works fine, but I can\'t make a jar file from the project. I can exp

6条回答
  •  无人及你
    2020-12-17 01:32

    When you new the JavaFX Project, the generated file, build.xml, maybe have wrong file path.

    
    	
    	
    		
    			
    				 
    				 
    			
    		
    	
    		
    	

    you have to check that where are the ant-javafx.jar and the jfxrt.jar ? For example, JDK 1.8 the two files are in the difference place, C:\Program Files\Java\jdk1.8.0_20\lib\ant-javafx.jar C:\Program Files\Java\jre1.8.0_20\lib\ext\jfxrt.jar

    so now I only find the way to modify by myself...

    
    	
    	
    		
    			
    				
    				
    			
    		
    	
    		
    	

    after modify the files, right click choose the Run as Ant Build!

提交回复
热议问题