• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Is there any equivalent in Java of .sln file of C#?

 
Ranch Hand
Posts: 2954
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In C# there is 1  .sln file for the solution. Is there any equivalent of .sln file in Java?

Thanks
 
Marshal
Posts: 80063
410
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is a .sin file? Is it a counterpart of a .jar?

Not a “Beginning Java®” question. Moving to our C# forum.
 
Monica Shiralkar
Ranch Hand
Posts: 2954
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is not  .SIN file. It is .SLN file.  There is 1 . SLN file for all projects in a solution.


The equivalent of of  .jar of java is   DLL  not  .SLN file.
 
Campbell Ritchie
Marshal
Posts: 80063
410
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So what is an sln file (now I know its correct name ‍)? I haven't see anything like that in Java®, no. It isn't some sort of .war file, I presume?
 
Monica Shiralkar
Ranch Hand
Posts: 2954
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If we have multiple projects inside an application then all these projects come under a solution and there is a. SLN file associated with this solution. You click on this. SLN file in the folder and it will open the whole group in visual Studio that is all the projects of the solution will get opened.
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's a Visual Studio file.
It's not C# specific.
 
Bartender
Posts: 15737
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As Dave said, it's not specific to C#, but instead to Visual Studio. The .sln extension stands for "solution". A solution is not much more than a collection of project references. It tells your IDE which projects you want to open at the same time, and which of them is your main project.

In NetBeans it would be similar to a "project group". I don't know how other IDEs call it. Usually IDEs don't store project groups in separate files, but somewhere in the IDE configuration settings instead.
 
Saloon Keeper
Posts: 28392
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:
In NetBeans it would be similar to a "project group". I don't know how other IDEs call it. Usually IDEs don't store project groups in separate files, but somewhere in the IDE configuration settings instead.



In Eclipse, it would be the ".project" file, which defines the project. In IntelliJ, they kept 2 files - one for the project itself, and one for the individual user's saved project context. That is, remembering stuff like what files a user was looking at and other things to make life easier, but not actually required to build the project.

Because the filenames used by Eclipse and IntelliJ are different, I have on occasion built multi-IDE projects, where a developer could use either Eclipse or IntelliJ to do their work.

But my standard for production builds is that they be done from the command line (for example via Maven, and possibly launched by Jenkins), none of those files were required or used for production builds.
 
Monica Shiralkar
Ranch Hand
Posts: 2954
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I understood that is of the IDE and not the language.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic