0

Hai Friends,

i want read data from on ejar file to another jar file during runtime with out uisng network connections(like UDP, Tcp etc) and also with out creating external files, is there any way to read data?
please help me.

3
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by gitech
0

In the "other" jar, provide a public class with public methods to access the data. As long as that jar is in the classpath you will be able to access the class and call the public methods from your first jar and thus access the data in a well-managed way.

0

In the "other" jar, provide a public class with public methods to access the data. As long as that jar is in the classpath you will be able to access the class and call the public methods from your first jar and thus access the data in a well-managed way.

how can i call jar1 class to jar2, is there any methods to call the particular data?

0

Wrong question! You can only call from a method in a class to another method in another class. Provided both classes are in jars that are in the classpath it will work. Look at the classes in jar2, see what public methods they have to access their data. If there aren't any you will have to write them.

0

ok , its working fine in creating file inside the jar

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.