1
I have a web java project (a kind of framework) and I want to use it in my main project(the application), but I don’t want to generate a .jar. I want to use it directly within my project so that when I need to make some changes I don’t need to all did compile a .jar. I added the project in Properties > java build path > Projects I can use the other project classes normally, but when running the project in the browser I get the error:
java.lang.ClassNotFoundException: com.jmsys.client.component.botao.BotaoConfirmar
How can I do that ?
Use Maven, it’s easier. If you already use Maven put the following dependency. <dependency> <groupid>${project.groupid}</groupid> <artifactId>name of your project</artifactId> <version> version of your project </version> </dependency>
– Marcelo
Right, I created the project without using mavem, it is possible to use it after the project created ?
– Jeterson Miranda Gomes
it is possible. But make a backup before. follows links
– Marcelo
http://answall.com/questions/53706/como-converter-um-projeto-java-em-eclipse-para-um-projeto-maven
– Marcelo
http://maven3tutorial.blogspot.com.br/2011/06/converta-projeto-web-do-eclipse-para.html#. V30ncmgridu
– Marcelo
Thanks Marcelo, this will help me tbm.
– Jeterson Miranda Gomes
@Jetersonmirandagomes, can you tell me how you use the class of the other project?
– Leandro Kojima