Hi
I am using maven-compile plugin to compile classes. Now i would like to add one jar file into current classpath. that file stays in another location (let says c:/jars/abc.jar . i prefer to leave this file here). How can i do that.
If i use classpath in the argument:
<configuration>
<compilerArguments>
<classpath>c:/jars/abc.ja...
I went through the JAR specification document and found that an in-memory hashtable is created using INDEX.LST file to speed up the class file look up process.
If any one can answer my following questions -
When is the hashtable constructed? When the application loads or when the request comes for loading the applet?
Since all the cla...
I'm distributing a jar file, with associated libraries, media, documentation, etc. I would like to create a simple deb/rpm package for linux users, and I would also like to distribute this for windows. What is the best way to go about setting up the jar to play nicely with debs? Every deb file I've looked at so far has been c/c++ with a ...
I inherited an existing Ant build script. It invokes javac three times on three different source directories: shared, client, and server. It then produces two JAR files: client.jar (shared + client) and server.jar (shared + server).
When I translated this to Eclipse, I ended up making three projects with appropriate dependencies. This w...
I've got an Oracle 10g database, and I have a third-party jar file(MQ jars). I want to be able to run a trigger in my database that ultimately runs code in store procedure to operate MQ series and sending messages.
. I can't figure out how to specify a classpath for my jar file that will be recognized when I am executing trigger. How can...
Hello,
Is there a way for me to intercept the STDERR stream that is being used from an external JAR file?
My situation is that I have my own program using STDERR for XYZ, and an external JAR that uses STDERR for ABC. I want to merge both so that they are formatted correctly for the end user, but I cannot figure out how to catch or red...
Hi all, I'm getting:
java.lang.ClassNotFoundException: com.hazelcast.core.Hazelcast
This bit is strange though, because i've added hazelcast-1.8.5.jar to the classpath when i'm running java:
java -cp hazelcast-1.8.5.jar -jar myapp.jar
So i cannot understand why i'm getting the ClassNotFoundException, when the hazelcast jar is well ...
We are using few JAR files in our web-application hosted on IIS6.0 Server and those files are used in somepages, we want to trace the execution of those files (both in client and server side) however tools like httpwatch/Fiddler...are not helping us in this. Do we have any specific tool to trace the execution of the JAR files in IIS Envi...
Hi,
My knowledge of Java is rather rusty, but I've been forced to use it and am having some terrible classpath troubles...
I'm trying to import a jwebserver class. It should be straightforward, but I don't know how!
Here is my server.java file:
import java.io.*;
import org.jWebSocket.*;
public class server
{
public static vo...
how can I decompile a jar and load it as a project in my Eclipse so I can modify the code ?
fyi I have googled jar decompiler. Looking for a guide or any insight on experiences with it.
...
We have a connection pooling comeponent(jar file) for one of our application.
As of now the application connection details are bundled with-in the jar file(in .properties file).
Can we make it more generic? Can we have the client tell the properties file details(both the path and the file name) and use the jar to get the connection?
D...
Hi,
My Java is very rusty and I'm having a bit of a headache here.
Here's my server.java:
import java.io.IOException;
import net.tootallnate.websocket.WebSocket;
import net.tootallnate.websocket.WebSocketServer;
public class server extends WebSocketServer
{
public server(int port)
{
super(port, Draft....
I'm using commons-vfs to traverse down folder hierarchies. As an example:
/foo
/test.jar
If I use the locator
file:///foo
I can successfully find the child
file:///foo/test.jar
However, if I try to descend into it, via FileObject.getChildren(), it says that there are no children. By prepending the jar: schema, things work ...
My goal is pretty simple: to use ant to build an EAR which contains 1 EJB and 1 jar containing all of the dependencies. This jar, called common.jar for the sake of example has vendor jar files in it as well as other xml files that the EJB depends on and will need to be able to see during runtime....
So far I have everything packaged cor...
Hi there :)
I have some difficulties in finding the directory in which a given class lies.
E.g. I have an external lib Plugins.jar imported and want to get the parent directory... How is it done in Android?
Afaik the Dalvik VM unpacks my Plugins.jar, optimizes it and packs it together with the rest of my app. Thus I'm not sure if there...
How can I load a JAR file from a URL in Java while making the request for the file seem legit by adding necessary HTTP Headers into the request.
The only way I know how to maintain the loaded JAR file at the moment is to use ClassLoader.
I think I nailed this question pretty good (Or so it seems that way in my head!) but if anyone need...
I am trying to add a JAR file to a simple java applet which can be opened has an HTML.
This is my coding:
<applet code="AgniCorpContactsApp.class"
codebase="/agnicorpcontacts" width="100" height="100"
archive="AgniCorpContactsApp.jar">
</applet>
The location of the JAR file and all of the class files is: C:\Documents and Settings...
So, I have an interesting question. I have three people using the same ant build xml file creating a jar file for an Eclipse project that hasn't changed in two months. We each do a build using this xml file and we each get a different sized jar (62 KB, 78 KB, and 101 KB). Also, when I do a winmerge on them, they are dramatically differe...
What is your favorite tool, plugin, script, to find a java class in a bunch of jar files?
Very often I inherit code that complains about a class that doesn't exist, and it is just because the jar file is not included in the classpath. But, in what jar file is the class?
I obviously would prefer an eclipse plugin, but I'm open to any pi...
I am trying to add a JAR file to a simple java applet which can be opened has an HTML.
This is my coding:
applet code="agnicorpcontacts/AgniCorpContactsApp"
width="100" height="100"
archive="AgniCorpContactsApp.jar">
The location of the JAR file and all of the class files is: C:\Documents and Settings\Owner\My Documents\NetBeansProj...