jar

Jama.Matrix ClassNotFoundException

Hello, I am trying to use Jama package in my code in Linux. In my Main class, I am trying to use Matrix class. Here is my Main class: import Jama.*; class Main { public static void main(String[] args) { Matrix A = new Matrix(3,5); } } I am not using any IDE, my makefile is: JC = javac -classpath $(CLASSPATH):jars/Ja...

I need some help with using a JAR file.

Okay I understand this might be a simple question, but I was trying to figure out how to make a JAR file so that other people can run my program without having a software like jGrasp, eclipse, or netbeans. The problem I'm having is I save it as a JAR file and can execute it on my computer but when I email it to my friend, it says invalid...

Load resource from JAR without accessing ClassLoader?

Is there a simple way to load resource from my own executing JAR as InputStream without accessing ClassLoader? The problem is that my java.policy restricts accessing ClassLoader (this cannot be changed). I want to load some xml config which I can put anywhere in my JAR, but cannot have it outside the JAR. Thank you for answers. Actually...

What is the direct link for standalone jee jar file?

Looked everywhere on sun.com but can't locate the jar file without installing the app server, etc, etc... ...

Classpath resource within jar

Hi, I have a project A, which contains some java files and a classpath resource R.txt. Within the project I use ClassLoader.getSystemResource("R.txt"); to retrieve R.txt. Then I have a project B which includes project A's jar-file. Now getSystemResource("R.txt") wont find the textfile (and yes, it's still in the root of the jar file)...

how to use one jar that depends on another jar

suppose in my application "MyClass", I want to use class A in jar1, and some part of class A depends on some class B in jar2. If I put both jar1 and jar2 on my classpath and run MyClass, it still complains that class B can not be found. Could anybody tell me how to fix this problem? Thanks a lot. ...

upload jar to respository

I have a jar files that cannot be found on maven2 repository. i interested to add the jar so i can just include extra tag in my pom.xml file and other developer can use the jar. what is the steps needed to upload the jar to http webserver webfolder? what file should i uploaded beside custom.jar ? what other files need to exist on the w...

JAR for three classes?

I reuse a handful of classes for multiple projects, like Postal Address, State, Zip Code and Phone Number. Associated to them maybe parse/format classes (like Phone Number Formatting). Is it okay to have a JAR with only a couple of classes? An alternative would be to have one "Miscellaneous" JAR with all the classes however it feels...

GWT 3rd Party Library Problem : Code Included

Hello :-) I am using Eclipse Version: 3.5.1, GWT 2.0.0, GAE 1.3.0 and I am trying to use XStream 1.3.2 to 'serialize' my Java objects to and from xml between the client and server sides of GWT. On the server side, XStream works without issue. On the client side, the compiler complains that it cannot find source code for the XStream cl...

where can i download the jar for org.apache.http package?

Hi All, I want the jar file for org.apache.http package but i am ot able to find it,can anyone let me know from where can i download it? I was not able to find the jar even in apache site as well findjar.co site. ...

Cant run my programme from command line

I have a main method that creates an instance of a logic class public static void main(String[] args) { try { Logic logic = new Logic(args[0]); ....... do some stuff here } catch (Exception e) { System.out.println("Error Encountered Details: " + e); } } the thing is th...

How to create executable .jar file with netbeans

Hello.I'd like to make "double-click" cli application but still don't get how. I know I should propably somehow edit manifest but that is all. I googled ofc. but no success. Thanks for any tips. Here is the output from build, run, and manifest: compile: Created dir: /home/nick/NetBeansProjects/SemestralWork/dist Building jar: /home/nick...

How can include multiple jars in the classpath using ant?

Hi, I have a bunch of .java files in a "src" folder that depend on three jars in a "lib" folder. I have the following build.xml file: <?xml version="1.0"?> <project name="MyProj" basedir="."> <property name="src" value="src"/> <property name="build" value="build"/> <property name="lib" value="lib"/> <path id="master-classpath"...

Using Ant how can I verify that ant-contrib.jar is avaiable in the ant lib before doing a build?

Ant-Contrib is required for some parts of the build.xml so we first want to check if ant has the jar for it in its directory, and download and unpack it to the right directory if its not. Any thoughts to this end is helpful ...

Jar files needed

Where do I get the following jar files? bc.jar, itext-signed.jar, bc-signed.jar, toolbox.jar, bcmail-jdk14-137.jar, bcprov-jdk14-137.jar, Precise links would be highly appreciated. Note: Google didn't help much. Thanks in advance. ...

how do i make an exe in netbeans? (java program)

hi. anyone know how to create a .exe in netbeans? i've had a look around and i can make a jar but not an exe. ...

How to use .jar files in NetBeans?

I am completely new to Java development so bear with me... I have downloaded the Joda time library which consists of three files: joda-time-1.6.jar joda-time-1.6-javadoc.jar joda-time-1.6-sources.jar Firstly, how do I use this library in one of my own NetBeans projects? Secondly, generally speaking, what is the distinction be...

What causes java.lang.IncompatibleClassChangeError?

For some reason our java library that we package as a jar is throwing all of these java.lang.IncompatibleClassChangeError when we try to invoke methods from it. It seems to be seemingly random. What would cause this error? ...

Android Jar libraries

How do you setup a project that can result in a jar library file that can be used for android? I want to create a custom library across all projects. Few other questions: Does it need to be compiled against a specific version of android sdk? When an android package is compiled against a jar library does the classes necessary to work w...

Determine which jar file a class is from

Hi all, I am not in front of an IDE right now, just looking at the API specs ... CodeSource src = MyClass.class.getProtectionDomain().getCodeSource(); if (src != null) { URL jar = src.getLocation(); I want to determine which jar file a class is from, is this the way to do it? Walter ...