priya anantha

Greenhorn
+ Follow
since Jan 27, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by priya anantha

Hi all,
I have created a package called newtest which has some classes. Now I have created jar file of all the classes in the package. Now how do I make use of the package in a different computer.
That is if I copy the jar file and if I want to make it available in my other computer.Should I have to create a maifest file
What should I do.
Where should I copy the jar file and how can I make use of the package in the java programs in the other computer.
Can any one help me.
22 years ago
Hi all,
I have created a package called newtest which has some classes. Now I have created jar file of all the classes in the package. Now how do I make use of the package in a different computer.
That is if I copy the jar file and if I want to make it available in my other computer
What should I do.
Where should I copy the jar file and how can I make use in the java programs in the other computer.
Can any one help me.
[ January 28, 2002: Message edited by: priya anantha ]
22 years ago
Hi Mr.Michael,
I have changed the name as Priya. If there is anything I need to change,pls tell me I will change that.
22 years ago
Hi Anil,
As you said "severity = sev;". is the older program. You are right.I have tried as you said.
I gave javac -classpath D:\; test.java by staying in the directory where test.class is residing.It's working now. Thank you very much.
Is there any way where I can register my package newtest like java.util.* packages so that I can make it available across network.
Pls help me.
22 years ago
Hi,
I have created a class in a package called newtest and I have saved it as D:\newtest\someException.java and compiled and no errors,
package newtest;
public class someException extends Exception
{
String errorcode;
String errordesc;
public someException(String ecode,String edesc)
{
errorcode = ecode;
errordesc = edesc;
severity = sev;
}
public String geterrorcode()
{
return errorcode;
}
}
but when I want to use the package in another normal java program which is stored in D:\testing\test\test.java.
It's giving NoClassDef found runtime errors.It's compiling properly when give
javac -classpath D:\newtest; test.java

import newtest.*;
class test
{
public static void main(String[] args)
{
try
{
throw new someException("100","Hello","world");
}
catch(someException e1)
{
String s1=e1.geterrorcode();
System.out.println(s1);
}
}
}
Can anyone tell me how to use packages and set classpaths without these problem
22 years ago