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

  • Home
  • SEARCH
  • 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 8045511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:34:15+00:00 2026-06-05T05:34:15+00:00

I shifted a few Java projects from a Windows PC to Ubuntu by exporting

  • 0

I shifted a few Java projects from a Windows PC to Ubuntu by exporting it ‘via archival file storage’ i.e. a zip file, and importing with the same method.

When I was importing it back to Eclipse, it said I needed to create a blank project first to import from an archival file. So I created a new dummy java project and them imported it. But now when I compile it doesn’t allow me to saying ‘Editor doesn’t contain main type’.

Since I’m too new to attach a screen shot right here, I’m uploading it HERE. What do I do now?

Edit:
The program I’m trying to compile is a simple program demonstrating different types of sorting. In case you feel you should see it, here it is:

import java.io.PrintStream;
import java.util.LinkedList;
import java.util.Queue;


public class Sorting
{
    public static void print_r(char[] arr)
    {
        for(int i=0;i<arr.length;i++)
            System.out.print(arr[i]);
        System.out.println("\n-----");
    }

    public static void print_r_int(int[] arr)
    {
        for(int i=0;i<arr.length;i++)
            System.out.println(arr[i]);

        System.out.println("\n-----");
    }

    public static void main(String sar[])
    {
        String st=new String("jsahen");
        PrintStream oo=System.out;

        /*char ar1[]=st.toCharArray();
        mergeSort(ar1,0,ar1.length-1);
        print_r(ar1);*/

        /*char ar2[]=st.toCharArray();
        quickSort(ar2,0,ar2.length-1);
        print_r(ar2);*/

        /*char ar3[]=st.toCharArray();
        insertionSort(ar3);
        print_r(ar3);*/

        int ar3[]={215,64,25,3,541,584,68,14,69};
        recursiveRadixLSD(ar3,1);
        print_r_int(ar3);
    }

    public static void recursiveRadixLSD(int[] str,int digitFromRight)
    {
        if(digitFromRight==4)
            return;
        LinkedList<Integer>[] q=new LinkedList[10];

        for(int i:str)
        {
            int t=i/(int)(Math.pow(10, digitFromRight-1));
            int rem=t%10;
            if(q[rem]==null)
                q[rem]=new LinkedList<Integer>();
            q[rem].add(i);
        }

        int c=0;
        for(int i=0;i<10;i++)
        {
            while(q[i]!=null&&!q[i].isEmpty())
                str[c++]=q[i].remove();
        }

        recursiveRadixLSD(str,digitFromRight+1);
    }

    public static void insertionSort(char[] str)
    {
        if(!(str.length>1))
            return;

        else
        {
            int wall;

            for(wall=1;wall<=str.length-1;wall++)
            {
                char t=str[wall];
                int ind=wall;

                while(ind>=1&&str[ind-1]>t)
                {
                    str[ind]=str[ind-1];
                    ind--;
                }
                str[ind]=t;


            }



        }

    }

    public static void quickSort (char[] str,int st,int en)
    {
        if(st>=en)
            return;

        int j=partition(str,st,en);
        quickSort(str,st,j-1);
        quickSort(str,j+1,en);
    }
    public static int partition (char[] str,int st,int en)
    {
        if(st==en)
            return 0;
        char a=str[st];
        int left=st;
        int right=en;

        boolean go=true;

        while(go)
        {
            while(left<=en&&str[left]<=a)
                left++;

            while(right>=st&&str[right]>a)
                right--;

            if(left<right)
            {
                char t=str[left];
                str[left]=str[right];
                str[right]=t;
            }
            else
            {
                str[st]=str[right];
                str[right]=a;
                return right;
            }
        }


        return -1;
    }
    public static void mergeSort (char[] str,int st,int en)
    {
        if(st==en)
            return;
        int mid=(st+en)/2;
        char ret[]=new char[str.length];
        mergeSort(str,st,mid);
        mergeSort(str,mid+1,en);

        int i,j;
        int k=0;
        for(i=st,j=mid+1;i<=mid&&j<=en;)
        {
            if(str[i]>str[j])
            {
                ret[k++]=str[j++];
            }
            else
            {
                ret[k++]=str[i++];
            }
        }

        while(i<=mid)
            ret[k++]=str[i++];

        while(j<=en)
            ret[k++]=str[j++];

        for(int l=st;l<=en;l++)
            str[l]=ret[l-st];


    }
}
  • 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-05T05:34:18+00:00Added an answer on June 5, 2026 at 5:34 am

    Your folder Scratch/src isn’t recognized (configured) as source folder by eclipse. Either you move th source files to src or you add Scratch/src as source folder. Right click on project -> Properties, choose Java Build Path from the right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently shifted from JAVA development environment to .net development environment. I am developing
servlet-api.jar I shifted this jar file from one system to the other. But I
I shifted my hosting from Hostgator Shared to FDC Dedicated recently. But since then
When i shifted my working code from local to my dedicated host, none of
I'm a C# developer who has temporarily shifted to Android development for a few
I would like to plot the shifted logistic function as shown from Wolfram Alpha
I am a newbie at J2ME. Recently, I've shifted from Netbeans to Eclipse because
I am interested in C# windows application development. But now that I have shifted
i have just shifted from L2S to EF 4. In L2S, I heavily used
I have an UInt16[1000,1000] array of 10-bit intensity values which I want shifted from

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.