jar

Cannot export default Java libGDX project as a jar from Eclipse

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 17:04:08
问题 When I export the default libgdx project as a runnable JAR file from eclipse and then run the .jar file, it simply pops up a black screen and then closes. When I run the project code from inside Eclispe, it works fine. The correct red screen with the "bad logic" logo is displayed by the program (this is what is supposed to happen). If I build the project from the command line using gradle with the command gradlew desktop:dist as instructed here and then run the jar that is created, it will

From within the Eclipse IDE, how can I show a list of types that exist in a jar?

时光总嘲笑我的痴心妄想 提交于 2019-12-24 16:41:11
问题 I'm rediscovering Java, and I'm a little lost about how to do this within Eclipse. I am looking sort of for Visual Studio "object browser" functionality, but I'd settle for a quick list of types that are defined within my referenced external jar files. 回答1: Add the jar to project's build path (right-click menu) It would appear as a Jar (glass one), with arrow to open it as if it was a directory. Now, open it, you'll see its contents - packages containing classes. But, I advice you to look for

Refer to a web page inside a jar file

社会主义新天地 提交于 2019-12-24 16:35:44
问题 I have a working project. It includes another project which deals with REST as a rest-api.jar. Now I have done an one-page UI for this REST API on AngularJS and provided it for the main app. The problem is that I cannot find a way to refer to this page from the main project because this page MUST be within the rest_api.jar This is a way I solved it. Simply redirecting to a page: @GET @Produces(MediaType.TEXT_HTML) public void doGetAsHtml(@Context UriInfo info, @Context HttpServletResponse

Error: Could not find or load main class while executing jar file

。_饼干妹妹 提交于 2019-12-24 15:57:40
问题 I have created two java file my maven project one is POJO class and another one is java main class file. I want to make my project as an executable jar file which i want to run externally using java -jar command. Please find my pom.xml file <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId

java.lang.UnsatisfiedLinkError: Unable to load library

安稳与你 提交于 2019-12-24 15:54:43
问题 DLL INSTANCE = (DLL) Native.loadLibrary(Settings.getSingletonInstance().getProperty("default.ergoPointer.path"), DLL.class); I store the dll path in settings file. When i take output of Settings.getSingletonInstance().getProperty("default.ergoPointer.path" here : C:\Users\Argenit\Desktop\aaa\dll\ErgoPointer_64_Bit.dll Error part : java.lang.UnsatisfiedLinkError: Unable to load library 'C:\Users\Argenit\Desktop\aaa\dll\ErgoPointer_64_Bit.dll': Native library (win32-x86-64/C:\Users\Argenit

Java override class to Load project Class instead Jar class

徘徊边缘 提交于 2019-12-24 15:24:18
问题 I have a jar that contain a class that I would like to modify. For some reason I do not want to re-compile and update the Jar. So what I do is I recreate a full qualified name for that class in my project, and place my code in it, but I do not have an idea how to ensure JVM loaded my project class and not the Jar class. I have look through some post but they are about how to load a Jar class into project, not the other way round. 回答1: Typically all you need to do is ensure that your class is

Error while trying to run jar in Hadoop

半腔热情 提交于 2019-12-24 15:09:03
问题 I am getting following error while trying to run jar through hadoop command prompt Exception in thread "main" java.io.IOException: Error opening job jar: /tmp/NewJar.jar at org.apache.hadoop.util.RunJar.main(RunJar.java:124) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:136) at java.util.jar.JarFile.<init>(JarFile.java:73) at org.apache

Maven: how to do runable jar (uberjar) with included external libraries

走远了吗. 提交于 2019-12-24 14:48:34
问题 Until now i made runnable jars with Ant and there were no problems with it. However i now try to mavenize my project and i realy can't figured out how to do runable jar with this tool. I've read tons of tutorials (also here, on Stackoverflow), helps, advices and... nothing. In my case all of them don't work which probably means i don't understand some basics. I have such simple project: This is app, witch use mysql-connector-java-5.1.24-bin.jar (placed in 'lib' dir) to connect to MySQL

Execute Jar from Java code

拜拜、爱过 提交于 2019-12-24 14:41:58
问题 I have this code that is supposed to run a executable jar, but whenever the code is executed nothing happens? try { proc = Runtime.getRuntime().exec("java -jar C://X-Dock//MP3Player.jar"); } catch (IOException e1) { e1.printStackTrace(); } The JAR works fine if I run it manually, but that line of code just doesn't work. And I know for sure that the code is called. 回答1: If you has a JRE after version 5, java provides a process builder. So, try something like this: final ProcessBuilder pBuilder

Using External jar causing Error

ⅰ亾dé卋堺 提交于 2019-12-24 14:06:39
问题 I'm doing the following steps: Create an empty Notes Database (Lotus Notes 9.0.1 on Domino 9 Server) Creating Xpage with only one Label Inserting external Jar File (Code - Jars) I tested this setting with different jar Files. In most cases there are no problems but I found 2 jar Files which produce an error 500 in XPage without being referenced starface-rpc-1.6.442.jar log4j-1.2.17.jar Does someone has an idea what can be the problem? 回答1: Those two .jar files depend probably from other .jar