Got it

How to Add a User-Defined Library

Created: Aug 19, 2021 07:47:03Latest reply: Nov 2, 2021 04:13:34 373 5 0 0 0
  HiCoins as reward: 0 (problem unresolved)

Hello, friend!

I want to add a user-defined library in the development of the spack application. How to add a dependent library with user-defined codes into the project.

Please help me, thanks!

Featured Answers

Recommended answer

olive.zhao
Admin Created Aug 19, 2021 07:58:11

Hello, Helen!

You can use the following method to add it.

1. On the main page of the IDEA, choose File > Project Structures... to access the Project Structure page.

2. Select the Libraries tab, click the icon "+" on the following page, and add the local dependent library.

Figure 1 Add the Dependent Library

Add the Dependent Library

3. Click Apply to load the dependent library and click OK to complete the configuration.

4. Add the dependent library when building Artifacts. This is because the user-defined dependent library does not exist in the operating environment. By adding the library, the created jar contains the user-defined dependent library, which ensures that the Spark application runs properly.

a. On the Project Structure page, select the Artifacts tab.

b. Click the icon "+" and select Library Files in the right window to add the dependent library.

Figure 2 Add Library Files

Add Library Files

c. Choose the dependent library to be added and click OK.

Figure 3 Choose Libraries

Choose Libraries

d. Click Apply to load the dependent library and click OK to complete the configuration.

Hope this helps!

View more
  • x
  • convention:

Sokrin
Sokrin Created Nov 2, 2021 04:16:23 (0) (0)
 
All Answers
Hi, dear

Please kindly wait for a minute.
View more
  • x
  • convention:

Hello, Helen!

You can use the following method to add it.

1. On the main page of the IDEA, choose File > Project Structures... to access the Project Structure page.

2. Select the Libraries tab, click the icon "+" on the following page, and add the local dependent library.

Figure 1 Add the Dependent Library

Add the Dependent Library

3. Click Apply to load the dependent library and click OK to complete the configuration.

4. Add the dependent library when building Artifacts. This is because the user-defined dependent library does not exist in the operating environment. By adding the library, the created jar contains the user-defined dependent library, which ensures that the Spark application runs properly.

a. On the Project Structure page, select the Artifacts tab.

b. Click the icon "+" and select Library Files in the right window to add the dependent library.

Figure 2 Add Library Files

Add Library Files

c. Choose the dependent library to be added and click OK.

Figure 3 Choose Libraries

Choose Libraries

d. Click Apply to load the dependent library and click OK to complete the configuration.

Hope this helps!

View more
  • x
  • convention:

Sokrin
Sokrin Created Nov 2, 2021 04:16:23 (0) (0)
 
Nice answer
View more
  • x
  • convention:

cool
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.