on 12-07-2011 11:34 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.