I have used both activiti and tuscany sca tools to make a java project by eclipse IDE, then I got a big problem.
Activiti uses xmlschema-core.jar and Tuscany sca use xmlschema.jar. However those two libs using same package (and all classes in package) org.apache.ws.commons.schema.XmlSchema.
When I build project, I only use methods just of the first libs, but I need all libs actived.
Would you guys give me some solutions? - Change the name of that package this the last solution I thought about :( , because those tools I mentioned before run a whole way, using that package everywhere.
If both jar have same packages I guess they are different versions of the same lib, so you can try to keep only the updated one in the classpath, removing the other one.
Related
I'm having issues including bukkit/spigot/paper into my Eclipse since when I try "extends JavaPlugin" in my Class it does not seem able to import the file
I have tried versions of craftbukkit, spigot and paper on several occasions but it just does not seem to work:
From all the online tutorials I have seen, I have noticed that on their versions of eclipse the "Modulepath" and "Classpath" headings do not seem to be there, but for me they are right there:
Could someone please tell me how to fix this issue?
I'm using Intellij IDEA and there is a plugin that create all the file on it, if you really want a clean environment use this to create your project and go back on eclipse after, i can create it and send you the main folder if you can provide you paper version that you want
You cannot use paper as a External JAR. Instead download Bukkit or Spigot from the internet (or use BuildTools to compile your own jar file), and use those instead of paper.
We have a lot of jars which have been added over a period of years to the project and their usage has not been documented anywhere. I want to figure out references of any class in the jar in java or jsp files.
Now for our new jars we don't have this issue as we use Maven and it helps us maintain dependency etc much better. But I am trying to determine some of the old jars
Is there any way in Eclipse, or any other tool, to do this?
One way which I can think of:
You can use Relief to get a view of your whole java project. I haven't used it though, but have heard good things about it.
Update:
Finding unused jars used in an eclipse project
I'll try to explain as much as possible as this is more of a structural problem than code problem, ok, so i have project in which i am using android-support-library-v4, now in the same project i have now added three new libraries, these libraries also include android-support-library-v4, as they are part of their own code framework,
Now the problem is this is causing a jar mismatch in my project because i now have three same android-support-library-v4 in my project.
I tried the solution of removing the android-support-library-v4 jar file from my main project but this does not resolve the jar mismatch from the other libraries i have used in the project, and i cannot delete the android-support-library-v4 jars from the libraries as they would not work without them meaning they will stop functioning...
Simple solution for this problem , What i usually do is , steps are.
Just copy any android-support-library-v4 from any lib project
Then copy and replace this to all other libs projects.
This will remove your mismatch problem
I will suggest you to use Android Studio as Google official IDE.
I want my Java application to make a growl notification. My IDEs are Eclipse and Netbeans, and I am trying to implement a library in either (so far it worked it neither). How can I just add the library to my project and then reference the classes from within my own classes? Moreover, where can I find an appropriate library?
Thanks in advance!
EDIT: Ok, now I have somehow managed to implement the library ^^ However: the following command fails:
System.loadLibrary("growl");
It returns following error:
Message: no growl in java.library.path
How can I fix this?
About an appropriate library you should just google it. I found this one (that is tested on 10.5 so maybe it will need some tweaks): http://www.cocoaforge.com/viewtopic.php?f=6&t=17320
To add the library to your project in Eclipse copy it into the project folder (this is not necessary, you could just copy it wherever you want, also in extension folder of the JDK) and then add it through the project settings:
open project properties by right clicking the project and choosing Properties
go to Java Build Path option
go to Libraries and add it
It's possible to use AppleScript script engine in Java 6 on OS X to communicate with Growl. Here's a blog post describing how to do it.
You can use the network binding like in https://github.com/chamerling/JavaGrowl or https://github.com/aerofs/growljavabindings
Maybe this can help you.
If your classes are packaged in a JAR file, just like a 3rd party library, you should be able to put it in your project /lib directory and add it to the CLASSPATH using the IDE. That should be all you have to do (if I understand your question correctly).
We have a lot of jars which have been added over a period of years to the project and their usage has not been documented anywhere. I want to figure out references of any class in the jar in java or jsp files.
Now for our new jars we don't have this issue as we use Maven and it helps us maintain dependency etc much better. But I am trying to determine some of the old jars
Is there any way in Eclipse, or any other tool, to do this?
One way which I can think of:
You can use Relief to get a view of your whole java project. I haven't used it though, but have heard good things about it.
Update:
Finding unused jars used in an eclipse project