jar

How make working directory files available to WebStart application?

Hello everyone, We have to make a Java application demo available on Internet using JWS. It goes pretty well; all that's missing is making working directory files available for the application. We know about the getResource() way... The problem is that we have different plugins for the same application and each one require different fi...

Java Eclipse executable jar file

Hi All! I am new to eclipse + Java. I am trying to create executable jar file with eclipse export option. It works very well. But in my project, I have almost 10 packages (my own) and 4 main classes. I want to create a executable jar file that can execute any of main class from 4 main classes. For example: Double click write class name...

How can I create a jar from some Scala source code?

How can I create a jar from some Scala source code? I want to use some of that code in a Clojure project of mine. Is there a simpler way than doing batch files as in this SO question? Thanks, Alex ...

Does the size of a jar file affect the performance of the JVM?

I was wondering if the size of jar file has any implications for the peformance of the Java Virtual Machine? Is there going to be a point where the jar file becomes too large that the JVM will not be able to function effectively? ...

Extract the list of a JAR classes in C#

Everything in on the title, is there a way to extract the list of jar classes (equivalent of jar tf) within C# ? Thanks ...

Windows Registery: How to add a Java app to startup list?

Hi, I added a value at: HKLM\Software\Microsoft\Windows\CurrentVersion\Run That looks like this: Value Name: LDE Value Data: "java -jar C:\LDE\lde.jar" Really with the quotes (Because all the others where also with quotes). After adding this, I restarted my computer, but it didn't start automatically. Will wrapping my jar in an e...

Resolving java package dependencies

It is time to sub-divide a platform I'm developing and I'm looking for advice on how to handle cross-component dependencies. I spose there a many cases, so I'll give an example. I have an Address class that I want to make visible to developers. It is also referenced by classes in my.Contacts, my.Appointments, and my.Location packages ...

How to Build NetBeans Project into split JARs? (one with the mainclass, others as libraries)

I have a project which builds into a single JAR in Netbeans. However, to implement a basic auto update feature, I would like to move at least one of the packages (the HTTPClient package) to a separate JAR, as well as build a new JAR with a second Main Class in a different package. That way both the current Mainclass and the Updater Mai...

Java - How to find out which Jar file an import comes from?

The project I'm working on has about 10 jar files as libraries. At the top of one of the files there's an import statement like: import jpe.nar.crat.maker.ObjectMakerFactory; Is there a way to tell which Jar file it comes from? (I'm using Netbeans if that matters.) ...

Java / NetBeans - How to Step into a jar file?

I have a Java project in Netbeans with several jar files listed in its library section of properties. I found a bug in one of the jar files and I want to step into it while debugging. Here's what I've done so far: I've found the source code for the jar file. I opened that source as a project in NetBeans (it comes as a NetBeans projec...

Java application runs properly in Eclipse, but not as .jar

I'm creating a Java app that creates 4 PDF files using iText. On the one that creates a PDF with an image in it, the .jar creates a 0 byte file and does not continue execution. However, when I Right Click >> Run As >> Java Application, it works just fine. To create the jar, I'm doing the following Right click src Export Runnabl...

Creating and using a "common platform" jar in Android - what works?

It am sub-dividing an app I have into "platform" and "app" layers so that I can distribute the platform as a jar for use by partners - while protecting my IP. I now have two Eclipse projects. Building has no ability to compile any resources into a jar, so I moved all resource references into the app project (the platform project gen/ ...

Swapping a running jar at runtime

I am building an update system in which I need to be able to replace a referenced jar of a running application jar at runtime. I am finding I am running into file locking issues on Windows when trying to perform file utility functions on the jar such as 'setLastModified'. After some googling I found this snippet... What I found in m...

java.net maven repo - JMS artifact missing

I just created a new Maven project using the default archetype and added the following dependency to my POM file. <dependencies> <dependency> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> <version>1.1</version> <scope>compile</scope> </dependency> </dependencies> Realizing that the Sun's JARs are not on...

Loading a file relative to the executing jar file

The question says it all. The specialty in my case is that the current working directory is not the location of the jar file but c:\Windows\system32 (My jar file is started by windows using the right-click-menu, i want to pass a folder's path as a parameter to the jar). Now I want to load a configuration file called config.xml that is ...

Find classes within Jar

Hi , I have a jar file and I want to know which all classes are within it. Is there any way I can do that? ...

Reading persistence.xml from a POJO

Hi, I have created an EJB3 project and a JPA project. I'm trying to create a helper class(which will be in a separate project/jar) that will return the Persistence Unit Name from the persistance.xml file which is in the META-INF folder of my JPA project. How can I read this file as an Input Stream? I can parse the values once I get a ...

JAR file Signature Block Format

Hi All, I am trying to write my own jar verifier application for BlackBerry. However, as BlackBerry does not have the support of the java.util.jar package, we are left to write the verification logic ourselves. Can any body let me know the internal structure of the .DSA/.RSA file that can be found within a signed jar file? We are stuc...

Calling jar from PHP

I've got a jar file I created that can generate a PDF file. I've called it from the command line like this - java -jar project.jar 'Author, An---A Title' This works fine but when I call the same jar file from a PHP file with the following code it creates a file with the correct name but its empty and has zero bytes. <?php echo ...

standalone jar lags

when i'm running my project in eclipse, it works fine, when i export it as standalone jar it lags. i'm using the same vmargs, tried 3 different export settings in eclipse, nothing seems to help ...