Questions tagged as 'jar'

4
answers

How to execute .jar with the prompt?

I have already generated the jar file through Netbeans, but I am not able to run the program through the command prompt. What command to run it in the Windows environment?     
asked by 09.02.2014 / 20:03
2
answers

Creating JAR with Dependencies in Maven

I want to use Maven to generate the JAR with its dependencies in .jar format, the solutions I found are not valid. Eclipse has three ways to generate an executable JAR. Extract required libraries into gerenated JAR Package...
asked by 06.03.2014 / 13:08
3
answers

Running jar on client from browser

I need to run a jar file that should be on the client's pc through the web and pass some parameters to that jar, I managed to do this with exec() of php: exec('java -jar "C:\Users\Suporte01\Documents\NetBeansProjects\Printer\dist\Printe...
asked by 26.02.2014 / 13:41
1
answer

Eclipse executes the xml buildfile of ANT 2 times, even having to execute only once

In netbeans, after a few searches, I was able to edit the build.xml file to customize the way the IDE generated my jar and my manifest file. I had to migrate some projects to eclipse, and I even found the option to build jar, but I need t...
asked by 16.11.2016 / 11:55
3
answers

Reduce jar size in Maven Project

I am generating a jar from a Maven project and the size is absurdly high. What steps can I take to reduce the size of this jar?     
asked by 18.05.2016 / 14:23
1
answer

How to include a jar when executing a Java file by command line

Whenever I run the program I need to call a specific library, which in this case is /home/usuario/Programas/weka-x-x-x/weka.jar , but every time I run the program, I have to include the following java -cp /home/usuario/Programas/weka-x-...
asked by 16.03.2015 / 18:56
2
answers

Loading libraries at runtime

Is there any contraindication in loading libraries .jar at runtime? I found this code that does this: URLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader(); Class sysclass = URLClassLoader.class; try {...
asked by 28.07.2016 / 19:26
2
answers

Maven - Configuring MainClass

Problem: When I create a JAR by eclipse it works quietly, but I'm trying to take advantage of the JAR that Maven is creating and I noticed that it does not execute, because my main class is not in Manife...
asked by 05.03.2014 / 19:26
1
answer

Debugging Java in Eclipse, excluding classes / packages

My application uses JSF / Hibernate, and a host of other add-ons (jar). When I have debug , a page, it stops at breakpoint and after some Steps (debug) it falls within% / p> How can I tell Eclipse that jar is just for my ap...
asked by 06.05.2014 / 20:04
1
answer

Maven: Generate JAR with Dependencies / Directory recources

I am very lazy with Maven and because there is a lot of material on the internet I end up getting lost as I perform the operation below: I need to generate the JAR Runnable of my project with all the dependencies I have used and...
asked by 22.09.2015 / 22:30