Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [nebula-dev] Standalone nebula app example?

You can also only include the Jars in your application, without Tycho or similar build tool you just need to figure out what is required manually.

In general there should be one jar per widget and you can look at the dependencies of the Manifest to find out what other might be required.

Am 19.07.24 um 08:03 schrieb Brad Lowe via nebula-dev:
I have a java desktop app that just uses swt and jface jars.
It runs standalone without the plugin architecture of eclipse.
I did a lot of digging today, and it looks like nebula is really geared for tycho based projects, which I've avoided learning. I don't get any errors building the nebula project and examples, so I was just hoping I could run them from the command line. However, I was able to drag the source code into my app and (after updating my swt version) get them to run in my app. So I'm mostly good! Would be great if I could learn how to just include them as dependencies, but I think that would require using the "plugins" directory and reorg of my code. I may be all set for now, but sure got stuck trying to get the examples to run.
Thanks!

On Thu, Jul 18, 2024 at 9:27 PM Christoph Läubrich via nebula-dev <nebula-dev@xxxxxxxxxxx <mailto:nebula-dev@xxxxxxxxxxx>> wrote:

    Nebula is an extension of SWT / JFace so running it "standalone" as
    described is not possible and I'm wondering what is the context for
    this?

    Anyways the easiest way would be:
    1) Download Eclipse
    2) clone the nebula source
    3) Import the examples and the corresponding widget projects
    4) Run the main (you can ignore the compile errors of other examples)



    Am 19.07.24 um 00:35 schrieb Brad Lowe via nebula-dev:
     > Can someone point me to a sample project that can build a stand
    alone
     > java app that uses nebula widgets? Something that I can git
    clone, mvn
     > compile package, and run using java -jar target/xyz.jar
     >
     > Ideally where I can also instruct mvn to build a jar with
    dependencies
     > for Windows, linux, or Mac. (Universal binary for mac?!) But linking
     > against an SWT jar is fine too.
     >
     > I have been able to git clone nebula and mvn install it.
     > Running the example from the command line has me stumped.
     > java -jar org.eclipse.nebula.examples-1.0.4-SNAPSHOT.jar
     > gives error: no main manifest attribute, in
     > org.eclipse.nebula.examples-1.0.4-SNAPSHOT.jar
     >
     > Thanks in advance for any pointers.
     >
     >
     >
     > _______________________________________________
     > nebula-dev mailing list
     > nebula-dev@xxxxxxxxxxx <mailto:nebula-dev@xxxxxxxxxxx>
     > To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/nebula-dev
    <https://www.eclipse.org/mailman/listinfo/nebula-dev>
    _______________________________________________
    nebula-dev mailing list
    nebula-dev@xxxxxxxxxxx <mailto:nebula-dev@xxxxxxxxxxx>
    To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/nebula-dev
    <https://www.eclipse.org/mailman/listinfo/nebula-dev>


_______________________________________________
nebula-dev mailing list
nebula-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/nebula-dev


Back to the top