Hi, I want to create a java project in eclipe using ..java program(java code)..when i run my java programme at that time it should create project in workspace..project name should be hardcoded..eq "AutoprojectCreate"..Can anyone helpme thanks in advance..
A:
See the following blog post: http://www.stateofflow.com/journal/66/creating-java-projects-programmatically
The process is quite detailed there.
Zoltán Ujhelyi
2010-04-06 11:20:32
thanks ,but there it is creating folder only..with .project file.I also want src,bin...project and .classpath file there...as we create Java project in eclipse...i need same content as JavaProject in eclipse..
Rahul
2010-04-07 04:26:21
I'm not exactly sure, but if you have a Java project, you can use its object model to create its background resources, such as source or bin folder.Some further ideas can be found in the tutorial in vogella.de: http://www.vogella.de/articles/EclipseJDT/article.html
Zoltán Ujhelyi
2010-04-07 08:13:40
thanks man..can u tell me how to importExternal Jars using java???
Rahul
2010-04-07 09:22:51
Again I'm not exactly sure, but at the end of the stateofflow blog post it adds some platform jars. I think, your external jars could be handled similarly.
Zoltán Ujhelyi
2010-04-07 13:59:42