importing class files
I'm new to Eclipse and need help.
I have been given a folder with 5 classes and 1 class with a main method.
My first question is: Is there a way to import these classes into eclipse and run the main class with main method? I don't have any java files.
What I have to do is basically write a java source file for the main class, but without decompiling it.
My second question: Is there a way to import the 5 classes to my workspace so that I can use them when I recreate the java file for the main class?
I have tried searching everywhere, but could not find a solution that worked.
Please don't cross-post the same question in multiple fora. You wouldn't like it very much if you were a volunteer, worked to solve a question only to find that it's been solved hours ago in a cross-post.
"AND... This is a Java forum, not the Eclipse Help Desk... Go ask in an Eclipse forum... You're likely to get better answers, and if this forum ever started to act as an "all IDE's helpdesk" then we'd buried in irrelvant gumby posts within days... so we actively try to resist the temptation to help with IDE questions... comprende?
Originally Posted by Fubarable
There's a place for this, and a place for that... programmers tend to be anal about stuff like this and that."
After this reply at sun forums, I thought that I might have better luck here...
then at least post a link to your other post. that's not asking too much I should think.
Yes, ... the Sun forums tend to be a bit more... hhmmm ... harsh and direct. I'm sure that you will find the Java forums to be nicer, but there are certain rules to follow and one of them is to not cross post across different forums. If you find that you have the need to do it, please let everybody know, put a link to the other post and explain why.
As for your request, I really don't have an idea. Hopefully somebody else can help you.
Myself, I don't fully understand what he's trying to do either here or in the sun fora. I think that the question could be rephrased with a lot more detail.
Mission Impossible IV
What I understood was:
1) Recreate the main class without decompiling the file. If there is an understanding of the other classes and their methods, this should be no problem.
2) Import the other class files into other java programs. I don't know how he can do that if he doesn't know what the methods they contain, unless he has a javadoc that describes thoses classes and their methods.
Seems impossible ... but I've never tried it, so I wouldn't be an expert on the subject.