Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > trivial third p...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 17 Topic 15919 of 16566
Post > Topic >>

trivial third party jar dependancy

by thufir <hawat.thufir@[EMAIL PROTECTED] > Mar 27, 2008 at 01:06 PM

I googled a bit but didn't find anything trivial.  I have a "hello 
world" which happens to do a randomly-chosen calculation.  What I would 
like to throw into the mix is a third party jar of some sort so that 
HelloFibonacci.jar has a dependancy on this third party jar to do 
something.

I'm not sure what the something is, but it should be trivial.  This is 
strictly to work on packaging rather than anything else at the 
moment.

What would be a simple sort of jar file to include in the compiling and 
building process, which I could then utilize?  Perhaps instantiate 
something from this third party jar, something along those lines -- 
nothing complex.


thufir@[EMAIL PROTECTED]
 
thufir@[EMAIL PROTECTED]
 java -jar build/HelloFibonacci.jar 

Hello World!
the fibonacci of 9 is:          34


thufir@[EMAIL PROTECTED]
 
thufir@[EMAIL PROTECTED]
 cat src/thufir/sun/hello/HelloWorldApp.java 
package thufir.sun.hello;

im****t thufir.math.Calculations;

class HelloWorldApp {
        public static void main(String[] args) {
                System.out.println("\nHello World!");
                System.out.print("the fibonacci of 9 is:\t\t");
                System.out.print(Calculations.fibonacci(9));
                System.out.print("\n\n\n");
        }
}
thufir@[EMAIL PROTECTED]
 
thufir@[EMAIL PROTECTED]
 cat src/thufir/math/Calculations.java 
package thufir.math;

//should be an abstract class

public class Calculations {
        public static int fibonacci(int n) {
                if (n <= 2)
                        return 1;
                else
                        return fibonacci(n - 1) + fibonacci(n - 2);
        }
}
thufir@[EMAIL PROTECTED]
 
thufir@[EMAIL PROTECTED]
 




thanks,

thufir
 




 17 Posts in Topic:
trivial third party jar dependancy
thufir <hawat.thufir@[  2008-03-27 13:06:52 
Re: trivial third party jar dependancy
Lew <lew@[EMAIL PROTEC  2008-03-27 09:47:16 
Re: trivial third party jar dependancy
Mark Space <markspace@  2008-03-27 18:07:55 
Re: trivial third party jar dependancy
Lew <lew@[EMAIL PROTEC  2008-03-28 01:37:57 
Re: trivial third party jar dependancy
thufir <hawat.thufir@[  2008-03-28 01:02:17 
Re: trivial third party jar dependancy
thufir <hawat.thufir@[  2008-03-28 02:24:14 
Re: trivial third party jar dependancy
Mark Space <markspace@  2008-03-28 03:26:52 
Re: trivial third party jar dependancy
Lew <lew@[EMAIL PROTEC  2008-03-28 01:42:57 
Re: trivial third party jar dependancy
Mark Space <markspace@  2008-03-28 06:17:45 
Re: trivial third party jar dependancy
Lew <lew@[EMAIL PROTEC  2008-03-28 08:14:31 
Re: trivial third party jar dependancy
thufir <hawat.thufir@[  2008-03-28 04:03:44 
Re: trivial third party jar dependancy
Lew <lew@[EMAIL PROTEC  2008-03-28 01:45:16 
Re: trivial third party jar dependancy
Mark Space <markspace@  2008-03-27 23:12:37 
Re: trivial third party jar dependancy
thufir <hawat.thufir@[  2008-03-28 04:50:55 
Re: trivial third party jar dependancy
Lew <lew@[EMAIL PROTEC  2008-03-28 01:49:26 
Re: trivial third party jar dependancy
thufir <hawat.thufir@[  2008-03-28 22:36:24 
Re: trivial third party jar dependancy
thufir <hawat.thufir@[  2008-03-28 22:39:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:53:07 CST 2008.