Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8442795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:56:16+00:00 2026-06-10T08:56:16+00:00

I am trying to export a SimpleSwingApplication as an executable JAR with Eclipse: package

  • 0

I am trying to export a SimpleSwingApplication as an executable JAR with Eclipse:

package gui

import scala.swing._

object Startup extends SimpleSwingApplication {
  // ...
}

However, when I choose Export…/Java/JAR file and come to the part where I have to pick the Main class, Eclipse doesn’t seem to be able to find one. Manually typing in gui.Startup doesn’t help.

I thought maybe that’s because Startup is an object instead of a class, or maybe it has to do with inheriting the main method instead of providing one yourself. But even this simple code fails to export:

package gui

class Main {
  def main(args: Array[String]) {
    println("hello")
  }
}

What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:56:18+00:00Added an answer on June 10, 2026 at 8:56 am

    Try creating your own manifest file, and specify the main class yourself. When you export the jar file, eclipse will have a screen where you can select your own manifest file instead of generating one.

    This example manifest should do the trick:

    Manifest-Version: 1.0
    Created-By: 1.6.0 (Sun Microsystems Inc.)
    Main-Class: MyPackage.MyClass
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to export a program in Eclipse to a jar file. In my
I'm trying to export a product database out of FileMakerPro into a WordPress import
I am trying to export a WAR file from Eclipse. I have a Dynamic
I am trying to export Group membership - following is the script , however
I am trying to export (save as, print) a figure into .pdf format. However,
I am trying to export a Ruby framework via XML-RPC. However I am having
I'm trying to export my Android application from Eclipse, and so I'm stuck at
I'm trying to export my java application to a Runnable Jar file. This worked
I'm trying to export just one object with mongoexport, filtering by its ID. I
I am trying to export the content from a staging server and import it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.