LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling Eclipse on Slackware 11 (https://www.linuxquestions.org/questions/linux-software-2/compiling-eclipse-on-slackware-11-a-532681/)

merchtemeagle 02-26-2007 04:30 PM

Compiling Eclipse on Slackware 11
 
I'm trying to build Eclipse 3.2.2 but receive numerous errors:
Code:

1. ERROR in
/usr/pkgsrc/devel/eclipse/work/plugins/org.eclipse.core.runtime.compatibility.registry/src/org/eclipse/core/internal/registry/ExtensionHandle.java
[javac]  (at line 13)
[javac]    import org.eclipse.core.runtime.IPluginDescriptor;
[javac]    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The import org.eclipse.core.runtime.IPluginDescriptor cannot be resolved
[javac] ----------

2. ERROR in
/usr/pkgsrc/devel/eclipse/work/plugins/org.eclipse.core.runtime.compatibility.registry/src/org/eclipse/core/internal/registry/ExtensionHandle.java
[javac]  (at line 30)
[javac]    public IPluginDescriptor getDeclaringPluginDescriptor() throws InvalidRegistryObjectException {
[javac]            ^^^^^^^^^^^^^^^^^
[javac] IPluginDescriptor cannot be resolved to a type
[javac] ----------

[...]

Anyone knows what is the problem here?

jxi 02-28-2007 12:22 PM

I have eclipse on slackware 11 working ok. And I didn't need to do any compiling. SOrry if I don't grasp what your're doing. After unpacking /untarring there is a .jar file that gets started by the script `eclipse'

what is the target of your javac command?

merchtemeagle 02-28-2007 04:42 PM

You can download a binary version or the source version from the Eclipse website. I like to compile from source because it lets you learn things. Like in this case :D.

As for the target of javac, I just execute the bash build script that comes with Eclipse . Ant is called from that script using a build.xml file.

jay73 02-28-2007 06:56 PM

Have you tried compiling the IPluginInDescriptor first? Providing it even exists, it looks as if it can't be found, possibly because it hasn't been compiled yet. So maybe compile that first, than the rest.

jxi 03-01-2007 08:38 AM

merchtemeagle: again sorry for my lapse, certainly you can download source.

Now to add to jay73's advice:
how about downloading eclipse (compiled version), then using That to import the cvs / dir structure / whatever of the eclipse source your're working on here. Implement ant also from that build.xml in the working eclipse. And compile there (of course your workspace for your output .class files would be different from the downloaded-already-compiled one). That way IPluginDescriptor and all other such classes needed are compiled in the right order. You'll also have something of a benchmark to compare the performance of your built eclipse vs. the downloaded-compiled one.

HTH


All times are GMT -5. The time now is 06:53 PM.