2

I do a lot of c# development work. Recently, our company decided it was important for webservices to be able to run on Unix machines, and decided that we should write new services in Java as a result. We've got licenses to IntelliJ, so I'll probably start with that as an IDE.

I've found it pretty easy to find resources about the Java language and the standard libraries. There are several low level details that are harder to find.

  • How do I (how should I?) setup a new project with unit tests?
  • How do you manage references? (I spent hours trying to figure out classpath stuff in eclipse a couple years ago)
  • How do you setup something equivalent to a .sln file?

So I need pretty low-level help, but without it focusing on code (I don't need help learning to write Hello World, or a for loop).

gnat
  • 20,543
  • 29
  • 115
  • 306
tallseth
  • 501

2 Answers2

2

Just so you know if you're a C# shop and have significant experience you would be able to use Mono without problem.

How do I (how should I?) setup a new project with unit tests? The same way you would in .NET. The IDE will have the facility to run tests; If you use NUnit you will be happy to know JUnit is what inspired it.

How do you manage references? (I spent hours trying to figure out classpath stuff in eclipse a couple years ago) Maven. I still think it's better and more powerful than nuget. With that said whilst they're comparable they are not one in the same.

How do you setup something equivalent to a .sln file? I don't know about IntelliJ but I've used JetBrains PHPStorm which is based on the same code I believe, you can have multiple projects open at the same time. If you move to Eclipse, it'll be a Workspace.

A lot of big / common .NET libraries (NHibernate, NUnit spring to mind) are ports from Java so if you have experience with these then you should find the transition easier.

Sam
  • 6,172
-2

We're a .net house and before starting a new product last year were given the "This needs to run on 'nix" mandate also.
We proved our code against mono, and developed our webservices with ServiceStack.

I didn't do the proving, we are now coming up to a first release which we know will be Windows & MS-SQL specific, our next target is to get the full product up and running on Unix, MySQL and Oracle.

We know from our proving work that we'll have more to do integrating with the new databases than we will getting the full product running on 'nix systems.

Not a line of Java was written.