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 7546307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:09:56+00:00 2026-05-30T09:09:56+00:00

As the title already says, I would like to know if it is somehow

  • 0

As the title already says, I would like to know if it is somehow possible to give a class a different filename in Java with Eclipse ?

Edit: I only want to know if its possible with Eclipse. If you don’t know the answer, please resist the urge to respond with condescending answers.

Edit2: It’s hilarious what kind of responses I get here. All I wanted to know is if it is possible to have a class with a different filename (and I meant the public class) and nothing else. I thought this is the kind of forum to ask these questions, but the second response I got was already an insult. Is this some kind of taboo question or what is going on ?

  • 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-05-30T09:09:57+00:00Added an answer on May 30, 2026 at 9:09 am

    I don’t know why you would like to do that but it is possible if you compile files from command line with help of symbolic links.

    Let’s say you have class YourClass saved in a file OtherName.java. If you create a symbolic link to that file like this:

    UNIX system: (for sure doesn’t work on Solaris – other system aren’t verified)

    ln -s OtherName.java YourClass.java
    javac YourClass.java
    

    WINDOWS system: (works on Windows Vista/2008+)

    mklink YourClass.java OtherName.java
    javac YourClass.java
    

    the compiler finds the type and compilation works…


    This solution is not verified on Unix systems, but works for sure on Windows Vista/2008+..

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

Sidebar

Related Questions

As the title already says, I'd like to know how to create a 1024x1024
As my title already explains, i would like to know how to combine these
as the title already says... I'd like to open a ElementTreeSelectionDialog with the Tree
As title says, mock code to demostrate my problem Driver Class import java.io.*; public
As the title says, I want to know, if possible, how can I create
as the title already says, I want to execute a linux comand with a
I just want what my title says.I have already read all the previous similar
Suppose I have my models set up already. class books(models.Model): title = models.CharField... ISBN
As the title says, I want to parse some Java source code in Java.
as the title already says, I need to convert an int[] to a ByteBuffer

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.