cancel
Showing results for 
Search instead for 
Did you mean: 

Issue Import Customer Library Coding

marc_resch
Explorer
0 Kudos

Hello,

I have a big problem with importing customer libraries.

Here a description of my libraries:

1. Library: Custom_Utilities

Path: package com.redwood.scheduler.custom.utilities;

2. Library: Custom_Actions

Path: package com.redwood.scheduler.custom.utilities;

(First I start with different paths for both libraries, but the I change it, because I thought that`s the problem. But it isn't)

Now, I wrote new classes and methods in Library Custom_Actions and I have to import a class of library Customer_Utitlies, but it doesn't work.

In library Custom_Actions I created a new source:

package com.redwood.scheduler.custom.utilities;

class: PostActions

Then I import as I done this a lot of times before with REDWOOD Sources:

package com.redwood.scheduler.custom.utilities;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Iterator;
import com.redwood.scheduler.*;
import com.redwood.scheduler.custom.utilities.*;
// Here is my problem:
// I need my class "CustTable" of library Customer_Utilities
import com.redwood.scheduler.custom.utilities.CustTable;

// The rest is working
import com.redwood.scheduler.api.model.Job;
import com.redwood.scheduler.api.model.JobFile;
import com.redwood.scheduler.api.model.JobParameter;
import com.redwood.scheduler.api.model.OperatorMessage;
import com.redwood.scheduler.api.model.SchedulerSession;
import com.redwood.scheduler.api.model.enumeration.JobFileType;
import com.redwood.scheduler.api.model.enumeration.JobStatus;
import com.redwood.scheduler.api.scripting.variables.PostRunningActionScriptObject;
import com.redwood.scheduler.api.search.SearchResult;
import com.redwood.scheduler.api.search.SearchResultSet;

If a try to save this I get the messages:

12:29:43 PM:

JCS-102183: Kompilierung für Library Custom_Actions fehlgeschl: PostActions.java:7:46:cannot resolve symbol symbol : class CustTable location: package utilities import com.redwood.scheduler.custom.utilities.CustTable;

JCS-102183: Kompilierung für Library Custom_Actions fehlgeschl: :1 error

I use this class also in library Custom_Utilities, here everything is working, so it seems a Cross Using Library problem, between Customer Libraries. Any ideas?

Kind Regards

Marc

Accepted Solutions (0)

Answers (1)

Answers (1)

gmblom
Active Contributor
0 Kudos

Hello Marc,

I am afraid that is not possible. Both Libraries are not in eachothers classpath. What I would do is to put both classes in the same Library, just add another source tab and you are OK. In that case they are both in the classpath and you can import them.

Regards Gerben

marc_resch
Explorer
0 Kudos

Hello Gerben,

thanks for your response. I have the same idea as you, but I'am unsatisfied with this solution. If there is no other way, it means I have to use always the same library. Although I used the same packagepaths in the both libraries, it looks like your are right. Do you have connections to the development department of Redwood? This functionality should be improve in the future.

Kind Regards

Marc

gmblom
Active Contributor
0 Kudos

Hello Marc,

I think (but have not tested) that you can put the shared code in the Custom Library. I think that Library is in all classpaths anyway.

Regards Gerben