Results 1 to 7 of 7
Thread: importing class files
- 03-27-2009, 11:02 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
importing class files
Hi,
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.
Thanks
-
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.
- 03-28-2009, 02:59 AM #3
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
"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?
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.
- 03-28-2009, 01:53 PM #5
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.
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
-
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.
- 03-28-2009, 02:11 PM #7
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.
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
Similar Threads
-
Importing custom class
By BigRed in forum EclipseReplies: 2Last Post: 02-14-2009, 02:12 PM -
importing .java files into eclipse
By nickl2002 in forum EclipseReplies: 1Last Post: 01-18-2009, 11:06 PM -
conversion of java .class files to .java files
By kotturupraveen in forum New To JavaReplies: 2Last Post: 06-09-2008, 12:58 PM -
Importing a Custom Class
By jfredrickson in forum New To JavaReplies: 3Last Post: 07-11-2007, 11:23 AM -
Exporting/Importing JAR files
By JavaForums in forum EclipseReplies: 0Last Post: 04-26-2007, 10:15 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks