executable-jar

PropertyPermission access denied in JWS launch

纵饮孤独 提交于 2019-12-02 13:03:13
问题 I new to web-start and We are using exe4j to create executable from One-jar. In-order to make a "web start version" of our application I am trying to lunch One-JAR using web start with the specified Main-Class but I am getting the following error - java.security.AccessControlException: access denied (java.util.PropertyPermission one-jar.main-class read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at

My jar file won't load images

社会主义新天地 提交于 2019-12-02 12:43:14
问题 I am currently writing a program that I need to send to a friend as a jar. The program has images that need to be loaded for the program to work properly and I want it all to be contained in the one jar. Currently it doesn't work from the executable jar or when I run it through command line. It works in netbeans however. Here's the code I'm using: To load the image I'm using: protected ImageIcon createImageIcon(String path, String description) { java.net.URL imgURL = getClass().getClassLoader

spring jar bootRun causes GraphQL Schema error

自闭症网瘾萝莉.ら 提交于 2019-12-02 10:52:02
When I build my Spring Boot application using gradle bootRun or build and then run the output jar, I get the following enormous list of errors out of the console log. 2018-03-18 00:49:38.754 ERROR 228 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh

referencing data files in jars

眉间皱痕 提交于 2019-12-02 10:07:18
My Java program references a lot of data files. I put them in a top level directory called data/, along with src/ and bin/. In Eclipse, references to data/ and ../data/ both seem to work. When I run it from the command line, only ../data/ works. When I put the bin/ and data/ directories in a jar and correctly set the entry point, it doesn't seem to know that I want it to access the data/ directory inside the jar. The only way I've been able to get it to work is by setting the references to ../data/ and placing the jar in the bin directory. This obviously doesn't do me any good, because it's

How to run jar file using docker file in docker container

孤街醉人 提交于 2019-12-02 09:04:07
I write the docker file for run the jar file and it does not create the log file for see the console below is my docker file From ubuntu RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y software-properties-common && \ add-apt-repository ppa:webupd8team/java -y && \ apt-get update && \ echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \ apt-get install -y oracle-java8-installer && \ apt-get clean VOLUME /temp RUN apt-get install -y vim ADD real_estate_false.jar /real_estate_false.jar COPY real_estate_false_lib

How to create a .jar file that actually runs?

扶醉桌前 提交于 2019-12-02 07:11:28
问题 I am having lots of trouble with Creating a .jar file. every time i try to create one it, an error window pops up and says that the main class Start can not be found. (My main class is named Start) I have a manifest and everything can you tell me what i'm doing wrong please, or tell me what do do exactly? This can be from the command prompt or from eclipse as well! Also sometimes a command prompt window pops up for a millisecond then closes in an instant! My manifest says: Manifest-Version: 1

How to create a .jar file that actually runs?

99封情书 提交于 2019-12-02 06:58:55
I am having lots of trouble with Creating a .jar file. every time i try to create one it, an error window pops up and says that the main class Start can not be found. (My main class is named Start) I have a manifest and everything can you tell me what i'm doing wrong please, or tell me what do do exactly? This can be from the command prompt or from eclipse as well! Also sometimes a command prompt window pops up for a millisecond then closes in an instant! My manifest says: Manifest-Version: 1.0 Main-Class: Start My main class is Start.class Here's my vague answer to your vague problem. It can

How to make Java executable Jar file of WebDriver project

徘徊边缘 提交于 2019-12-02 06:00:59
I am new to Java and Webdriver (Web QA automation framework). I have wrote a webdriver script which opens firefox browser. Open google.com. Make some searches and finish. N I have created this script in Eclipse. Using Webdriver (Java), Junit, JDK6, Firefox any version on windows platform. It works fine when I run it in eclipse. what I want to do is make a run able (executable-jar) file which has all the required classes libraries compiled into it. so that If I want to share this script with any one they don't need to install eclipse or download libraries. I expect them to have Windows, Firefox

VLCJ - playing a video from the “res” folder works great in eclipse, but not from the executable JAR file

和自甴很熟 提交于 2019-12-02 03:18:46
问题 i have an .MP4 video placed in the "res/media" folder inside my project. I can easily play this video in my application from eclipse using this piece of code: String url = getClass().getResource("/media/video.mp4").getFile(); url = new File(url).getPath(); showMedia(url); //the method that plays the video i had to use this code because using only URL url = getClass().getResource("/media/video.mp4"); makes VLCJ can't access the video using this URL. When creating the executable JAR file, i get

VLCJ - playing a video from the “res” folder works great in eclipse, but not from the executable JAR file

情到浓时终转凉″ 提交于 2019-12-02 02:37:10
i have an .MP4 video placed in the "res/media" folder inside my project. I can easily play this video in my application from eclipse using this piece of code: String url = getClass().getResource("/media/video.mp4").getFile(); url = new File(url).getPath(); showMedia(url); //the method that plays the video i had to use this code because using only URL url = getClass().getResource("/media/video.mp4"); makes VLCJ can't access the video using this URL. When creating the executable JAR file, i get these errors in the console: libdvdnav: Using dvdnav version 5.0.0 libdvdread: Could not open D: