I'm new to Java (I come from an ActionScript background) and I'd like to know if there's a way to download and monitor the download progress of remote jar files inside an applet, then use the classes and other resources that are inside the downloaded jar. I know there's a JarURLConnection class, but I could not find a way to monitor the ...
I'm currently working on a java project which uses Tibco rendezvous control.
I have the tibrvj.jar file on my build path. But I'm not able to see the classes which are there in the package "com.tibco.tibrv". This package is in the jar which is on my build path. When I try to open the class in that package , the message displayed on clas...
I'm at school and we are doing this java stuff. We use a special library named sum.kern: http://www.mg-werl.de/sum/bjw.zip
I want to use Groovy instead of Java. But I can't get groovy to use this library. If I add the jar in grape and try to import sum.kern and create a sum.kern.Bildschirm it says that it is not able to find it. How to ...
I'm working in a Java project where the axis 2 library from Apache is being used. The axis 2 library is composed of about 20 jar files and some of these are not used project. What I want to know if there is a method to identify which of those jar files are the unused ones.
I'm using the Eclipse IDE an I thought that one way to solve the...
I am launching a java jar file which often requires more than the default 64MB max heap size. A 256MB heap size is sufficient for this app though. Is there anyway to specify (in the manifest maybe?) to always use a 256MB max heap size when launching the jar? (More specific details below, if needed.)
This is a command-line app that ...
I have this .JAR file. I decompiled it to multiple .java files. There is any way to have a new functional .JAR file, after updating a single .java file and recompiling it? If it is possible how would we recompile this .java file without having it's dependencies? (ie. external libraries)
...
I have an application written in Java that uses a jar file(it uses more than one, but that's not the point).
The fact is, the Jar file I'm using contains files that I absolutely MUST extract to the filesystem.
So far I'm using Class.getResourceAsStream and FileOutputStream, but this method is somewhat slow.
Note that some of these file...
what is the best practice to create a .jar file from a java project??
...
Is there an option in Maven (2.0.9) to turn off jar compression for the entire operation? I'm using Maven both in the build server and in my work station and I'd like to disable jar compression on the work station builds (development only). However, I don't want to touch all the poms and create two versions for each.
Is there an option ...
When I upload a jar file to my web server, people using Firefox or Opera don't have any problems downloading it.
But when the link is downloaded with Internet Explorer, IE unzips the contents of the jar, instead of simply downloading it.
Is there a way to prevent IE from doing this?
...
hi
I am trying to do
java -jar jaxb-api-1.5.jar
I am getting the following error :
Failed to load Main-Class manifest
attribute from jaxb-api-1.5.jar
I am running it in jdk1.4 env.
Why this is happening and how can it be recitified ?
What i am trying to do is generate the classes from xsd using jaxb xjc command in jdk1.4 e...
For various reasons my project can only be run as a finished and packaged JAR (some magic happens at assembly), so I run it as an external tool in Eclipse.
What I'm missing is debugging functionality. Is there any way of running an external tool in debug mode in Eclipse?
...
using jar on the windows command prompt, how can I add foo.class to a folder "classes" in foo.jar?
I can add the file to the jar using
jar uvf foo.jar foo.class
but that doesn't put the class in the "classes" folder in the jar.
I know I can use winzip to unzip the jar, add the file, and zip it up again, but that's slow and hopef...
I've been looking into OSGi for a while and I'm wondering about the best way to deal with "legacy" libraries (that are released as plain JARs, not as OSGi bundles).
What do you think is the best way to handle these? Modifying their manifest file and adding the minimal bundle-specific information, then repackaging them is what I do at th...
Hi,
I have a serious probleam with my Eclipse Plugin..
My plugin depends on another two plugins. All of theese plugins (including my plugin) use Mozilla Rhino engine - two of them use js.jar (version 1.4). But my plugin uses new version, which is not released yet and is packed in MyRhino.jar.
While developing, everything goes fine - c...
I know this isn't "best practice", but can I include all of the dependencies in one big jar?
...
Hi all,
I would like to (and I don't know if it's possible) do something if jarA is in my classpath and do something else if jarB is in my classpath. I am NOT going to be specifying these jars in the Netbeans project library references because I don't know which of the jars will be used.
Now including the jar in my Netbeans project li...
I am running an executable jar and wish to find a list of classes WITHIN the jar so that I can decide at run-time which to run. It's possible that I don't know the name of the jar file so cannot unzip it
...
I need to read an XML file using java.Its contents are something like
<ReadingFile>
<csvFile>
<fileName>C:/Input.csv</fileName>
<delimiter>COMMA</delimiter>
<tableFieldNamesList>COMPANYNAME|PRODUCTNAME|PRICE</tableFieldNamesList>
<fieldProcessorDescriptorSize>20|20|20</fieldProcessorDescriptorSize>
<fieldName>company_name|product_name|p...
I have an eclipse project where I want to keep my java project built into a Jar automatically. I know I have an option to export the project into a jar; if I do a right click; but what I am really looking for is, that like eclipse automatically builds a project's class files and put them in target folder; it should also build a jar autom...