Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using eclipse, packages can be imported to project. If the program is going to be run on another device, do imported packages need to be placed in the project folder initially?

What I have tried:

It works fine in eclipse, no matter where the packages located.
Posted
Updated 19-Mar-22 2:31am
v2

1 solution

They can be stored anywhere as long as you tell Java where they are (see below) when you run your application.
java -classpath <list of directories to search>
 
Share this answer
 
Comments
T1xT 19-Mar-22 8:34am    
So, since the destination device do not have that package (most likely), so they should be in the folder of the program ?
Richard MacCutchan 19-Mar-22 8:37am    
You can do that, but you should use an installer package to make sure. See Trail: Deployment (The Java™ Tutorials)[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900