How to make in Eclipse SAR archive with jar libraries inside?
Witold Marshal
Ranch Hand
Joined: Feb 05, 2012
Posts: 48
posted
0
I am trying to make SAR MBean with Eclipse. I take a "new SAR Project" in "New" option. The project is created but I don't know how to enclose additional jars that will get exported togerther with the whole SAR archive when I export it.
Eclipse isn't really equipped to do complex builds. It leaves that job for Maven and Ant.
Although I'm not really sure that even if it did do what you want that it would give you what you want. Which is to say that I don't think that the embedded JARs will be accessible from the SAR's classpath. Without special classloaders, jars inside of jars normally aren't.
Customer surveys are for companies who didn't pay proper attention to begin with.
Witold Marshal
Ranch Hand
Joined: Feb 05, 2012
Posts: 48
posted
0
I have seen a few examples of such SARs with JAR's inside on web without classloader. Even Hibernate documentation mention about such project.
I can do it with Winrar but I was expecting that Eclipse has this capability.
I have to agree with Tim. Eclipse is great as an editor. But when it comes to building or packaging, I use Ant or Maven. I have less aggravation that way.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to make in Eclipse SAR archive with jar libraries inside?