Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 3895  / 2 Years ago, fri, september 9, 2022, 8:09:34

I want to develop swing applications using the visual editor in Eclipse, but it need Eclipse 3.6.
But it is already up-to-date using synaptic package manager. Is there a separate PPA for the version 3.6?


More From » 11.04

 Answers
2

There is an German article that describes how to package your own Eclipse. I just summarize it.




  1. Install build tools:



    sudo apt-get install fakeroot dpkg-dev debhelper unp


  2. Prepare directory:



    mkdir eclipse-platform

  3. Download eclipse and unpack it:



    unp eclipse-platform-3.6.2-linux-gtk-x86_64.tar.gz
    mkdir -p eclipse-platform/usr/lib
    mv eclipse eclipse-platform/usr/lib/eclipse

  4. Now some commands for the scripting:



    mkdir -p eclipse-platform/usr/bin
    nano eclipse-platform/usr/bin/eclipse

  5. Paste this content:



    #!/bin/sh
    export UBUNTU_MENUPROXY=0
    exec /usr/lib/eclipse/eclipse "$@"

  6. Make it executable:



    chmod +x eclipse-platform/usr/bin/eclipse

  7. Now the Desktop entry:



    mkdir -p eclipse-platform/usr/share/applications
    nano eclipse-platform/usr/share/applications/eclipse.desktop


    with following content



    [Desktop Entry]
    Encoding=UTF-8
    Type=Application
    Name=Eclipse
    Exec=eclipse
    Terminal=false
    Icon=/usr/lib/eclipse/icon.xpm
    Comment=Eclipse Integrated Development Environment
    Categories=Development;IDE;

  8. A control File



    mkdir eclipse-platform/DEBIAN
    nano eclipse-platform/DEBIAN/control


    with the content



    Package: eclipse-platform
    Version: 3.6.2-1
    Architecture: amd64
    Maintainer: YourName
    Depends: openjdk-6-jre | sun-java6-jre
    Section: devel
    Priority: optional
    Description: Eclipse IDE, static-linked, minimal plugins.

  9. Now you can build a package and install it into your system



     fakeroot dpkg -b eclipse-platform eclipse-platform_3.6.2-1_amd64.deb
    sudo dpkg -i eclipse-platform_3.6.2-1_amd64.deb

  10. Done! With this you can install your own eclipse the debian way.



[#44721] Friday, September 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anatta

Total Points: 326
Total Questions: 128
Total Answers: 96

Location: Jordan
Member since Sun, Jun 26, 2022
2 Years ago
anatta questions
Sun, Jul 17, 22, 07:13, 2 Years ago
Sun, Jun 6, 21, 12:17, 3 Years ago
Sat, Jun 12, 21, 20:43, 3 Years ago
Thu, Jan 13, 22, 20:49, 2 Years ago
Sat, Jun 5, 21, 05:39, 3 Years ago
;