This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

running code in intelliJ, copied from blueJ?  RSS feed

 
tor-einar frostad
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to run a program in IntelliJ. I want to get to this stage in blueJ with intelliJ, which shown on the picture. I don't know how to better explain myself. If you think you can help. Please just give me concrete details like: files -> settings etc.. I'm not going to read a novel on intelliJ just to get my simple answers. And this main class, what's it for? Did not have that in blueJ.
scrShot.png
[Thumbnail for scrShot.png]
 
Tim Cooke
Marshal
Posts: 3872
233
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you're going to be able to. BlueJ is an educational type of IDE that gives you lots of guidance and help with creating various Java programming constructs, such as creating methods in the example you show. IntelliJ is a professional IDE that assumes you know how to do this stuff by hand already. No such 'helpers' exist in IntelliJ.
 
Liutauras Vilda
Marshal
Posts: 4640
316
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree with Tim. Probably start eliminating your confusion by deleting IntelliJ from your local machine. If you're studying, or just simply learning how to write programs, better stick with BlueJ as it has lots of educational purpose features. If BlueJ still looks too complicated, you can grab one of simple text editors, maybe Notepad++ (for Microsoft Windows OS) or TextWrangler (Mac OS X), or (vim, emacs - Unix like systems in general (these by the way are not simple)) and use command line compiler. Probably will be less confusion that way and you'll get quicker where you want to be.

tor-einar frostad wrote:I'm not going to read a novel on intelliJ just to get my simple answers.
Please look at it more positively, as reading and programming are very related things. You have to read and practice a lot.
 
tor-einar frostad
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys. Guess I'll stick with BlueJ then. Until we actually learn how to use a normal IDEA.
 
Campbell Ritchie
Marshal
Posts: 55707
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My advice would be to get rid of BlueJ first. BLueJ is not a plain simple IDE, but starts its own runtime. If you click on the representation of an object, it can pull that into the runtime and run a particular method. Which is good for learning about objects, but no use when you need a complete application.

I think the name Main class is a bad one, but it is chosen because it includes the main() method. The name main is inherited from earlier languages like C and C++ where there is a procedure called main. Java® and C# have inherited that feature (but in C# is it called Main). Whatever main is called, it is always the first thing the computer executes in your program. If you use BlueJ, you may not have seen a main method in use.
 
tor-einar frostad
Greenhorn
Posts: 10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tor-einar frostad wrote:I'm trying to run a program in IntelliJ. I want to get to this stage in blueJ with intelliJ, which shown on the picture. I don't know how to better explain myself. If you think you can help. Please just give me concrete details like: files -> settings etc.. I'm not going to read a novel on intelliJ just to get my simple answers. And this main class, what's it for? Did not have that in blueJ.


I've now learned how to effectively use IntelliJ, and it's delightful
 
Campbell Ritchie
Marshal
Posts: 55707
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!